1
0
mirror of https://github.com/adobe/brackets.git synced 2024-11-20 09:53:00 +01:00
brackets/test
2014-05-09 22:20:18 +02:00
..
node implement copy with npm module fs-extra 2013-11-08 16:55:50 -08:00
perf Move CM global includes to use require; clean up CodeMirror globals in various jslint directives 2014-02-05 20:03:14 -08:00
smokes Normalized Line Endings and added .gitattributes 2013-02-02 21:29:11 +01:00
spec Merge pull request #7650 from adobe/pflynn/lint-tests-fixes 2014-05-09 10:14:49 -04:00
thirdparty Fix the extension manager tests. 2013-06-03 09:22:58 -04: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 Rename lodash.custom.min.js to lodash.js so our JS code hinting finds it. Remove the special path for it so it's more consistent with other require paths that have to be relative to src. 2013-10-28 14:15:03 -07:00
jasmine.sh Update copyright notice for brackets 2012-04-25 11:55:41 -07: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 remote-tracking branch 'upstream/master' into lessUpdate 2014-05-09 22:20:18 +02:00
SpecRunner.js Uses the TestPreferencesImpl when running tests. 2014-03-19 11:22:05 -04:00
TestPreferencesImpl.js Uses the TestPreferencesImpl when running tests. 2014-03-19 11:22:05 -04:00
UnitTestReporter.js code review comments 2012-10-25 16:06:46 -07:00
UnitTestSuite.js start ValidationUtils module 2014-03-12 15:54:09 -07:00

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