From 0442d897e9e498cff647f03964689dc044825254 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Tue, 24 Oct 2017 22:18:59 +0200 Subject: gnu: Add java-testng. * gnu/packages/java.scm (java-testng): New variable. --- gnu/packages/java.scm | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 7d2ab5fecb..681c5ab9d4 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -6457,3 +6457,63 @@ those in Perl and JavaScript.") (synopsis "FEST fluent assertions") (description "FEST-Assert provides a fluent interface for assertions.") (license license:asl2.0))) + +(define-public java-testng + (package + (name "java-testng") + (version "6.12") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/cbeust/testng/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "01j2x47wkj7n5w6gpcjfbwgc88ai5654b23lb87w7nsrj63m3by6")))) + (build-system ant-build-system) + (arguments + `(#:jdk ,icedtea-8; java.util.function + #:jar-name "java-testng.jar" + #:source-dir "src/main/java" + #:phases + (modify-phases %standard-phases + (add-before 'build 'copy-resources + (lambda _ + (copy-recursively "src/main/resources" "build/classes") + #t)) + (add-before 'check 'copy-test-resources + (lambda _ + (copy-recursively "src/test/resources" "build/test-classes") + #t)) + (replace 'check + (lambda _ + (system* "ant" "compile-tests") + ;; we don't have groovy + (substitute* "src/test/resources/testng.xml" + (("") "")) + (zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH") + ":build/classes" + ":build/test-classes") + "-Dtest.resources.dir=src/test/resources" + "org.testng.TestNG" "src/test/resources/testng.xml"))))))) + (propagated-inputs + `(("junit" ,java-junit) + ("java-jsr305" ,java-jsr305) + ("java-bsh" ,java-bsh) + ("java-jcommander" ,java-jcommander) + ("java-guice" ,java-guice) + ("snakeyaml" ,java-snakeyaml))) + (native-inputs + `(("guava" ,java-guava) + ("java-javax-inject" ,java-javax-inject) + ("java-hamcrest" ,java-hamcrest-all) + ("java-assertj" ,java-assertj) + ("cglib" ,java-cglib) + ("asm" ,java-asm) + ("aopalliance" ,java-aopalliance))) + (home-page "http://testng.org") + (synopsis "Testing framework") + (description "TestNG is a testing framework inspired from JUnit and NUnit +but introducing some new functionalities that make it more powerful and easier +to use.") + (license license:asl2.0))) -- cgit v1.2.3 3194c7'>gnu: python-pyqt: Update to 5.9....Marius Bakke 2017-10-21gnu: python-sip: Update to 4.19.3....Marius Bakke 2017-10-13gnu: qtkeychain: Reduce the number of warnings when configuring....Hartmut Goebel 2017-10-13gnu: grantlee: Enable all tests....Hartmut Goebel 2017-10-13gnu: qscintilla: Adjust installation directory layout....Hartmut Goebel 2017-10-13gnu: qtwebkit: Fix rpath for the qmlwebkit plugins....Hartmut Goebel 2017-10-13gnu: qwt: Adjust installation directory layout....宋文武 2017-10-13gnu: qt: Fix install paths in submodules....宋文武 2017-10-13gnu: qtbase: Use a more standard directory layout....宋文武 2017-10-12gnu: qt: Update to 5.9.2....Efraim Flashner 2017-10-10gnu: modular-qt: Update to 5.9.2....Efraim Flashner 2017-10-10gnu: qtcharts, qtdatavis3d: Update license information....Efraim Flashner 2017-10-10gnu: modular-qt: Add synopsis and descriptions for packages....Efraim Flashner 2017-10-10gnu: qtbase: Use libinput-minimal....Efraim Flashner 2017-10-10gnu: Add qtspeech....Efraim Flashner 2017-10-10gnu: Add qtremoteobjects....Efraim Flashner 2017-10-10gnu: Add qtnetworkauth....Efraim Flashner 2017-09-28gnu: qtmultimedia: Build gstreamer backend....Ricardo Wurmus 2017-07-22gnu: Add python-pyqt+qscintilla....Ricardo Wurmus 2017-07-22gnu: Add python-qscintilla....Ricardo Wurmus 2017-07-22gnu: Add qscintilla....Ricardo Wurmus 2017-07-04gnu: qt: Update to 5.9.1....Efraim Flashner 2017-06-22gnu: qtsensors: Lengthen test timeout....Efraim Flashner 2017-06-01gnu: qt: Update to 5.9.0....Efraim Flashner 2017-05-19gnu: python-pyqt@4: Update to 4.12....Marius Bakke 2017-05-19gnu: python-pyqt: Update to 5.8.2....Marius Bakke 2017-05-19gnu: python-sip: Update to 4.19.2....Marius Bakke 2017-05-18gnu: qt: Update to 5.8.0....Efraim Flashner 2017-05-18gnu: qtbase: Update configure flags....Efraim Flashner 2017-05-18gnu: qtbase: Don't use bundled double-conversion....Efraim Flashner 2017-05-18gnu: qtconnectivity: Fix building on armhf and aarch64....Efraim Flashner 2017-05-18gnu: qtscript: Fix building on aarch64....Efraim Flashner 2017-04-26gnu: qtkeychain: Update to 0.8.0....Efraim Flashner