-
Notifications
You must be signed in to change notification settings - Fork 423
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
Testing #40
Comments
cc @phated, @alexlawrence, @ForbesLindesay (authors of some UMD wrappers) |
cc @bebraw as I will not be maintaining grunt-umd anymore |
+1 Having tests available would be just great. Now the big question is how to write those. Do you run them against real browsers, check AST, mock an environment and test against that or what? |
@bebraw I guess we could mock an environment, I'm not sure really. I'm thinking the AST route wouldn't be best. We shouldn't care how the code is layed out (e.g. if it's |
Is travis+saucelabs OK fo you? |
@adam-lynch I have some preliminary Saucelabs tests at libumd. I am certain the tests can be improved a lot but even this is better than nothing and can be built upon if there is interest. |
The Grunt example linked in the readme isn't very clear for me. I can only assume that if it wasn't properly UMD, then loads of the underlying tests would fail, which isn't ideal really.
It would be great if there were solid tests (in this / a separate project) for testing if everything is exported correctly, etc. Having tests properly documented, maintained and used would only increase confidence. Then there could be build system specific plugins / projects which just wrap / use these tests (perfect for CI).
What do you think? I'd love to contribute but I wouldn't be 100% sure what exactly sure be tested and what all the edge cases are.
The text was updated successfully, but these errors were encountered: