Add ability to mark a Test as skipped or incomplete
See original GitHub issuePast discussion: #434
Would a PR adding the ability to skip tests be a welcome change? On a custom fork of TinyMCE we’re modifying the functionality and as such certain tests are failing. We want to keep the tests in the codebase and are currently forced to comment them out. Having the ability to skip tests would be the best solution in this case.
The syntax would be test.skip(func...)
.
I’ll gladly make a PR for this, just looking for approval before I start working.
Issue Analytics
- State:
- Created 9 years ago
- Comments:21 (18 by maintainers)
Top Results From Across the Web
How to skip/mark incomplete entire test suite in PHPUnit?
I have a TestSuite which I need to mark as skipped (the entire test suite - not the specific test cases within the...
Read more >7. Incomplete and Skipped Tests — PHPUnit 9.5 Manual
PHPUnit\Framework\IncompleteTest is a marker interface for marking an exception that is raised by a test method as the result of the test being...
Read more >Testing has "incomplete, skipped, or risky tests" - Drupal
The full PHPUnit test output of Rules at core 8.9 shows: OK, but incomplete, skipped, or risky tests! Tests: 340, Assertions: 1383, Skipped:...
Read more >Codeception 1.5.4. Skip Tests, UTF fixes, etc.
And a small yet awaitied feature introduced: ability to skip and mark Cepts as incomplete. It's pretty simple, though.
Read more >If all tasks are "closed skipped" then RITM state - ServiceNow
I tried with below script, it is working for closed complete and closed incomplete but we have to add closed skipped condition where...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Perhaps we could add a generic
status
property to the test result data? e.g.For anyone else who wants the Mocha-style “pending” syntax, I created this little plugin to build on top of @leobalter’s
QUnit.skip
implementation: JamesMGreene/qunit-pendingSince QUnit core
v1.16.0
isn’t released yet, it is currently depending (from a dev/Node perspective) on a personal branch I created that is a copy of the latest specific commit in themaster
branch. I’ll be sure to update the dependencies in the “package.json” when QUnit corev1.16.0
is published.P.S. I fully admit this syntax is harder to search for.