Scala test construction and work in Intellij, but not creating a project when launched on the command line with maven

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.

+4
source share
1 answer

What version of ScalaTest are you using?

ScalaTest Maven Plugin 1.0 does not support ScalaTest 3

https://github.com/scalatest/scalatest-maven-plugin/issues/27

0
source

Source: https://habr.com/ru/post/1685651/


All Articles