JUnit 5 error.

591 views
Skip to first unread message

David M

unread,
May 22, 2018, 12:29:57 AM5/22/18
to 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

unread,
May 23, 2018, 12:05:51 PM5/23/18
to 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

unread,
Oct 14, 2018, 1:00:49 PM10/14/18
to eclim-user
Hi, just wondering if there was any progress on this. Any pointers for going about adding JUnit 5 support? Thanks!
Reply all
Reply to author
Forward
0 new messages