I can run my tests in a separate spec file when using intellij, however, when I try to run from Maven on the command line, the project will not be created using
java.lang.RuntimeException: unable to load the Suite class that was found in runpath: project.uitest.spec.aTestFile
error. I tried to restart everything that I can think of, and it works fine on my colleagues computer, which has been running tests for a long time. However, the problem is reproduced in two other environments of new employees.
We tried to copy the .m2 folder from the working environment to the new environments, but still faced the same problem.
We use the same version of the JRE, and the scala and scalatest versions are listed in our pom.xml file.
We can also ignore a test that does not load and can run tests.
Any insights or ideas on how to fix this would be greatly appreciated.
source
share