<div dir="ltr"><div class="gmail_extra">On Tue, Jul 2, 2013 at 2:02 AM, Rachel Thomas <span dir="ltr"><<a href="mailto:rachelqa99@gmail.com" target="_blank">rachelqa99@gmail.com</a>></span> wrote:<br><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>I have put in the correct tag that you suggested in the .feature file,  @<a href="http://test2.wikipedia.org" target="_blank">test2.wikipedia.org</a>. on the first line, but it still doesn't try to run on test2, when I run the bundle exec cucumber features/visualeditor_references.feature from command line.  What happens is that it runs on the default en.wikipedia rather than test2.</div>

</blockquote></div><br>I think I know what the problem is - I have never explained to you how Cucumber tags work, and how our test framework uses them. :)</div><div class="gmail_extra"><br></div><a href="http://jobs.md">jobs.md</a>[1] file documents how to run just the files tagged @<a href="http://test2.wikipedia.org">test2.wikipedia.org</a>. Something like this:<div>

<br>bundle exec cucumber --tags @<a href="http://test2.wikipedia.org">test2.wikipedia.org</a><div><br><div class="gmail_extra" style>That means that cucumber will run only the features/scenarios tagged @<a href="http://test2.wikipedia.org">test2.wikipedia.org</a>. It does not mean that it will run them at <a href="http://test2.wikipedia.org">test2.wikipedia.org</a>!</div>

<div class="gmail_extra" style><br></div><div class="gmail_extra" style>To run a feature/scenario on a specific site, you have to set MEDIAWIKI_URL environment variable:</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>

linux/mac:</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>export MEDIAWIKI_URL=<a href="http://test2.wikipedia.org/wiki/">http://test2.wikipedia.org/wiki/</a><br></div><div class="gmail_extra" style>

<br></div><div class="gmail_extra" style>windows:</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>set MEDIAWIKI_URL=<a href="http://test2.wikipedia.org/wiki/">http://test2.wikipedia.org/wiki/</a><br>

</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>There are some problems with http and test2 at the moment. If the tests fail, use https instead of http.</div><div class="gmail_extra" style><br>

</div><div class="gmail_extra" style>In short:</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>- Cucumber tags allow us to run a subset of tests,</div><div class="gmail_extra" style>- MEDIAWIKI_URL determines where the tests run.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">If you want to read more about tags, there is some documentation[2] at Cucumber wiki.</div><div class="gmail_extra"><br></div><div class="gmail_extra" style>I know this is confusing. There are a lot of moving parts. If you have any questions, let me know.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra" style>Željko</div><div class="gmail_extra" style>--</div><div class="gmail_extra" style>1: <a href="https://github.com/wikimedia/qa-browsertests/blob/master/docs/jobs.md">https://github.com/wikimedia/qa-browsertests/blob/master/docs/jobs.md</a></div>

<div class="gmail_extra" style>2: <a href="https://github.com/cucumber/cucumber/wiki/Tags">https://github.com/cucumber/cucumber/wiki/Tags</a></div></div></div></div>