You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm struggling to only run certain tests since upgrading to version 0.2.1. I've had some success when running tests in the browser by overriding loadModules or adding an include matcher function but this doesn't seem to work when running on the command line.
I see the README hasn't been updated for a year but the implementation was updated a couple of months ago - any chance you could please update the README or let me know the correct approach and I'll update it and add a PR? Is there a place other than tests/index.html in my ember-cli project that I should be defining the override or adding that matcher function for the inclusion/exclusion to run on the command line?
Thanks!
The text was updated successfully, but these errors were encountered:
I worked out what was going wrong for me - I was using ES6 syntax in my tests/index.html so the override wasn't being included as expected when running on the command line.
It seems that tests/index.html is the correct place to override TestLoader. The README could still use an update, overriding shouldLoadModule alone doesn't seem to work correctly, even in the browser.
It looks like the correct approach is to require either addModuleExcludeMatcher or addModuleIncludeMatcher and define a function which takes a moduleName and returns whether or not to include/exclude that module.
I'm struggling to only run certain tests since upgrading to version 0.2.1. I've had some success when running tests in the browser by overriding loadModules or adding an include matcher function but this doesn't seem to work when running on the command line.
I see the README hasn't been updated for a year but the implementation was updated a couple of months ago - any chance you could please update the README or let me know the correct approach and I'll update it and add a PR? Is there a place other than tests/index.html in my ember-cli project that I should be defining the override or adding that matcher function for the inclusion/exclusion to run on the command line?
Thanks!
The text was updated successfully, but these errors were encountered: