-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented focused tests. Closes #185.
- Loading branch information
Showing
12 changed files
with
278 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php | ||
|
||
describe('Suite with focused sub-suites', function() { | ||
it('should not run a normal test', function () { | ||
throw new RuntimeException(); | ||
}); | ||
|
||
xit('should not run a pending test', function () { | ||
throw new RuntimeException(); | ||
}); | ||
|
||
describe('a normal suite', function () { | ||
it('should not be run', function () { | ||
throw new RuntimeException(); | ||
}); | ||
}); | ||
|
||
xdescribe('a pending suite', function () { | ||
it('should not be run', function () { | ||
throw new RuntimeException(); | ||
}); | ||
}); | ||
|
||
fit('should run a focused test', function () {}); | ||
|
||
fdescribe('a focused suite', function () { | ||
it('should run each test', function () {}); | ||
it('should run each test', function () {}); | ||
|
||
xit('should allow pending tests', function () { | ||
throw new RuntimeException(); | ||
}); | ||
|
||
xdescribe('a nested pending suite', function () { | ||
it('should have pending child tests', function () { | ||
throw new RuntimeException(); | ||
}); | ||
}); | ||
}); | ||
|
||
fdescribe('a focused suite with nested focused tests', function () { | ||
it('should not run unfocused tests', function () { | ||
throw new RuntimeException(); | ||
}); | ||
|
||
fit('should run focused tests', function () {}); | ||
}); | ||
|
||
describe('an unfocused suite with nested focused tests', function () { | ||
it('should not run unfocused tests', function () { | ||
throw new RuntimeException(); | ||
}); | ||
|
||
fit('should run focused tests', function () {}); | ||
}); | ||
|
||
xdescribe('a pending suite with nested focused tests', function () { | ||
it('should not run unfocused child tests', function () { | ||
throw new RuntimeException(); | ||
}); | ||
|
||
fit('should mark focused child tests as pending', function () { | ||
throw new RuntimeException(); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.