I just want Cursor to run a test class



I entered the same instructions in both projects and asked AI to help me run the test class.
In the second screenshot, Cursor did run it for me using the mvn test command.
But in the first screenshot, Cursor didn’t run for me.
It means there is something wrong with my project?

Looks like you need to enable Agent mode for Cursor to run commands for you. Agent mode lets Cursor actually execute commands instead of just suggesting them!

This should let Cursor run the test commands directly like in your second screenshot. Check out Cursor – Agent for more details on what Agent can do