How to debug Unit Tests using Intellij IDEA?

6

I created a file with a single test but I can not debug it, it marks me error in other classes to which I do not even reference.

When I created the unit tests I was asked to set up a JDK for which I chose:

  

Information: Using javac 1.8.0_111 to compile java sources.

    
asked by Jhovana L 24.01.2017 в 15:46
source

1 answer

0

You must mark your test file in intelliJ.

Click on the file with the right key, and then mark the file as a test file.

    
answered by 22.02.2017 в 15:01