Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion stack trace with link to source code - for continuous integration #3195

Open
tlunsfordCXP opened this issue Dec 6, 2024 · 0 comments

Comments

@tlunsfordCXP
Copy link

For continuous integration needs, I'm looking to include a hyperlink in the stack trace generated when a TestNG assertion fails. I haven't had much luck in finding this, including in rasing a Stack Overflow question that got zero responses.

Does TestNG have the ability to customize the stack trace that is generated when an assertion fails. From a general approach, it would be helpful to be able to specify a format for the file name shown in ths stack trace. Options would be to include file name only, file name with path, or file name generated as a URL.

Does anything like this exist in TestNG, or is there a straightforward path to customizing the stack trace at a different scope? I'd even be open to running sed on the output, which does not seem to be a straightforward task when the file name is included in the stack trace without any path information.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant