Summary: | java-utils-2.eclass: JAVA_TESTING_FRAMEWORKS="testng" does not print test failures | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Volkmar W. Pogatzki <gentoo> |
Component: | Eclasses | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | flow, fordfrog |
Priority: | Normal | Keywords: | PATCH, PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/26118 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
java-util-2-runner-args.patch
missing details of test failures in dev-java/cdi-api (upcoming new ebuild) patch for java-utils2.eclass fixing testng defaultlisteners |
Description
Volkmar W. Pogatzki
2021-07-12 08:23:56 UTC
Created attachment 771719 [details, diff] java-util-2-runner-args.patch Attached fordfrog's patch for java-util-2.eclass from https://github.com/gentoo/gentoo/pull/21319#issuecomment-878128343. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebf1f3cb5fa8551465f263780719d90400cb5daf commit ebf1f3cb5fa8551465f263780719d90400cb5daf Author: Florian Schmaus <flow@gentoo.org> AuthorDate: 2022-04-20 08:28:51 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2022-04-27 08:44:39 +0000 java-utils-2.eclass: introduce JAVA_TEST_RUNNER_EXTRA_ARGS Also add special handling wrt -usedfaultlisteners for TestNG, see bug #801694. Co-authored-by: Miroslav Šulc <fordfrog@gentoo.org> Bug: https://bugs.gentoo.org/801694 Closes: https://github.com/gentoo/gentoo/pull/2512 Signed-off-by: Florian Schmaus <flow@gentoo.org> eclass/java-utils-2.eclass | 49 ++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 41 insertions(+), 8 deletions(-) Created attachment 786581 [details]
missing details of test failures in dev-java/cdi-api (upcoming new ebuild)
It still does not work as it should. It only prints:
[TestNG] Running:
Command line suite
===============================================
Command line suite
Total tests run: 56, Failures: 7, Skips: 0
===============================================
* ERROR: dev-java/cdi-api-4.0.1::gentoo failed (test phase):
* Running TestNG failed.
Created attachment 786584 [details, diff]
patch for java-utils2.eclass fixing testng defaultlisteners
This change in the eclass will produce useful output without extra arguments in the ebuild.
A testcase in cdi-api-4.0.1 from https://github.com/gentoo/gentoo/pull/26035. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4440928b24f7a765fa7c9427261fa4ca722ea51 commit a4440928b24f7a765fa7c9427261fa4ca722ea51 Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2022-06-28 16:02:45 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2022-07-04 13:15:16 +0000 eclass/java-utils-2.eclass: make testng output more verbose Bug: https://bugs.gentoo.org/801694 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/26118 Signed-off-by: Florian Schmaus <flow@gentoo.org> eclass/java-utils-2.eclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) Re-tested. Works. Closing. |