Skip to content

Commit

Permalink
[ruby/irb] Skip TypeCompletion test in ruby ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng authored and matzbot committed Nov 8, 2023
1 parent 7f565b9 commit 8da33bf
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/irb/test_context.rb
Expand Up @@ -653,6 +653,7 @@ def test_lineno
end

def test_build_completor
pend 'set ENV["WITH_TYPE_COMPLETION_TEST"] to run this test' unless ENV['WITH_TYPE_COMPLETION_TEST']
verbose, $VERBOSE = $VERBOSE, nil
original_completor = IRB.conf[:COMPLETOR]
IRB.conf[:COMPLETOR] = :regexp
Expand Down
2 changes: 2 additions & 0 deletions test/irb/type_completion/test_scope.rb
@@ -1,5 +1,7 @@
# frozen_string_literal: true

return unless ENV['WITH_TYPE_COMPLETION_TEST']

return unless RUBY_VERSION >= '3.0.0'
return if RUBY_ENGINE == 'truffleruby' # needs endless method definition

Expand Down
2 changes: 2 additions & 0 deletions test/irb/type_completion/test_type_analyze.rb
@@ -1,5 +1,7 @@
# frozen_string_literal: true

return unless ENV['WITH_TYPE_COMPLETION_TEST']

# Run test only when Ruby >= 3.0 and %w[prism rbs] are available
return unless RUBY_VERSION >= '3.0.0'
return if RUBY_ENGINE == 'truffleruby' # needs endless method definition
Expand Down
2 changes: 2 additions & 0 deletions test/irb/type_completion/test_type_completor.rb
@@ -1,5 +1,7 @@
# frozen_string_literal: true

return unless ENV['WITH_TYPE_COMPLETION_TEST']

# Run test only when Ruby >= 3.0 and %w[prism rbs] are available
return unless RUBY_VERSION >= '3.0.0'
return if RUBY_ENGINE == 'truffleruby' # needs endless method definition
Expand Down
2 changes: 2 additions & 0 deletions test/irb/type_completion/test_types.rb
@@ -1,5 +1,7 @@
# frozen_string_literal: true

return unless ENV['WITH_TYPE_COMPLETION_TEST']

return unless RUBY_VERSION >= '3.0.0'
return if RUBY_ENGINE == 'truffleruby' # needs endless method definition

Expand Down

0 comments on commit 8da33bf

Please sign in to comment.