summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgemmaro <gemmaro.dev@gmail.com>2026-03-14 23:10:34 +0900
committerNguyễn Gia Phong <cnx@loang.net>2026-04-03 13:34:40 +0900
commit59c47147bcb2d3e9e46dfc1f28aa128c57e9360a (patch)
tree818018c25161a3898b09f9425d50d771cfc4c871
parentee4ae4bb2a465edb8a5d8bc0b04c1327a7e7b16b (diff)
gnu: ruby-test-unit: Simplify testing.
The extra dependencies specified in Rakefile are only necessary if when using Ruby build system's check phase. * gnu/packages/ruby.scm (ruby-test-unit)[arguments]<#:phases>: Replace check phase to run the test script directly. [native-inputs]: Remove bundler, ruby-packnga and ruby-yard. Change-Id: Ia0cdf09989d2c12f1c72e059806fb2ef8081fc8d Reviewed-by: Carlo Zancanaro <carlo@zancanaro.id.au> Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
-rw-r--r--gnu/packages/ruby-xyz.scm11
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index c2235eeb73a..0973a528a1a 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -4768,10 +4768,17 @@ temporary files and directories during tests.")
(base32
"0w1m432q3y5v9lkak8yyxadak3z17bsp6afni97i4zjdgfz7niz2"))))
(build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; This avoids requiring extra dependencies in Rakefile.
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "ruby" "test/run-test.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