I have a Test package like in this order (Using Junit4) in test package of Spring boot
Test -Test1.java -Test2.java -Test3.java
Now when I am running the Test file in IntelliJ its going totally fine with no issue but when I am running mvn test its failing and I checked the error which can only occur if Test2.java has run before Test1.java. I know that test cases inside a Test class will not maintain any order but is it true for Test packages as well ?
[ERROR] Please refer to /Users/s0r0e4g/Desktop/SPEED CHANGE/Config_ClubItemBenchMark/oia-configuration/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.