Sha256: 067bf227c78af63be4b7e634fa18a4693345fda36dcbbc2efacf99467d5ab3cb
Contents?: true
Size: 829 Bytes
Versions: 3
Compression:
Stored size: 829 Bytes
Contents
desc 'unit', 'Run Test::Unit' long_desc <<-LONGDESC Supports `parallel_tests`, binstubs and `bundle exec`. In order to limit processes in a parallel run, you can set an environment variable like this: `PARALLEL_TEST_PROCESSORS=6 geordi unit` LONGDESC def unit if File.exist?('test/test_helper.rb') invoke_geordi 'bundle_install' invoke_geordi 'yarn_install' Interaction.announce 'Running Test::Unit' if Util.file_containing?('Gemfile', /parallel_tests/) Interaction.note 'All unit tests at once (using parallel_tests)' Util.run!([Util.binstub_or_fallback('rake'), 'parallel:test'], fail_message: 'Test::Unit failed.') else Util.run!([Util.binstub_or_fallback('rake'), 'test'], fail_message: 'Test::Unit failed.') end else Interaction.note 'Test::Unit not employed.' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
geordi-11.2.0 | lib/geordi/commands/unit.rb |
geordi-11.1.0 | lib/geordi/commands/unit.rb |
geordi-11.0.0 | lib/geordi/commands/unit.rb |