jstestnet icon indicating copy to clipboard operation
jstestnet copied to clipboard

Accept multiple test suite URLs

Open kumar303 opened this issue 14 years ago • 1 comments
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']}

kumar303 avatar Sep 28 '11 20:09 kumar303

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

kumar303 avatar Oct 07 '11 20:10 kumar303