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

后端 未结 5 1777
花落未央
花落未央 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:39

    Found my problem. I had included my classes directory in my path using a fileset as opposed to a pathelement this was causing .class files to be opened as ZipFiles which of course threw an exception.

提交回复
热议问题