-
Notifications
You must be signed in to change notification settings - Fork 42
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
Write decent test suite #4
Comments
Hi @TheLarkInn, I am interested in writing some tests. Just to confirm that what you need is to test the npm script result, not the If so, I will probably go with Do you have any opinions/suggestions? |
Correct, you could use whatever you would like. Since these are kind of like integration tests which take a bit more time. I was interested in something like ava to run the commands against, but I'm really unopinionated about it. So I think that would be fine. It would be nice to organize the suite also so that we can write (for developers) mini test suites for the custom loader and (if we externalized it) the custom plugin. Setting up fixtures and integration tests for loaders and plugins great because you run it against a real webpack build (which we have readily available in this case. |
For the individual plugin and loader |
I created #16 which I will try to do atleast part of this when I have some time. This way once we have those tests, our 10 greenkeper.io PR's will actually be worth while to test and help really manage dependencies. |
Hi @TheLarkInn , I have some trouble in writing testing. Hope you can give some advice. The issue is I can only assert the Basically, unit testing can be done. But E2E testing is harder than I thought. Care to share some advices? |
Maybe instead we just validate that the config is valid and runs. You could also look at the test suite that the angular CLI uses. https://github.com/angular/angular-cli/tree/master/tests/e2e/setup |
Hi @TheLarkInn , I think I may have made it. I will upload a WIP repo to show you. Basically, I use I think it can satisfy our needs for testing. |
We should remove |
I leave it there because the E2E testing is driven by jasmine. And install |
The text was updated successfully, but these errors were encountered: