question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

API for filtering executed tests

See original GitHub issue

Karma 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:closed
  • Created 9 years ago
  • Reactions:3
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
adambiggscommented, Mar 8, 2016

@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.

0reactions
segreycommented, May 20, 2019
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found