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
Allow filtering of specs when tests being run #865
Comments
The way to specify a spec (or specs) to run as you are executing the suite is to pass an array of spec and suite ids to the Does this solve your problem? |
Looks like it might, is there a public API which can be used to retrieve spec/suite IDs? I didn't find information in the documentation about that parameter for |
Once all the specs have been loaded you should be able to call the The |
Would you accept a PR to document the execute param? It would be useful for my use case but I'm not keen on using undocumented features that might be subject to breaking changes within minor versions. |
I'd be happy to have some better documentation for the |
Currently, by using a custom boot.js file a specFilter can be used to select which tests should be run. The problem is that this filtering happens when tests are being first registered with Jasmine, rather than when they are being run. This means that creating a single page interactive test runner is impossible as it is not possible to filter tests based on user input without refreshing the page.
The text was updated successfully, but these errors were encountered: