GNU bug report logs - #77568
[PATCH ruby-team 0/3] gnu: ruby-test-unit: Simplify testing.

Previous Next

Package: guix-patches;

Reported by: gemmaro <gemmaro.dev <at> gmail.com>

Date: Sun, 6 Apr 2025 01:36:02 UTC

Severity: normal

Tags: patch

Full log


Message #8 received at 77568 <at> debbugs.gnu.org (full text, mbox):

From: gemmaro <gemmaro.dev <at> gmail.com>
To: 77568 <at> debbugs.gnu.org
Cc: gemmaro <gemmaro.dev <at> gmail.com>
Subject: [PATCH ruby-team 1/3] gnu: ruby-test-unit: Simplify testing.
Date: Sun,  6 Apr 2025 10:38:45 +0900
* gnu/packages/ruby.scm (ruby-test-unit): Simplify testing by directly running
the test script and removing redundant native input dependencies.

Change-Id: I8ceb7c46dffade84d00fe6477210d808b3012f60
---
 gnu/packages/ruby.scm | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 2a80d3f4fb..38ba729258 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -5155,10 +5155,16 @@ (define-public ruby-test-unit
                (base32
                 "0w1m432q3y5v9lkak8yyxadak3z17bsp6afni97i4zjdgfz7niz2"))))
     (build-system ruby-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (when tests?
+                (invoke "ruby" "test/run.rb")))))))
     (propagated-inputs
      (list ruby-power-assert))
-    (native-inputs
-     (list bundler ruby-packnga ruby-yard))
     (synopsis "Unit testing framework for Ruby")
     (description "@code{Test::Unit} is unit testing framework for Ruby, based
 on xUnit principles.  These were originally designed by Kent Beck, creator of
-- 
2.49.0





This bug report was last modified 71 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.