Question

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

Was it helpful?

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/

OTHER TIPS

Another way to do this will be to use "Live Reload" plugin on Sublime and Firefox.

As you save the test file it auto refreshes the Spec Runner. Not the perfect setup but works.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top