guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/110: gnu: java-junit: Enable tests.


From: guix-commits
Subject: 04/110: gnu: java-junit: Enable tests.
Date: Thu, 16 Jul 2020 22:23:10 -0400 (EDT)

roptat pushed a commit to branch master
in repository guix.

commit 29428e10b832e99af70eafdb381a45bd701b3397
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Sun Apr 5 21:30:26 2020 +0200

    gnu: java-junit: Enable tests.
    
    * gnu/packages/java.scm (java-junit)[arguments]: Enable tests.
---
 gnu/packages/java.scm | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index a3781a2..c74afa7 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -3733,10 +3733,21 @@ testing frameworks, mocking libraries and UI validation 
rules.")
                   #t))))
     (build-system ant-build-system)
     (arguments
-     `(#:tests? #f ; no tests
-       #:jar-name "junit.jar"))
-    (inputs
+     `(#:jar-name "junit.jar"
+       #:source-dir "src/main/java"
+       #:test-dir "src/test"
+       #:test-exclude (list "**/SimpleTest.java" "**/StackTracesTest.java"
+                            "**/RuleChainTest.java" "**/TestWatchmanTest.java")
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'copy-test-resources
+           (lambda _
+             (copy-recursively "src/test/resources" "build/test-classes")
+             #t)))))
+    (propagated-inputs
      `(("java-hamcrest-core" ,java-hamcrest-core)))
+    (native-inputs
+     `(("java-hamcrest-library" ,java-hamcrest-library)))
     (home-page "https://junit.org/junit4/";)
     (synopsis "Test framework for Java")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]