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

Fix issue with addon directory not being linted #5592

Merged
merged 1 commit into from
Mar 13, 2016

Conversation

alexlafroscia
Copy link
Contributor

Closes #5498

@miguelcobain
Copy link

🎉 closes https://github.com/DockYard/ember-suave/issues/106

return ember(['test']);
})
.then(function(result) {
expect(result.exitCode).to.not.eql(0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also check the results.output to confirm that the right test failed? Something like (stolen from another test I recently added):

var output = result.output.join(EOL);
expect(output).to.match(/TemplateLint:/, 'ran template linter');

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to do this; results.output was undefined, and results.outputStream didn't have anything in it that could be used to verify which test exactly failed.

@rwjblue
Copy link
Member

rwjblue commented Mar 7, 2016

@alexlafroscia - Looks really good, thanks for tackling. I left two comments (one is a bug and the other is more of a nit-pick) to address, then we can land this...

@Turbo87 Turbo87 added the bug label Mar 7, 2016
@alexlafroscia
Copy link
Contributor Author

Alright, so I pushed an update to the previous commit that updates the acceptance-style test to use .catch to verify that the linting works.

One thing that I was unable to do was verify the output text the way you mentioned. Inside the catch handler, result.outputStream didn't have any information about the actual test that failed, and there didn't seem to be any way to get the output from the ember test command. The information on the test that failed gets output to the screen instead.

rwjblue added a commit that referenced this pull request Mar 13, 2016
Fix issue with addon directory not being linted
@rwjblue rwjblue merged commit 1b37e0c into ember-cli:master Mar 13, 2016
@rwjblue
Copy link
Member

rwjblue commented Mar 13, 2016

Thank you @alexlafroscia!

@homu homu mentioned this pull request Mar 13, 2016
@alexlafroscia
Copy link
Contributor Author

@rwjblue thanks for your help and guidance on this! I'm excited to finally be contributing to the CLI itself 😄

homu added a commit that referenced this pull request Jun 7, 2016
[BUGFIX beta] Fix addon linting regression.

This was originally fixed in #5592, but likely regressed during the "great core-object migration of 2016" (:smiling_imp:). #5498 contains a good description of why using `eachAddonInvoke` doesn't work and shows the reasoning behind `_eachProjectAddonInvoke`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants