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
browser
in 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:run
and then openhttp://localhost:8080/${project.artifactId}/UnitSpecRunner.html
orhttp://localhost:8080/${project.artifactId}/UiSpecRunner.html
. - make the shell scripts
jstd-*.sh
executable (chmod a+x *.sh
) and start JsTestRunner server and the tests suites via these scripts. First start JsTestRunner server via./jstd-server.sh
and 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:run
and the UI tests via./jstd-ui.sh
.