https://github.com/phpirates/java-template-project
Example of using Java with Gradle, JUnit 5 and more
https://github.com/phpirates/java-template-project
gradle junit5 testfx
Last synced: 5 months ago
JSON representation
Example of using Java with Gradle, JUnit 5 and more
- Host: GitHub
- URL: https://github.com/phpirates/java-template-project
- Owner: PHPirates
- License: mit
- Created: 2017-05-31T19:49:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-08-13T15:56:19.000Z (over 3 years ago)
- Last Synced: 2025-07-14T03:04:43.205Z (8 months ago)
- Topics: gradle, junit5, testfx
- Language: Java
- Homepage:
- Size: 391 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
. | .
--- | ---
Travis | [](https://travis-ci.org/PHPirates/java-template-project)
Coveralls | [](https://coveralls.io/github/PHPirates/java-template-project?branch=master)
Codecov | [](https://codecov.io/gh/PHPirates/java-template-project)
# Template project for java
A similar template project in Kotlin is [here](https://github.com/PHPirates/kotlin-template-project).
From an idea by [Marcos Placona](https://github.com/mplacona/java-junit-template-project), but now it will be for Gradle, JUnit 5 and JavaFX.
This is intended for use with IntelliJ.
It currently makes use of
* IntelliJ
* Java
* Junit 5
* Travis CI
* Gradle
* The Gradle wrapper (gradlew)
* [TestFX](https://github.com/TestFX/TestFX) to use JavaFX components in tests
* JaCoCo to generate test coverage reports
* Coveralls to show some more test coverage statistics
## Tips
* You can quickly import the project into IntelliJ by importing the `build.gradle` file.
* You can run `gradlew test` on the terminal to run the tests via gradle with the gradle wrapper (so you don't have to first install gradle locally by hand).
* If you see all gradle keywords greyed out you may want to link the Gradle project in IntelliJ, if you do not see a popup asking you to then go to modules - import module and select your build.gradle.