You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A jasmine extension to run a jasmine test file in Brackets and see the html jasmine results.
Installation
Find your extensions folder by going to "Help -> Show Extensions Folder"
Extract the .zip to your Brackets extension directory
Start Brackets and create a jasmine test file to unit test your javascript api
Right click on the jasmine file (a jasmine file is either in a spec/ directory or ends with .spec.js)
Select Run Jasmine Unit Test from the context menu
The results will appear in new window
Usage
The intended use is when you are writing jasmine unit tests. The extension
gives you quick feedback when writing testcases.
For a quick test open the samples directory in the brackets-jasmine extension directory. Right
click on each of the sample-fail.spec.js, sample-pass.spec.js, sample.spec.js files. Select
"Run Jasmine Unit Test" and you will see the jasmine test report open up in a new window.
Implementation Notes
The extensions uses the node server to run jasmine-node. The node server uses jasmine-node and
xml2js files unmodified. A jasmine unit test is detected by ending with ".spec.js" in the file
name or is in specs/ directory.
Let me know if you have any suggestions or issues. Contact me at: dschaffe@adobe.com.
Change Log
03-13-2013 Initial commit
About
A brackets extension to run jasmine testcases from inside the brackets user interface.