Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 614
James Avatar asked Oct 17 '22 06:10

James


1 Answers

Snap

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

like image 51
Mebin Joe Avatar answered Oct 20 '22 15:10

Mebin Joe