Skip to content

junit-team/junit5-workshop

Repository files navigation

JUnit 5 Workshop

Slides, examples, and exercises for a JUnit 5 Workshop, initially held by Marc Philipp and Nicolai Parlog at JUG Karlsruhe on January 25th 2017.

Outline

  1. introduction (Nicolai, 45 minutes)
  2. dynamic tests (Marc, 30 minutes)
  3. extension mechanism (theory; Nicolai, 15 minutes)

30 minute break

  1. extension mechanism (practice Nicolai, 30 minutes)
  2. architecture. modularization, side-by-side use of JUnit 4 and 5 (theory; example; Marc, 15 minutes)
  3. roadmap to GA (theory; Marc, 10 minutes)
  4. Q & A & more hacking, open end...

Setup

First, clone the project:

git clone https://github.com/junit-team/junit5-workshop.git

JUnit-5-specific plugins for Maven Surefire and Gradle are included in the project's pom.xml and build.gradle so both tools work without additional setup. Try it with mvn clean test or gradle test. Alternatively, you can use the provided Gradle or Maven wrappers with ./mvnw clean test or ./gradlew test.

IntelliJ is the first (and so far only) tool that has native support and everything should work out of the box. Since this project uses JUnit 5 Milestone 4 2017.1.2 is required to run the tests.

Eclipse requires a little fiddling to get to work but it is possible with 4.7 M4, following these steps.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages