JsTestDriver's unit test is compatible with XML output, making it very simple to establish continuous JavaScript integration. This article uses Hudson to help you start (create your own Javascript continuous integration ). Installing Hudson using Hudson to create continuous integration is very simple, especially in the Linux-based De... SyntaxHig
JsTestDriver's unit test is compatible with XML output, making it very simple to establish continuous JavaScript integration. This article uses Hudson to help you start (create your own Javascript continuous integration ).
Install Hudson
It is very easy to create continuous integration with Hudson, especially on a Linux-based Debian system. There is a good and easy way to install Hudson. deb on the hudson-ci.org:
Sudo apt-key add/tmp/key
Sudo dpkg -- install/tmp/hudson. deb
This. deb will not automatically install dependencies, so the installation may fail if your system is dependent on the dependency. In this case, simply copy the missing package and run 'apt-get install pacakge1 package2 '. If my situation is that the daemon package is missing, I must execute:
Java-jar test/JsTestDriver-1.2.2.jar \
-- Server http: // localhost: 4223
Java-jar test/JsTestDriver-1.2.2.jar -- port 4223
Connect Some browsers to http: // localhost: 4223
If you use Git the same way, push to the local repository ):
Git push local master
Build
The final step is building. You can wait for Hudson to build based on the schedule you configured, or you can manually initiate a build. In the left column of your project page, there is a "build now" link and click it. Now, Hudson will start to execute your build. If everything goes well, it stops with a blue ball indicating success.
If you are more accustomed to red/Green as the indicator of failure/success, you can install a plug-in named "Green bils" from the plug-in management.
When everything is done, it should look like this: