Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 146226

Summary: Request for TestNG ebuild
Product: Gentoo Linux Reporter: Bjarke Istrup Pedersen (RETIRED) <gurligebis>
Component: New packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo, pariksheet.nanda, the.dmol
Priority: High Keywords: EBUILD, InOverlay
Version: unspecified   
Hardware: All   
OS: Other   
URL: http://www.testng.org
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 259025, 430688, 487280    
Attachments: ebuild for testng-5.10
A patch to ensure that tests run successfully for testng-5.10
Missing file necessary for tests to run successfully
Missing file necessary for tests to run successfully
testng-6.7.ebuild
files/testng-6.7-testng.xml.patch
testng-6.7.ebuild

Description Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2006-09-04 01:32:25 UTC
It would be nice to have a TestNG ebuild (It's a testing framework that aims to fix the design flaws in JUnit.
Mainly adding this as a reminder for myself to write it.
Comment 1 Alistair Bush (RETIRED) gentoo-dev 2007-03-17 10:17:27 UTC
Can someone please add EBUILD, InOverlay to keywords.

Ive updated this ebuild to build with JAVA_PKG_STRICT=true (has deps on tools.jar).

This ebuild currently bundles bsh and other deps inside testng.jar.  This needs to be fixed.
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2009-02-15 01:38:35 UTC
(In reply to comment #1)
>
> This ebuild currently bundles bsh and other deps inside testng.jar.  This needs
> to be fixed.
> 

This is now fixed in the 5.7 ebuild I added to java-experimental a moment ago.
Comment 3 Daniel Solano Gómez 2009-10-04 00:38:27 UTC
Created attachment 205976 [details]
ebuild for testng-5.10
Comment 4 Daniel Solano Gómez 2009-10-04 00:39:30 UTC
Created attachment 205978 [details, diff]
A patch to ensure that tests run successfully for testng-5.10
Comment 5 Daniel Solano Gómez 2009-10-04 00:40:36 UTC
Created attachment 205979 [details]
Missing file necessary for tests to run successfully
Comment 6 Daniel Solano Gómez 2009-10-04 00:40:49 UTC
Created attachment 205980 [details]
Missing file necessary for tests to run successfully
Comment 7 Daniel Solano Gómez 2009-10-04 00:45:23 UTC
I have taken the existing ebuild from the java-experimental overlay and updated it to the latest version of TestNG.  This new ebuild relies on the following files:

testng-5.10-unit_test_concurrency_fix.patch: A patch to resolve some concurrency-related failures in TestNG's unit test.  This patch has been reported as issue #66 upstream.

testng.xml and testng-override.xml:  These files are necessary to run some of the unit tests.  For some reason they are not included in the source zip but are in the source repository.

Please let me know if there is anything I can do to improve this.
Comment 8 Kyle Cavin 2009-10-12 21:49:48 UTC
(In reply to comment #7)

Thanks for the updated build.

Adding java-pkg_dolauncher to the source install would be nice. Also, I get some QA warnings regarding the javadoc dependencies, which are needed in the runtime. virtual/jdk, dev-java/gjdoc, or similar should satisfy this.

Comment 9 Daniel Solano Gómez 2009-10-20 13:42:29 UTC
(In reply to comment #8)
> Adding java-pkg_dolauncher to the source install would be nice. Also, I get
> some QA warnings regarding the javadoc dependencies, which are needed in the
> runtime. virtual/jdk, dev-java/gjdoc, or similar should satisfy this.

Thank you for your input.  I have resolved both of those issues and committed the changes to the java-experimental overlay.
Comment 10 Ivan Baidakou (dmol) 2012-08-28 15:29:44 UTC
Created attachment 322448 [details]
testng-6.7.ebuild
Comment 11 Ivan Baidakou (dmol) 2012-08-28 15:34:06 UTC
Created attachment 322452 [details, diff]
files/testng-6.7-testng.xml.patch

Here is the testng-6.7 ebuild, based on latest ebuild from java-experimental overylay. It requires jcommander-1.13 (#430688) and dev-java/guice-2 (can be found in my overlay named "dmol")
Comment 12 Pariksheet Nanda 2013-07-04 23:30:06 UTC
Created attachment 352644 [details]
testng-6.7.ebuild

The ebuild fails because Github's `nodeload' subdomain no longer resolves.  Fixed in attachment along with inheriting vcs-snapshot.
Comment 13 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-10-12 16:22:53 UTC
+  12 Oct 2013; Tom Wijsman <TomWij@gentoo.org> +files/build-tests.xml,
+  +files/testng-6.8-build-tests.xml,
+  +files/testng-6.8-remove-ivy-retrieve.patch,
+  +files/testng-6.8-remove-jar-bundling.patch, +metadata.xml,
+  +testng-6.8.ebuild:
+  New ebuild for dev-java/testng, testing framework introducing some new
+  functionalities that make it more powerful and easier to use; merged work from
+  dmol and Pariksheet Nanda from bug #146226 as well as with the ebuild by ercpe
+  from lh-overlay, fixes bug #146226 and bug #373561.

Thanks for everyone whom reported, helped on and contributed to this bug.