-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Bug 3840: --forbid-only doesn't recognize it.only
when before
crashes
#4256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
c0c1dea
add fixtures that result in it.only combined with --forbid-only bug
arvidOtt 63d6144
adapt forbidonly test cases to cover it.only bug
arvidOtt 2f0f134
check if forbid only option is set prior to marking a test only and t…
arvidOtt 3c8af1b
change name of only test back to previous
arvidOtt 7d6110a
use custom assertion for expecting error in forbidOnly tests
arvidOtt 39e89fe
remove empty line
arvidOtt 11d5fe1
use createUnsupportedError instead of throw new Error
arvidOtt 7015048
use createUnsupportedError instead of throw new Error
arvidOtt 956cef2
remove check if suite hasOnly and forbidOnly option is set as this is…
arvidOtt 4b37e3c
implement markOnly instance method in suite class
arvidOtt c2c8dc8
add unit test for suites markOnly method
arvidOtt f871782
throw exception if --forbid-only option is set even if suite is not s…
arvidOtt 336425a
adapt forbidOnly integration tests to check for failure if only suite…
arvidOtt cffc71a
fix jsdocs of suite markonly
arvidOtt 419f584
Revert "fix jsdocs of suite markonly"
arvidOtt 189b5cf
Revert "adapt forbidOnly integration tests to check for failure if on…
arvidOtt 053867f
Revert "throw exception if --forbid-only option is set even if suite …
arvidOtt 0834199
Revert "add unit test for suites markOnly method"
arvidOtt 3d21897
Revert "implement markOnly instance method in suite class"
arvidOtt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
8 changes: 8 additions & 0 deletions
8
test/integration/fixtures/options/forbid-only/only-before-each.fixture.js
This file contains hidden or 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,8 @@ | ||
'use strict'; | ||
|
||
describe('test marked with only and beforeEach has skip', function() { | ||
beforeEach(function() { | ||
this.skip(); | ||
}); | ||
it.only('only test', function() {}); | ||
}); |
8 changes: 8 additions & 0 deletions
8
test/integration/fixtures/options/forbid-only/only-before.fixture.js
This file contains hidden or 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,8 @@ | ||
'use strict'; | ||
|
||
describe('test marked with only and before has skip', function() { | ||
before(function() { | ||
this.skip(); | ||
}); | ||
it.only('only test', function() {}); | ||
}); |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.