Skip to content

yizhouxw/unit-testing

 
 

Repository files navigation

Unit Testing course resources

prerequisite

initial develop environment steps

  1. Install JDK 1.8
  2. Set JAVA_HOME (make sure JAVA_HOME point to JDK 1.8 directory, especially there is other JDK version installed)
  3. Install Intellij IDEA
  4. download demo code
    • use command git clone https://github.com/trend-university/unit-testing.git
    • or download zip if without git installed
  5. 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
  6. Run first build from command line or IDE

command line executing samples

  • build all projects
    • Windows: build.bat
    • Linux: build.sh
  • 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

references

About

Unit Testing course resources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.6%
  • Other 0.4%