James
James

Reputation: 809

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?

Upvotes: 10

Views: 4379

Answers (1)

Mebin Joe
Mebin Joe

Reputation: 2209

Snap

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

Upvotes: 3

Related Questions