Configuring ant to run unit tests. Where should libraries be? How should classpath be configured? avoiding ZipException

后端 未结 5 1775
花落未央
花落未央 2021-02-05 08:18

I\'m trying to run my junit tests using ant. The tests are kicked off using a JUnit 4 test suite. If I run this direct from Eclipse the tests complete without error. However i

5条回答
  •  终归单人心
    2021-02-05 08:49

    It sounds like there is an issue with paths.

    Check following error source:

    • classpath: print out the classpath variable in a junit test, run it from eclipse and ant, so you can compare them
    • Check your project for absolute paths. Probably, ant uses other path prefixes than eclipse.

    Some more information would help to help :)

    Good luck!

提交回复
热议问题