Reza
Reza

Reputation: 739

Grails Domain Class unit Testing

when I rename the default method name testSomething() method in unit test to something else, I get the "No runnable " error message. I am wondering should I change the setting somewhere?

Upvotes: 1

Views: 111

Answers (1)

Roberto Perez Alcolea
Roberto Perez Alcolea

Reputation: 1414

If your are using jUnit 3 this can help you: "with JUnit 3, to define a test it was mandatory that the class name was named like MyClassTest, be extending from TestCase and all the test method names were starting with 'test' as in 'testMyMethod()'"

http://java.dzone.com/articles/unit-test-naming-conventions

Upvotes: 2

Related Questions