testng-team / testng-team/testng-asserts

Assertion message is displayed only until the "expected" keyword

Open
#16 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

TestNG Version

7.5.0

Expected behavior

The entire message should be displayed.
e.g. Text is not expected. It should be this

Actual behavior

The message is displayed only until "expected".
e.g. Text is not

Is the issue reproducible on runner?
  • Shell
  • Maven
  • Gradle
  • Ant
  • Eclipse
  • IntelliJ
  • NetBeans
Test case sample

Please, share the test case (as small as possible) which shows the issue

@Test
public void well(){
    Assert.assertTrue(false, "Text is not expected. It should be this");
}

As far as I've seen, it's the same for all assertion messages.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided Java test case and the Assert.assertTrue entry point using TestNG 7.5.0. Reproduce the failure through Maven or IntelliJ, then trace how assertion messages are rendered. Done means the complete message, including text after "expected", is displayed for assertion failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.