Grails 2.0 integration test pollution?

前端 未结 2 1551
感情败类
感情败类 2021-01-14 01:17

So i have a small integration test that houses 5 tests in total. Running that test exclusively results in all tests passed. However running my entire test suite results in 4

相关标签:
2条回答
  • 2021-01-14 02:20

    My solution as to upgrade all the unit tests to grails 2.0 method of doing tests. When this was done, every test passed. So it seem's that unit tests somehow polluted integration tests. But only on certain hardware configurations.

    0 讨论(0)
  • 2021-01-14 02:23

    I had a similar problem when moving from 1.3.7 to 2.0. The integration tests were ok when launched with

    grails test-app --integration
    

    but were failing when launched with

    grails test-app
    

    I fixed everything by converting unit tests to grails 2.0 test (using annotations).

    0 讨论(0)
提交回复
热议问题