Record and analyze your Cucumber results.
- JDK 8
- Node
- Mongo
First time, install NPM dependencies:
./gradlew npmInstall
Build application with Gradle:
./gradlew build
Warning: when Gradle is launched with Intellij, the PATH environment variable doesn't always contain path to Webpack. If this is the case, relaunch Gradle daemon:
./gradlew --stop
./gradlew build
Run Mongo database server:
mongod &
Run Mongo migrations to build database:
(cd zucchini-ui-mongo && ./migrate.sh MONGO_HOST/MONGO_DATABASE)
Start Java backend:
./gradlew runBackend
Start frontend:
(cd zucchini-ui-frontend && npm run dev)
Open your browser to :
http://localhost:9000
You can build sample Cucumber reports from the zucchini-ui-example-features
:
./gradlew dryRunCucumber runCucumber
Generated reports can be found in build
directory.
The sub-project zucchini-ui-capsule
builds a fat Capsule that contains in one JAR
backend and UI. This JAR contains everything that is needed to run the Zucchini UI app.
You can run it from Gradle:
./gradlew runCapsule
The fat Capsule JAR is named zucchini-ui-capsule-VERSION-SNAPSHOT-capsule.jar
. Run it with this command:
java -jar zucchini-ui-capsule-VERSION-SNAPSHOT-capsule.jar server CONFIG.yml
Don't forget to init your Mongo database !
(cd zucchini-ui-mongo && ./migrate.sh MONGO_HOST/MONGO_DATABASE)
You can build a Docker image for the Capsule:
./gradlew dockerBuild
The Docker image will be built in repository pgentile/zucchini-ui
. After that, you can run the
Docker image with the following command:
docker run -p 8080:8080 -e TC_MONGO_URL=mongodb://MONGO_URI pgentile/zucchini-ui
You can find some pre-built images in Docker Hub.
The configuration file used by the application is a Dropwizard YAML file.
You can use in your file environment variable, like ${HOME}
ou ${USER}
. View the sample configuration file for more information.
Used frameworks:
- UI project: AngularJS
- Backend project: Dropwizard, Spring, Morphia, Orika
./gradlew runJsonImporter -PjsonFilePath=...
See the contributing guide