[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
32/229: gnu: ruby-standard: Enable test suite.
From: |
guix-commits |
Subject: |
32/229: gnu: ruby-standard: Enable test suite. |
Date: |
Tue, 28 Mar 2023 22:28:58 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 0198bf5a793b4de1bd9b6015b16fd4a4921acfa4
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Mar 2 08:30:37 2023 -0500
gnu: ruby-standard: Enable test suite.
* gnu/packages/ruby.scm (ruby-standard) [arguments]: Delete #:tests?
argument.
Delete relax-version-requiremens phase. Add set-HOME and
delete-problematic-tests phases.
[propagated-inputs]: Add ruby-language-server-protocol.
---
gnu/packages/ruby.scm | 29 ++++++++++++++++++++---------
1 file changed, 20 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 6be813ec8d..7e21ab043a 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1816,17 +1816,28 @@ Batch and flush behavior.
"0q42gv7wgrc818a5hm599sy07vjq69hbijzpkpgh6jws6x7wzyh3"))))
(build-system ruby-build-system)
(arguments
- ;; TODO: the tests are currently broken due to using a different Rubocop
- ;; version.
- `(#:tests? #f
- #:phases
+ `(#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'relax-version-requiremens
+ (add-after 'unpack 'set-HOME
(lambda _
- (delete-file "Gemfile")
- (delete-file "Gemfile.lock"))))))
- (native-inputs (list ruby-gimme ruby-pry ruby-simplecov))
- (propagated-inputs (list ruby-rubocop ruby-rubocop-performance))
+ ;; Some tests fail otherwise.
+ (setenv "HOME" "/tmp")))
+ (add-after 'unpack 'delete-problematic-tests
+ ;; These tests fail for unknown reasons (see:
+ ;; https://github.com/testdouble/standard/issues/532).
+ (lambda _
+ (for-each
+ delete-file
+ '("test/standard_test.rb"
+ "test/standard/cop/block_single_line_braces_test.rb")))))))
+ (native-inputs
+ (list ruby-gimme
+ ruby-pry
+ ruby-simplecov))
+ (propagated-inputs
+ (list ruby-language-server-protocol
+ ruby-rubocop
+ ruby-rubocop-performance))
(synopsis "Ruby Style Guide, with linter & automatic code fixer")
(description "Standard is a port of StandardJS. Like StandardJS, it aims
to save time in the following ways:
- 64/229: gnu: Add ruby-minitest-proveit., (continued)
- 64/229: gnu: Add ruby-minitest-proveit., guix-commits, 2023/03/28
- 67/229: gnu: ruby-activejob: Update to 7.0.4.3 and enable tests., guix-commits, 2023/03/28
- 69/229: gnu: ruby-addressable: Update to 2.8.1., guix-commits, 2023/03/28
- 73/229: gnu: ruby-puma: Build with SSL support., guix-commits, 2023/03/28
- 75/229: gnu: ruby-rack: Update to 2.2.6.3., guix-commits, 2023/03/28
- 77/229: gnu: Add ruby-rack-next., guix-commits, 2023/03/28
- 79/229: gnu: ruby-rack-test: Update to 2.1.0., guix-commits, 2023/03/28
- 16/229: gnu: ruby-given-core: Update to 3.8.2., guix-commits, 2023/03/28
- 23/229: gnu: ruby-simplecov: Update to 0.22.0., guix-commits, 2023/03/28
- 25/229: gnu: ruby-rubocop-rspec: Update to 2.19.0 and inverse inheritance relationship., guix-commits, 2023/03/28
- 32/229: gnu: ruby-standard: Enable test suite.,
guix-commits <=
- 42/229: gnu: Remove ruby-protobuf-cucumber., guix-commits, 2023/03/28
- 17/229: gnu: ruby-rspec-mocks: Update to 3.12.4., guix-commits, 2023/03/28
- 21/229: gnu: Add ruby-simplecov-json-formatter., guix-commits, 2023/03/28
- 37/229: gnu: Add ruby-hiredis., guix-commits, 2023/03/28
- 39/229: gnu: ruby-rake: Update to 13.0.6., guix-commits, 2023/03/28
- 48/229: gnu: Add ruby-cucumber-ci-environment., guix-commits, 2023/03/28
- 13/229: gnu: ruby-rspec: Update to 3.12.0., guix-commits, 2023/03/28
- 60/229: gnu: ruby-activerecord: Update to 7.0.4.3 and enable tests., guix-commits, 2023/03/28
- 65/229: gnu: ruby-zeitwerk: Update to 2.6.7., guix-commits, 2023/03/28
- 66/229: gnu: Add ruby-queue-classic., guix-commits, 2023/03/28