Error running mvn test

error prompt:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project ssm-demo: There are t
est failures.
[ERROR]
[ERROR] Please refer to C:UserslxIdeaProjectsssmdemotargetsurefire-reports for the individual test results.

)

Project Directory

test

package model;
import org.junit.*;
import org.junit.Assert.*;
public class HelloWorldTest {
    @Test
    public  void  sayHi(){
       Assert.assertEquals("Hello world!",new HelloWorld().sayHi());
    }

}

it's still a maven configuration problem:
add
< build >

under the pom.xml < project > tag.
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
                <testFailureIgnore>true</testFailureIgnore>
            </configuration>
        </plugin>
    </plugins>
</build>

original link:

https://blog.csdn.net/gwd1154.

Menu