java - Unable to run JUnit test in IntelliJ -
i wanted start project using tdd. created test directory , later changed package integrated src direcotry. in both cases same error:
class not found: "tests.objectstest"
i tried different techniques of importing junit jar , none solved problem. tried rename test class gives no solutons whatsoever.
it seems intellij or junit changes name of test class. shouldn't "objectstest.tests"?
i using junit version 4.12 , latest intellij eap.
edit project structure:
project:
-.idea -src -logic -objects -tests -test -test.java src , tests directories marked source , test. every package except test empty. on other pc intellij community edition works fine on eap there bug. unfortunatelly have use eap.
test.java code:
package test; import org.junit.test; public class test { @test public void cancreateinhabitant(){ } }
check root directory of classes. must marked source (for java classes) or test (for java test classes).
it seems directory not marked in intellij.
Comments
Post a Comment