API for filtering executed tests
See original GitHub issueKarma IDE integrations’ users would benefit from the opportunity to be able to run single test / test suite / test file only.
At the moment it’s already available for karma-mocha adapter through passing client argument (--grep
).
Also it’s possible to run single Jasmine spec/suite through editing source code (iit/ddescribe
). Seems source code editing could be avoided if a new preprocessor would insert iit/ddescribe
in the result file at proper offset that is served. Maybe better solutions for Jasmine exist.
How about having a common universal API on Karma level (JavaScript API or a new cli option) for filtering executed tests by test name / test suite name / test file name?
Issue Analytics
- State:
- Created 9 years ago
- Reactions:3
- Comments:11 (10 by maintainers)
Top Results From Across the Web
How to get filtered tests in test set using OTA API?
1. Create a test set · 2. Add tests to test set · 3. Filter tests that Run Type = "Automated" · 4....
Read more >RQM REST API - Is it possible to filtering test case execution ...
We are trying to report on a custom field (Planned Date) to extract data for given months. We've noticed 2 things: a) date...
Read more >REST API Testing Strategy: What Exactly Should You Test?
Testing requests in isolation – Executing a single API request and checking the response ... sort, skip and limit for filtering, sorting, and...
Read more >Organizing Tests by Saved Filter - Rainforest QA
Saved filters allow you to use advanced conditions to group tests into folders for easy organization, management, and test execution.
Read more >Tagging and Filtering JUnit Tests - Baeldung
Therefore, we often want to filter our tests and execute either unit tests or integration tests or both at various stages of the...
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 FreeTop 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
Top GitHub Comments
@dignifiedquire I’m working on a very large app with ~5k Mocha tests loaded via RequireJS. While it’s true that we can run specific tests using Mocha’s
--grep
, the feature is crippled because RequireJS still loads our entire test suite… So even running a single test takes around 10-20 seconds.It would be very powerful if Karma provided some way to modify the
window.__karma__.files
array before starting the test run.--grep
can be handled as regexp after https://github.com/karma-runner/karma-jasmine/commit/3b20480a5a1cfa769c2a1861455c76d3bfaaab52Closing this issue.