You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (JIRA)" <ji...@apache.org> on 2015/12/11 01:20:10 UTC

[jira] [Commented] (SUREFIRE-1206) Add SurefireProvider for JUnit 5

    [ https://issues.apache.org/jira/browse/SUREFIRE-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15051909#comment-15051909 ] 

Tibor Digana commented on SUREFIRE-1206:
----------------------------------------

[~marcphilipp]
Can you guarantee that this code will recognize all JUnit runners embedded in junit5 library?
We don't want to make any lookup in junit in order to instantiate Runner upon RunWith annotation.
{code}
Computer computer = createComputer();
Request req = Request.classes( computer, classesToRun );
req.getRunner().run( notifier );
{code}

When do you plan the release day in junit5?

Currently all test classes, methods, fields must be public.
How about in junit5?

Is or will be RunListener,Notifier,Result,Request,Filter,Runner,ParentRunner method signatures updated in junit5?

Are the Assertion and Assumption exceptions backwards compatible and are their signatures unmodified in junit5? We still rely on junit4.

At the moment I see only tagging [1] and ignored tests [2] to be implemented in Surefire.
[1] https://github.com/junit-team/junit-lambda/wiki/Prototype-Writing-Test-Cases#tagging-and-filtering
[2] https://github.com/junit-team/junit-lambda/wiki/Prototype-Writing-Test-Cases#disabling-tests
Any patches are welcome.

It would nice to run ITs with junit5.

> Add SurefireProvider for JUnit 5
> --------------------------------
>
>                 Key: SUREFIRE-1206
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1206
>             Project: Maven Surefire
>          Issue Type: New Feature
>            Reporter: Marc Philipp
>
> As you probably know, the JUnit team is currently working on a new major version, codenamed JUnit Lambda. We are still in a very early prototype/alpha phase but nevertheless wanted to reach out to you regarding future support for JUnit 5 in Maven Surefire.
> h4. The prototype
> We have even gone so far as to create our own SurefireProvider for the prototype we've release a couple of weeks ago: https://github.com/junit-team/junit-lambda/tree/prototype-1/surefire-junit5. It's obviously very basic and only supports the most common use case of running all test classes in a module. This was merely meant as a proof of concept. Moreover, we do not plan to release and maintain our own SurefireProvider in the long run. That's why I'm opening this issue so we start to talk about it and then, hopefully, start collaborating on it.
> h4. Things the JUnit team has decided
> - JUnit 5 will require a JDK 8 runtime
> - JUnit 5 will be able to run JUnit 4 and JUnit 3 tests if the right JARs happen to be on the classpath.
> h4. Possible next steps
> We would love if you could take a look at our current build tool/IDE facing API if you have the time. Please feel free to ask any question that might come up.
> We are currently working on the first alpha. Our goal is to have a stable build tool/IDE facing API by then but as sooner as you provide feedback the better.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)