Files
Lee Yi Min 8ddead0d5e Create tests for Disabled context menu items for unsaved files / #12806 #13134 (#13178)
* Add test case for disabled items in unsaved file

* add saved file test case
2017-03-14 23:23:03 +02:00
..
2017-02-22 21:12:52 +01:00
2016-02-27 15:04:25 -05:00
2014-05-27 13:27:25 -07:00
2014-08-29 13:05:49 -07:00
2014-05-28 16:58:16 +02:00

Overview

Unit testing for brackets uses Jasmine.

Getting started

Running Tests

2 options for running tests:

  1. Run brackets-app and click "Run Tests" from the menu (debugging and dev tools not supported)
  2. Run jasmine.sh (only OSX is supported) or manually run Brackets-app with the argument file://path/to/brackets/test/SpecRunner.html.

Adding New Tests

  1. Create a new .js file under spec/
  2. Write the test (see spec/Editor-test.js or Jasmine documentation)
  3. Edit SpecRunner.html and add the spec .js file in a new script tag

Known Issues

None