मैं एक छोटे से वेबपैप पर काम कर रहा हूं और मैं अपने ऐप के लिए कुछ यूनिट परीक्षण लिखने के लिए ग्रोवी का उपयोग करना चाहता हूं। मेरे अधिकांश कोडिंग ग्रहण पर किया जाता है और मैं वास्तव में ग्रहण के भीतर ग्राफिकल परीक्षण धावक के साथ सभी यूनिट परीक्षण को चलाने के लिए चाहता हूं (मुझे वास्तव में हरी बार पसंद है :))
Sadly, after 4 hours of try-and-error, I'm still not able to setup properly. I tried to use the Eclipse Junit4 test runner to run a Groovy file with method annotated for testing using @Test
. But it keeps complaining NoClassDefFoundException
कोई भी मदद कर सकता है?
यहां मेरी groovy फ़ाइल की सामग्री है, जिसे simpleTest.groovy नाम दिया गया है
import org.junit.Test
import static org.junit.Assert.assertEquals
class simpleTest{
@Test
void trial(){
assertEquals 6, 3+3
}
}
कोई भी मदद कर सकता है?