1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-13 10:30:43 +02:00

gnu: ruby-single-cov: Fix tests.

* gnu/packages/ruby-xyz.scm (ruby-single-cov)
  [arguments]{phases}: Add phase 'add-mutex-m. Refresh phase
  'disable-failing-tests.
  [native-inputs]: Add ruby-mutex-m.
This commit is contained in:
Nicolas Graves 2025-06-18 16:27:50 +02:00 committed by Andreas Enge
parent 53d2bae810
commit 045b13950b
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -6592,6 +6592,13 @@ classes implemented in C.")
(arguments (arguments
'(#:test-target "spec" ;to avoid rubocop requirement '(#:test-target "spec" ;to avoid rubocop requirement
#:phases (modify-phases %standard-phases #:phases (modify-phases %standard-phases
;; XXX: Warnings make a few tests fail.
;; Add mutex-m in Gemfile to avoid them.
(add-after 'unpack 'add-mutex-m
(lambda _
(substitute* "Gemfile"
(("^gem \"bump\".*" all)
(string-append all "gem \"mutex_m\"\n")))))
(replace 'replace-git-ls-files (replace 'replace-git-ls-files
(lambda _ (lambda _
(substitute* "single_cov.gemspec" (substitute* "single_cov.gemspec"
@ -6617,8 +6624,10 @@ classes implemented in C.")
;; it for now. ;; it for now.
(substitute* "specs/single_cov_spec.rb" (substitute* "specs/single_cov_spec.rb"
(("it \"complains when coverage is bad\"") (("it \"complains when coverage is bad\"")
"xit \"complains when coverage is bad\""))))))) "xit \"complains when coverage is bad\"")
(native-inputs (list ruby-minitest ruby-rspec ruby-simplecov)) (("it \"does not duplicate coverage\"")
"xit \"does not duplicate coverage\"")))))))
(native-inputs (list ruby-minitest ruby-mutex-m ruby-rspec ruby-simplecov))
(synopsis "Code coverage reporting tool") (synopsis "Code coverage reporting tool")
(description (description
"This package provides actionable code coverage reports for Ruby "This package provides actionable code coverage reports for Ruby