apache / apache/maven-surefire

[SUREFIRE-2280] Test failure is goal success

Open
#2,658 0 comments 0 reactions 0 assignees View on GitHub
enhancement priority:major
Dominant language
Java
Stars
461
Forks
588
Avg merge
1d 8h
Merged PRs (30d)
19

Description

**[Elliotte Rusty Harold](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=elharo)** opened **[SUREFIRE-2280](https://issues.apache.org/jira/browse/SUREFIRE-2280?redirect=false)** and commented

Error: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.3.0:test (default-test) on project maven-dependency-plugin: There are test failures.

I don't think this is truly correct. The goals succeeded. It ran the tests. It;s just that a test failed. Maybe

Error: project maven-dependency-plugin has test failures.

and ideally add the names of the failing tests here. Don't make me scroll back to find them.

---
No further details from [SUREFIRE-2280](https://issues.apache.org/jira/browse/SUREFIRE-2280?redirect=false)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the maven-surefire-plugin:3.3.0:test failure on the maven-dependency-plugin project and inspect how Surefire formats the current error. Trace the test-failure reporting path, then verify that the message distinguishes goal execution from test failure and includes the failing test names without requiring scrollback.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.