<div dir="ltr"><div><div><div><div><div>Thanks for all the work Chris.<br><br></div>Not long ago I followed all instructions here <a href="https://www.mediawiki.org/wiki/Quality_Assurance/Browser_testing/Running_tests">https://www.mediawiki.org/wiki/Quality_Assurance/Browser_testing/Running_tests</a> but I can't get all the tests to pass so I'm not sure if there is something else to configure or enable, so I figured I'd ask before starting to look into the individual tests.<br></div><br></div>Here you can see vagrant roles, final output of the tests and env variables <a href="https://gist.github.com/joakin/eae3b086dd5a0c498669">https://gist.github.com/joakin/eae3b086dd5a0c498669</a><br><br></div>I'm running the tests with phantomjs by default for convenience and speed, but I've tried Firefox and I've gotten similar results.<br><br></div>Anything I've missed that I should do? I'd really love to get them green to rely on them more often and avoid regressions.<br><div><div><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 4, 2014 at 11:43 PM, Chris McMahon <span dir="ltr"><<a href="mailto:cmcmahon@wikimedia.org" target="_blank">cmcmahon@wikimedia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div>Hi mobile folk, </div><div><br></div><div>After 48 patches merged, I have updated all the browser tests in the MobileFrontend repo to conform to RSpec3 syntax. Along the way I did a few other things: </div><div><br></div><div>* removed every sleep() statement except one necessary to get around a bug in Chrome</div><div>* consolidated the lines within each step in each test to be as succinct as possible</div><div>* handled and removed a number of FIXME comments</div><div>* removed a significant amount of dead/unused/irrelevant code</div><div>* made the Feature description of each test step consistent with what each step actually accomplishes</div><div>* removed all the instances where "Then" steps were re-used as Given or When (they are conceptually different)</div><div><br></div><div>On the style front: </div><div><br></div><div>* all the steps are now in alphabetical order according to Given/When/Then, and all the GWT specifications in the .feature files conform to their corresponding implementations in steps files.</div><div>* in the Features, every Then step contains the word "should", in the steps files, every Then step contains an RSpec assertion</div><div>* no Given or When steps contain either the word "should" or an RSpec assertion</div><div><br></div><div>This all should make working in the browser test repo significantly easier and more straightforward, as well as making far better use of the most modern implementation of RSpec.</div><div><br></div><div>For my next trick I am going to make the browser test repo conform as closely as possible to rubocop style rules, but the heavy lifting with regard to technical debt in the browser test repos is mostly handled. </div><div><br></div><div>Let me know if you have any questions or if you would like a tour... </div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-Chris </div></font></span></div>
<br>_______________________________________________<br>
Mobile-l mailing list<br>
<a href="mailto:Mobile-l@lists.wikimedia.org">Mobile-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/mobile-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/mobile-l</a><br>
<br></blockquote></div><br></div>