简体   繁体   中英

Running TestNG unit test in Eclipse ignores latest changes

I have a maven-based Java project, which contains many unit tests. These unit tests take a long time to execute, so I'm trying to execute only a specific test class via the TestNG Eclipse plugin.

在此处输入图像描述

Running the test the first time works as expected, but if I make any changes to the test class and try to re-run it, I get the same result as the previous run. Basically, my changes to the test class are ignored and the test is executed using a previously compiled test class.

The project had several unrelated errors (visible under the Problems view). Once those errors were resolved, the test class was automatically compiled and changes were picked up in subsequent executions of the unit tests.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM