https://github.com/daggerok/junit-jupiter-vintage-maven-kotlin-java-mix
Mixing Java and Kotlin test classes with JUnit 5 Jupiter and JUnit 4 Vintage test engines. Supported JDK 1.8 and JDK 11.
https://github.com/daggerok/junit-jupiter-vintage-maven-kotlin-java-mix
java junit-jupiter junit-vintage junit5 kotlin
Last synced: 7 months ago
JSON representation
Mixing Java and Kotlin test classes with JUnit 5 Jupiter and JUnit 4 Vintage test engines. Supported JDK 1.8 and JDK 11.
- Host: GitHub
- URL: https://github.com/daggerok/junit-jupiter-vintage-maven-kotlin-java-mix
- Owner: daggerok
- Created: 2019-05-28T23:03:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-20T22:42:05.000Z (over 3 years ago)
- Last Synced: 2025-01-10T00:44:40.853Z (9 months ago)
- Topics: java, junit-jupiter, junit-vintage, junit5, kotlin
- Language: Java
- Size: 57.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# junit-jupiter (+vintage), maven, java, kotlin [](https://travis-ci.org/daggerok/junit-jupiter-vintage-maven-kotlin-java-mix)
Mixing Java and Kotlin test classes with JUnit 5 Jupiter and JUnit 4 Vintage test engines. Supported JDK 1.8 and JDK 11.The `junit5-jupiter-starter-maven-kotlin` sample demonstrates how to execute JUnit 4 Vintage test together
with JUnit 5 Jupiter tests by using Maven build tool in mixed java / kotlin test classes in the project:Please note that this project is uses the [Maven Wrapper](https://github.com/takari/maven-wrapper)
3.6.1 version. This helps you ensure that already tested versions are not going to be failed if
locally installed different maven version.Also please make a note, that java test classes are not recognizable from `src/test/kotlin` test sources folder:
```
src/
test/
java/
**/*JavaJUnit4VintageTest.java +
**/*JavaJUnit5JupiterTest.java +
**/*KotlinJUnit4VintageTest.kt +
**/*KotlinJUnit5JupiterTest.kt +
kotlin/
**/*JavaJUnit4VintageTest.java -
**/*JavaJUnit5JupiterTest.java -
**/*KotlinJUnit4VintageTest.kt +
**/*KotlinJUnit5JupiterTest.kt +
```Here `+` means that marked type of tests classes by language and engine are going to be executed