JUnit 5 error.

756 weergaven
Naar het eerste ongelezen bericht

David M

ongelezen,
22 mei 2018, 00:29:5722-05-2018
aan eclim-user
Hi, how can I achieve execution of JUnit of JUnit 5 tests (Jupiter)
When I try to write JUnit 5 tests with the following imports
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;

eclim yields the following

--------------------------------------------------------------            
Testsuite: repo.exercise.loopedlinkedlist.LoopedLinkedListTest            
--------------------------------------------------------------            
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.018 sec 

Testcase: initializationError took 0.002 sec                              
        Caused an ERROR             
No runnable methods                 
java.lang.Exception: No runnable methods                                  
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

Test repo.exercise.loopedlinkedlist.LoopedLinkedListTest FAILED           

Press ENTER or type command to continue                                   

If I revert back to JUnit 4 it runs fine.
Thanks

Eric Van Dewoestine

ongelezen,
23 mei 2018, 12:05:5123-05-2018
aan eclim...@googlegroups.com
This is almost certainly due to eclim using ant's junit task which
doesn't support junit 5. It looks like they created a new task for
that, so I'll have to create a new command to leverage that.
> --
> You received this message because you are subscribed to the Google Groups "eclim-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to eclim-user+...@googlegroups.com.
> To post to this group, send email to eclim...@googlegroups.com.
> Visit this group at https://groups.google.com/group/eclim-user.
> For more options, visit https://groups.google.com/d/optout.


--
eric

Tom Davis

ongelezen,
14 okt 2018, 13:00:4914-10-2018
aan eclim-user
Hi, just wondering if there was any progress on this. Any pointers for going about adding JUnit 5 support? Thanks!
Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten