Skip to content

Commit

Permalink
Merge pull request #83 from poohnix/Fix_testcases
Browse files Browse the repository at this point in the history
Change tests to use new --filter regex
  • Loading branch information
calebporzio committed Jan 24, 2019
2 parents 77b9901 + 0261683 commit 2a4a7f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/extension.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ describe("Better PHPUnit Test Suite", function () {
await timeout(waitToAssertInSeconds, () => {
assert.equal(
extension.getGlobalCommandInstance().output,
path.join(vscode.workspace.rootPath, '/vendor/bin/phpunit ') + path.join(vscode.workspace.rootPath, '/tests/SampleTest.php') + " --filter '^.*::test_first( .*)$"
path.join(vscode.workspace.rootPath, '/vendor/bin/phpunit ') + path.join(vscode.workspace.rootPath, '/tests/SampleTest.php') + " --filter '^.*::test_first( .*)?$'"
);
});
});
Expand All @@ -171,7 +171,7 @@ describe("Better PHPUnit Test Suite", function () {
await timeout(waitToAssertInSeconds, () => {
assert.equal(
extension.getGlobalCommandInstance().output,
path.join(vscode.workspace.rootPath, '/vendor/bin/phpunit ') + path.join(vscode.workspace.rootPath, '/tests/SampleTest.php') + " --filter '^.*::test_first( .*)$"
path.join(vscode.workspace.rootPath, '/vendor/bin/phpunit ') + path.join(vscode.workspace.rootPath, '/tests/SampleTest.php') + " --filter '^.*::test_first( .*)?$'"
);
});
});
Expand Down
8 changes: 4 additions & 4 deletions test/ssh.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe("SSH Tests", function () {

assert.equal(
extension.getGlobalCommandInstance().output,
path.join(vscode.workspace.rootPath, '/vendor/bin/phpunit ') + path.join(vscode.workspace.rootPath, '/tests/SampleTest.php') + " --filter '^.*::test_first( .*)$'"
path.join(vscode.workspace.rootPath, '/vendor/bin/phpunit ') + path.join(vscode.workspace.rootPath, '/tests/SampleTest.php') + " --filter '^.*::test_first( .*)?$'"
);
});

Expand All @@ -66,7 +66,7 @@ describe("SSH Tests", function () {

assert.equal(
extension.getGlobalCommandInstance().output,
'ssh -tt -p2222 auser@ahost "/some/remote/path/vendor/bin/phpunit /some/remote/path/tests/SampleTest.php --filter \'^.*::test_first$\'"'
'ssh -tt -p2222 auser@ahost "/some/remote/path/vendor/bin/phpunit /some/remote/path/tests/SampleTest.php --filter \'^.*::test_first( .*)?$\'"'
);
});

Expand All @@ -81,7 +81,7 @@ describe("SSH Tests", function () {

assert.equal(
extension.getGlobalCommandInstance().output,
'putty -ssh -tt -p2222 auser@ahost "/some/remote/path/vendor/bin/phpunit /some/remote/path/tests/SampleTest.php --filter \'^.*::test_first$\'"'
'putty -ssh -tt -p2222 auser@ahost "/some/remote/path/vendor/bin/phpunit /some/remote/path/tests/SampleTest.php --filter \'^.*::test_first( .*)?$\'"'
);
});

Expand All @@ -96,7 +96,7 @@ describe("SSH Tests", function () {

assert.equal(
extension.getGlobalCommandInstance().output,
'ssh "/some/remote/path/vendor/bin/phpunit /some/remote/path/tests/SampleTest.php --filter \'^.*::test_first$\'"'
'ssh "/some/remote/path/vendor/bin/phpunit /some/remote/path/tests/SampleTest.php --filter \'^.*::test_first( .*)?$\'"'
);
});
});

0 comments on commit 2a4a7f0

Please sign in to comment.