I am just starting an informatics program at my college, and I have some problems with IntelliJ. When I try to run unit tests, I get a message
Process finished with exit code 1 Class not found: "edu.macalester.comp124.hw0.AreaTest"Empty test suite.
I also see a message called "No Tests Found" on the left side of the screen. My test code is here:
package edu.macalester.comp124.hw0; import org.junit.Test; import static org.junit.Assert.*; public class AreaTest { @Test public void testSquare() { assertEquals(Area.getSquareArea(3.0), 9.0, 0.001); } @Test public void testCircle() { assertEquals(Area.getCircleArea(3.0), 28.2743, 0.001); } }
And my project code is here:
package edu.macalester.comp124.hw0; import java.lang.Math; public class Area { public static double getSquareArea(double sideLength) {
How can I make my tests work? I am using the latest version of IntelliJ IDEA CE.
java intellij-idea unit-testing junit
arnbobo Sep 01 '16 at 23:29 2016-09-01 23:29
source share