简体   繁体   中英

Running a unit test after changing it does not run the updated test in IntelliJ

This is super weird and only happens for one of my modules in my project.

If I change the name of a test, then right click and run the test, it will say No tests found matching Method: newName. It is effectively trying to run the old test, instead of the new one, despite the fact I'm not re-running the same Run Configuration - I'm right clicking and running the freshly edited test.

What could be causing this?

折断

In Run Configuration, add Build Project so that it picks up latest changes

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