mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Try different Mocha test driver
This commit is contained in:
@@ -367,8 +367,8 @@ selftest.define("argument parsing", function () {
|
||||
});
|
||||
s.cd("app-with-extra-packages", function () {
|
||||
run = s.run("test",
|
||||
"--extra-packages", "practicalmeteor:mocha, extra-package-1, extra-package-2@=0.0.2",
|
||||
"--driver-package", "practicalmeteor:mocha");
|
||||
"--extra-packages", "meteortesting:mocha, extra-package-1, extra-package-2@=0.0.2",
|
||||
"--driver-package", "meteortesting:mocha");
|
||||
run.waitSecs(60);
|
||||
run.match("extra-package-1: foobar");
|
||||
run.match("extra-package-2: barfoo");
|
||||
|
||||
@@ -8,22 +8,22 @@ selftest.define("'meteor test --port' accepts/rejects proper values", function (
|
||||
s.createApp("myapp", "standard-app");
|
||||
s.cd("myapp");
|
||||
|
||||
var runAddPackage = s.run("add", "practicalmeteor:mocha");
|
||||
var runAddPackage = s.run("add", "meteortesting:mocha");
|
||||
runAddPackage.waitSecs(30);
|
||||
runAddPackage.match(/practicalmeteor:mocha\b.*?added/)
|
||||
runAddPackage.match(/meteortesting:mocha\b.*?added/)
|
||||
runAddPackage.expectExit(0);
|
||||
|
||||
run = s.run("test", "--port", "3700", "--driver-package", "practicalmeteor:mocha");
|
||||
run = s.run("test", "--port", "3700", "--driver-package", "meteortesting:mocha");
|
||||
run.waitSecs(120);
|
||||
run.match('App running at: http://localhost:3700/');
|
||||
run.stop();
|
||||
|
||||
run = s.run("test", "--port", "127.0.0.1:3700", "--driver-package", "practicalmeteor:mocha");
|
||||
run = s.run("test", "--port", "127.0.0.1:3700", "--driver-package", "meteortesting:mocha");
|
||||
run.waitSecs(120);
|
||||
run.match('App running at: http://127.0.0.1:3700/');
|
||||
run.stop();
|
||||
|
||||
run = s.run("test", "--port", "[::]:3700", "--driver-package", "practicalmeteor:mocha");
|
||||
|
||||
run = s.run("test", "--port", "[::]:3700", "--driver-package", "meteortesting:mocha");
|
||||
run.waitSecs(120);
|
||||
run.match('App running at: http://[::]:3700/');
|
||||
run.stop();
|
||||
|
||||
Reference in New Issue
Block a user