JoaoGFarias / agiletrackingtool

Automatically exported from code.google.com/p/agiletrackingtool
0 stars 0 forks source link

Grails unit-tests broken for grails 2.0.3 #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. grails test-app
2. View test reports in: agiletrackingtool/target/test-reports/html/index.html

What is the expected output? What do you see instead?
- All test passed.
- Executed 123 tests with 15 errors and 4 failures .

Original issue reported on code.google.com by ben.schreur@gmail.com on 7 May 2012 at 8:56

GoogleCodeExporter commented 9 years ago
It seems that grails 2.x changed the behavior of the unit tests. 

"You shouldn't test persistence with unit tests, use integration tests so your 
test run against a database."

"If you want to test multiple domains you need to mock all of them. Adding 
@Mock(Book) annotation to the test class should do the trick. Currently you 
mock only Catalog"

Also see this link: 
http://grails.1312388.n4.nabble.com/Grails-2-21-No-signature-of-method-groovy-la
ng-MissingMethodException-No-signature-of-method-grailst-td4642874.html

Original comment by ben.schreur@gmail.com on 6 Apr 2013 at 1:21

Attachments: