Skip to content

Fix test commands to include all tests - #458

Closed
lolmaus wants to merge 1 commit into
ember-cli-deploy:masterfrom
lolmaus:fix-test-runner
Closed

lolmaus wants to merge 1 commit into
ember-cli-deploy:masterfrom
lolmaus:fix-test-runner

Conversation

@lolmaus

@lolmaus lolmaus commented Feb 20, 2017

Copy link
Copy Markdown

What Changed & Why

I've noticed that npm run test only runs tests from index-test.js.

Here's the latest build on master as of Feb 20:
https://travis-ci.org/ember-cli-deploy/ember-cli-deploy/builds/201523239

For some reason, the glob ** works as a single asterisk *, meaning exactly one level of depth. I've updated Mocha, but it didn't resolve the problem. --recursive didn't help either.

So I updated the test command to include paths with two distinct levels of depth.

Bonus

Bumped mocha version.

People

@lukemelia @LevelbossMike

@lolmaus lolmaus mentioned this pull request Feb 20, 2017
2 tasks done
@ghedamat

Copy link
Copy Markdown
Collaborator

@lolmaus that is definitely interesting, I'm quite sure it used to work in the past...

see https://travis-ci.org/ember-cli-deploy/ember-cli-deploy/builds/133134377 for example

I wonder what changed

I'd rather avoid listing all directories because we could miss one when we add more test.. I'll do a couple of quick experiments and if they fail will merge

in the meantime thanks!

@ghedamat

Copy link
Copy Markdown
Collaborator

@lolmaus my suspicion was confirmed, there's a better fix
#460

somehow travis stopped adding the quotes that made the glob work so now we have to force them

might be good to look at the other ember cli repos to see if the issue is happening there as well

@ghedamat ghedamat closed this Feb 20, 2017
@lolmaus

lolmaus commented Feb 20, 2017

Copy link
Copy Markdown
Author

@ghedamat It happened to me locally too! I'm on Linux.

@ghedamat

Copy link
Copy Markdown
Collaborator

werd,

try to see if master is now working correctly with my fix if you can

thanks!

@lolmaus

lolmaus commented Feb 21, 2017

Copy link
Copy Markdown
Author

@ghedamat

image

@ghedamat

Copy link
Copy Markdown
Collaborator

Nice!

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

Successfully merging this pull request may close these issues.

2 participants