Search code examples
jasminesublimetextjs-test-driver

Using jsTestDriver and Jasmine in Sublime Text 2


Is there a way to configure Sublime Text 2 to use Jasmine and jsTestDriver when writing JavaScript?


Solution

  • As the question does not state clear goal it is difficult to guess what is being asked here. Please be more professional when asking next question.

    You probably want to execute tests on each JS file save.

    • As far as I know there is no Sublime Text plug-in which would provide decorated output on the lines where tests fail

    • However, you can run tests on background using a generic solution like http://pypi.python.org/pypi/watchdog/0.6.0 which monitors files for changes and runs a command when certain files change

    • If you want to pipe terminal output to a Sublime tab there is https://github.com/wuub/SublimeREPL/