Thank you so much for making the library better. Please feel free to open bug reports to discuss new features; PRs are welcome as well :)
Uses JUnit. Simply run ./gradlew test to run all tests.
There are system tests which run all apps and test that:
- The app is up and responds 200 OK on localhost:8080 with Vaadin index page
- The REST endpoints work correctly.
- The app shuts down cleanly via Enter.
To run the tests:
$ cd test && ./system.rbMake sure to test the Boot with all example apps, especially the Enter/CTRL+C handling:
- Run
./gradlewto clean up any Vaadin production build leftovers - Run the
Mainclass as a traditionalmain()from Intellij and test that Enter shuts down the app correctly. - Run
./gradlew clean build testapp:run -Pvaadin.productionModeand test that CTRL+C kills the app - Run
./gradlew clean build testapp-kotlin:run -Pvaadin.productionModeand test that CTRL+C kills the app- Test both Vaadin UI by opening http://localhost:8080 in your browser, and also REST via
curl http://localhost:8080/rest
- Test both Vaadin UI by opening http://localhost:8080 in your browser, and also REST via
- Unzip
testapp/build/distributions/testapp-*.zip, then run it and test that both CTRL+C and Enter correctly shuts down the app.
To release the library to Maven Central:
- Run system tests:
cd test && ./system.rb - Edit
build.gradle.ktsand remove-SNAPSHOTin theversion=stanza, e.g. "1.2.13" - Edit
README.md: bump the version in the Gradle and Maven install snippets under "Using In Your Apps" to match the release - Run
./gradlew clean build publish closeAndReleaseStagingRepositories - (Optional) watch Maven Central Publishing Deployments as the deployment is published.
- Commit with the commit message of simply being the version being released, e.g. "1.2.13"
- git tag the commit with the same tag name as the commit message above, e.g.
1.2.13 git push,git push --tags- Add the
-SNAPSHOTback to theversion=while increasing the version to something which will be released in the future, e.g. 1.2.14-SNAPSHOT, then commit with the commit message "1.2.14-SNAPSHOT" and push.