Skip to content
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

README update please #21

Open
Bushjumper opened this issue Mar 20, 2016 · 2 comments
Open

README update please #21

Bushjumper opened this issue Mar 20, 2016 · 2 comments

Comments

@Bushjumper
Copy link
Contributor

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!

@Bushjumper
Copy link
Contributor Author

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.

@hoIIer
Copy link

hoIIer commented May 28, 2016

+1 I would like to exclude tests/casper directory and was lead here... how do I achieve this using the addModuleExcludeMatcher ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants