-
Notifications
You must be signed in to change notification settings - Fork 3
nakajima/test-js
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
= Test-JS = For writing JavaScript tests that don't need any stinkin' browser. Currently, this project only supports the built-in testing framework I've written. I'd love to make it extensible enough to just plug into any of the other JS testing frameworks out there. Screw.Unit provides awesome hooks for extensibility, where I could just create a new Result object from the "passed", "failed" or "errored" events. I imagine other JS frameworks would be a bit more difficult, but still good to use. == USAGE (still really early, probably quite buggy) == Running the testjs bin and pointing it at a test file: testjs examples/person_test.js will yield results like this: ..... Finished in 0.00228 seconds 5 tests If there are failures or errors, these will be reported as well. == DOM == If you _must_ have the DOM, you can pass the "--dom" option. This will include Johnson's DOM, as well as jQuery for convenience: testjs examples/dommy_test.js --dom === Multiple Tests === You can run multiple tests at once: testjs examples/person_test.js examples/dommy_test.js --dom == REQUIREMENTS == * johnson (github.com/jbarnette/johnson) * colored (errtheblog.com/posts/34-a-ruby-rainbow) == TODO == * Scrap the xUnit thing and go with a more spec-y approach Copyright © 2008 Pat Nakajima
About
Write JavaScript tests that don't need no stinkin' browser.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published