Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create "missing" samples #70

Open
1 of 4 tasks
sormuras opened this issue Apr 29, 2018 · 8 comments
Open
1 of 4 tasks

Create "missing" samples #70

sormuras opened this issue Apr 29, 2018 · 8 comments

Comments

@sormuras
Copy link
Member

sormuras commented Apr 29, 2018

@sormuras sormuras changed the title Create "missing" sample Create "missing" samples Apr 29, 2018
@sormuras
Copy link
Member Author

Updated list of projects.

@daggerok
Copy link
Contributor

we need maven jupiter java + kotlin example

@marcphilipp
Copy link
Member

@daggerok What about the junit5-jupiter-starter-gradle-kotlin one?

@daggerok
Copy link
Contributor

daggerok commented May 25, 2019

@marcphilipp
There are no problems with Gradle at all. Actually I know how to configure Gradle and it's actually only build system I can successfully execute mixed java / kotlin junit 4 / 5 tests at the moment, but not with maven.
This is why we need worked maven example with configuration how properly configure maven project for these possibilities

@daggerok
Copy link
Contributor

finally I have created worked maven pom.xml configuration to run mixed java / kotlin JUnit 4 vintage and JUnit 5 jupiter: junit-team/junit5#1899 (comment)

sormuras pushed a commit that referenced this issue May 27, 2019
Allows mix java and kotlin test classes by using JUnit 5 Jupiter and JUnit 4 Vintage test engines together.
This sample was added in scope of Create "missing" samples #70 GitHub issue.
@sormuras
Copy link
Member Author

sormuras commented Apr 2, 2020

What about adding GraalVM-related samples?

  • junit5-jupiter-starter-graalvm
  • junit5-jupiter-starter-graalvm-native-image

@sbrannen
Copy link
Member

sbrannen commented Apr 2, 2020

junit5-jupiter-starter-graalvm

For that, I'm not sure there would be much to demonstrate.

For standard GraalVM usage in a Java application (such as executing JUnit Jupiter based tests), you'd basically just switch to a GraalVM JDK, analogous to switching between an Oracle JDK and an OpenJDK JDK.

junit5-jupiter-starter-graalvm-native-image

This is perhaps not as straight-forward as you might imagine. Currently there is no built-in support for achieving this.

I have, however, created a proof of concept for executing JUnit Platform based tests within a native image. That work can be seen here: spring-projects/spring-framework@master...sbrannen:graalvm-testing

The core of the work consists of a custom JUnit Platform TestExecutionListener, custom annotations (for conditional executing and tagging), and custom Gradle tasks that can be found here, here, and here, respectively.

@sbrannen
Copy link
Member

sbrannen commented Apr 2, 2020

conditional executing --> conditional execution

GitHub won't let me edit comments at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants