Maven Archetype for projects using JsTestDriver and Jasmine, including jasmine-ui.
- Clone the Repository
- Build and install the archetype via
mvn clean install - Generate a new JsTestDriver-Jasmine-project via
mvn archetype:generate(see snippet below). - Adjust the maven project property
browserin the generatepom.xml
Generate new project:
mvn archetype:generate -DachetypeCatalog=local -DarchetypeGroupId=com.opitzconsulting.archetypes -DarchetypeArtifactId=jstd-jasmine-archetype -DarchetypeVersion=0.1.0-SNAPSHOT
In the generated project, you may
- build the project with
mvn clean install. This will launch the browser specified via the maven project propertybrowser. - start Jetty via
mvn jetty:runand then openhttp://localhost:8080/${project.artifactId}/UnitSpecRunner.htmlorhttp://localhost:8080/${project.artifactId}/UiSpecRunner.html. - make the shell scripts
jstd-*.shexecutable (chmod a+x *.sh) and start JsTestRunner server and the tests suites via these scripts. First start JsTestRunner server via./jstd-server.shand capture at least one browser by openinghttp://localhost:9876/capture. Start unit tests via./jstd-unit.sh. To run the UI tests start Jetty viamvn jetty:runand the UI tests via./jstd-ui.sh.