Skip to content

Commit

Permalink
Disable tests under JRuby for now
Browse files Browse the repository at this point in the history
  • Loading branch information
dabdine committed Dec 9, 2021
1 parent b465f05 commit 56a253d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ end
require 'cucumber'
require 'cucumber/rake/task'

def jruby?
defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
end

Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "features --format pretty"
t.cucumber_opts = "features --format pretty" + (jruby? ? " --tags 'not @jruby-disabled'" : "")
end

task :default => [ :tests, :yard ]
Expand Down
6 changes: 6 additions & 0 deletions features/verify.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ Feature: Verify
successful_tests.xml: SUMMARY: Test completed with 4 successful, 0 warnings, and 0 failures
"""

# This test is diabled in JRuby because JRuby does not number lines correctly, whereas
# CRuby does. See https://github.com/sparklemotion/nokogiri/issues/2380
@no-clobber
@jruby-disabled
Scenario: Tests with warnings, warnings enabled
When I run `recog_verify tests_with_warnings.xml`
Then it should fail with:
Expand All @@ -34,7 +37,10 @@ Feature: Verify
tests_with_warnings.xml: SUMMARY: Test completed with 1 successful, 0 warnings, and 0 failures
"""

# This test is diabled in JRuby because JRuby does not number lines correctly, whereas
# CRuby does. See https://github.com/sparklemotion/nokogiri/issues/2380
@no-clobber
@jruby-disabled
Scenario: Tests with failures
When I run `recog_verify tests_with_failures.xml`
Then it should fail with:
Expand Down

0 comments on commit 56a253d

Please sign in to comment.