-
Notifications
You must be signed in to change notification settings - Fork 49
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
Test that generated blueprints are valid CoffeeScript #132
Comments
@kimroen I made a small spike for this and wanted to run it past you to see if you like the direction.
and a test file using it looks like
|
Yeah, that looks like a very good starting point 👍 This project doesn't depend on |
I added it to dev dependencies although maybe it would be better to use the implicit dependency from broccoli-coffee |
Fixed by #124 🎉 |
Here's an example of a test for generating and destroying
ember g adapter foo
:What I want to do is to add a step here after the generator has run (but before it has been destroyed) that compiles the specified file with CoffeeScript and checks that it worked.
This will make sure we keep producing valid CoffeeScript, and should allow us to catch all kinds of bugs.
We could make our own test helper that compiles the specified file and verifies that it doesn't blow up. Something like this (just thinking out loud, this won't work):
The text was updated successfully, but these errors were encountered: