Wednesday, January 16, 2013

How to Run Testacular on Windows

Testacular
You know Testecular one of the useful tool from team of AngularJS for testing frontend.
But if you look at testecular examples unfortunately it's out of date and even doesn't work properly on windows. It's not hard to setup it, but any time i need to do this i forgot about settings and needed to find it again. So here is quick shot of main settings. Don't waste your time, lets go...

Setup Server

setup testacular server
So path to node app js file need to be something like that:
c:\Users\%USERNAME%\AppData\Roaming\npm\node_modules\testacular\bin\testacular

So first part of the path show on position of global modules. So it's can depends on many reasons. But in general situation it's look like i shown above.

Application Parameters set to:
start testacular.conf.js
Then just run it and testecular will refresh results after any changes in a files.

Setup Runner

setup testecular run
You need setup Path
c:\Users\%USERNAME%\AppData\Roaming\npm\node_modules\testacular\bin\testacular Application Parameter, just a:
run
After that you can force to run testes, by pressing run for "Testecular Run". It's unusual operation but maybe you need it.
Thats all, thanks for reading, if you have any problems with Testecular, don't hesitate, just right down here. Maybe i know the answer.

No comments :

Post a Comment