Js-tdd is a project mainly written in JAVASCRIPT and JAVA, it's free.
Testdriven JavaScript Development
This is a sample application that shows the usage of jasmine and js-test-driver to create unit and end2end tests for javascript applications.
The ui is made up of three part:
The backend is a simple servlet that stores data in memory.
/js-tdd/rest/customer/*
will create a new customer, assign an id and return the new customer/js-tdd/rest/customer/<id>
will load the customer with the given idThis is a default maven WAR project. The jetty is configured so that it does an overlay between the
directories src/main/webapp
and src/test/webapp
.
Tests are executed in the integration-test
phase, as some of them need a backend for REST calls.
The js-test-driver server can be started via the jstd-server.sh command.
The tests can be run via the jstd-client.sh command.
The tests may also be run in the jasmine html runner via the url http://localhost:8080/js-tdd/SpecRunner.html
Please set the location of the browser(s) that should be used for the js-test-driver tests in the envirnoment variable JSTD_BROWSER before running the maven build.
See Jasmine-UI for a framework to support ui tests.