- JDK 1.8+ download site
- Intellij IDEA download site
- Git (optional) download site
- Install JDK 1.8
- Set JAVA_HOME (make sure JAVA_HOME point to JDK 1.8 directory, especially there is other JDK version installed)
- Install Intellij IDEA
- download demo code
- use command
git clone https://github.com/trend-university/unit-testing.git
- or download zip if without git installed
- use command
- Import gradle project into IntelliJ IDEA (How To), use below settings
- Use auto-import
- Create directories for empty content roots automatically
- group modules:
- using explicit module groups
- using qualified names
- Create separate module per source set
- Store generated project files externally
- gradle:
- Use default gradle wrapper
- Use gradle wrapper task configuration
- Use local gradle distribution
- Run first build from command line or IDE
- build all projects
- Windows:
build.bat
- Linux:
build.sh
- Windows:
- gradle task samples (assume use Windows OS)
- run test-basic-junit4 test:
gradlew.bat clean test-basic-junit4:test
- run test-basic-testng fastTest:
gradlew.bat clean test-basic-testng:fastTest
- run test-basic-testng pitest:
gradlew.bat clean test-basic-testng:pitest
- run test-basic-junit4 test: