-
Notifications
You must be signed in to change notification settings - Fork 183
Running Brackets Unit Tests
Randy Edmunds edited this page Aug 7, 2014
·
13 revisions
Unit Tests can only be run from a cloned version of Brackets -- not from an installer build.
Use: Debug > Run Tests
The Jasmine SpecRunner Dialog looks something like this:
You can try to run "All" test from the "All" tab, but due to memory constraints, usually all of the tests don't pass. Here's a more reliable recipe:
- Switch to "Unit" tab and click "All" to run all test
- Switch to "Integration" tab and run "All"
- Close SpecRunner dialog, shutdown/restart Brackets,
Debug > Runs Tests
- Switch to "Live Preview" tab and run "All"
- Switch to "Performance" tab and run "All"
- Switch to Extensions" tab and run "All"
If any tests fail, then try running only that suite of tests. If all tests for that suite pass, then that's OK -- this is most likely a timing problem. If any tests consistently fail, open an Issue with High Priority.