brackets/test
Peter Flynn 0e9376ad75 Cleaner fix for #2761 (Project tree selection incorrect after opening file
by means other than sidebar) - Clear selection in project tree if current
document not exposed in tree anywhere.

Backs out pull #2869, which made the behavior of Find in Files inconsistent
with other means of opening and didn't fix other cases of the bug.

Adds unit tests for several of these edge cases.
2013-04-10 01:06:06 -07:00
..
node add node_modules used in testing 2013-03-21 17:43:33 -04:00
perf Refactor JSLint into an extension 2013-03-15 00:06:45 -03:00
smokes Normalized Line Endings and added .gitattributes 2013-02-02 21:29:11 +01:00
spec Cleaner fix for #2761 (Project tree selection incorrect after opening file 2013-04-10 01:06:06 -07:00
thirdparty Normalized Line Endings and added .gitattributes 2013-02-02 21:29:11 +01:00
BootstrapReporterView.css Click in Jasmine failure stack traces to jump to the corresponding source 2013-02-19 17:53:10 -08:00
BootstrapReporterView.js Fix Jasmine results linkerization to handle Mac file:// URIs, which oddly 2013-03-04 16:42:25 -08:00
PerformanceTestSuite.js Prevent extensions from loading in test windows. Separate extension unit tests as a suite. Fix broken perf tests. 2012-07-19 15:36:19 -07:00
README.md Remove hard coded paths 2011-12-14 11:00:44 -08:00
SpecRunner.html Merge pull request #3231 from TomMalbran/tom/editor-options-tests 2013-04-07 03:16:15 -07:00
SpecRunner.js Fix running dev & user extension unit tests. After pull #3334 only core 2013-04-05 15:20:31 -07:00
UnitTestReporter.js code review comments 2012-10-25 16:06:46 -07:00
UnitTestSuite.js Merge pull request #3300 from TomMalbran/tom/font-size-2 2013-04-04 00:13:12 -07:00
jasmine.sh Update copyright notice for brackets 2012-04-25 11:55:41 -07:00

README.md

Overview

Unit testing for brackets uses Jasmine http://pivotal.github.com/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 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