jstestnet
jstestnet copied to clipboard
Accept multiple test suite URLs
trafficstars
Once a client has a token, it can pass an arbitrary URL to the test suite. Using jstestnetlib it looks something like this:
nosetests --jstests-url http://server/suite1.html --jstests-token <the token>
However, there is no way to send multiple URLs so that all test results get mixed into the same nosetests.xml file. Let's support this:
nosetests --jstests-url http://server/suite1.html \
--jstests-url http://server/suite2.html \
--jstests-token <the token>
This requires a change to the jstestlib plugin. It also requires a change to the server in how it accepts JSON for starting tests. Currently you can post:
{... 'token': token, 'url': 'http://server/suite1.html'}
Let's support this instead:
{... 'token': token, 'urls': ['http://server/suite1.html', 'http://server/suite2.html']}
Note that this would easily lead to --jstests-url-file=test-suite-urls.txt where a large number of URLs could be specified, one on each line