mirror of https://github.com/zulip/zulip.git
Set up frontend tests to run multiple test files
(imported from commit 7eef13df33e8d878efcab199fd4c7eea7fd99a5c)
This commit is contained in:
parent
6cf59f1fba
commit
a01cee3cce
|
@ -41,7 +41,7 @@ try:
|
|||
sys.stdout.write('\n')
|
||||
|
||||
ret = subprocess.call(
|
||||
'zephyr/tests/frontend/casperjs/bin/casperjs zephyr/tests/frontend/tests.js',
|
||||
'zephyr/tests/frontend/casperjs/bin/casperjs test zephyr/tests/frontend/tests',
|
||||
shell=True)
|
||||
finally:
|
||||
assert_server_running()
|
||||
|
|
|
@ -10,13 +10,6 @@
|
|||
// For example, utils.dump() prints an Object with nice formatting.
|
||||
var utils = require('utils');
|
||||
|
||||
// The main CasperJS object.
|
||||
var casper = require('casper').create({
|
||||
// TODO: Expose these at the command line.
|
||||
//verbose: true,
|
||||
//logLevel: 'debug',
|
||||
});
|
||||
|
||||
// Uncomment this to get page-context console.log in the CasperJS output
|
||||
// (plus some CasperJS-specific messages)
|
||||
/*
|
||||
|
@ -347,5 +340,5 @@ casper.then(function() {
|
|||
|
||||
// Run the above queued actions.
|
||||
casper.run(function () {
|
||||
casper.exit((casper.test.getFailures().length > 0) ? 1 : 0);
|
||||
casper.test.done();
|
||||
});
|
Loading…
Reference in New Issue