Skip to content

Commit

Permalink
Skip TypeCompletion test in ruby ci (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng authored Nov 8, 2023
1 parent 1048c7e commit d394af0
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake test
run: WITH_TYPE_COMPLETION_TEST=1 bundle exec rake test
- name: Run tests in isolation
run: bundle exec rake test_in_isolation
run: WITH_TYPE_COMPLETION_TEST=1 bundle exec rake test_in_isolation
vterm-yamatanooroti:
needs: ruby-versions
name: >-
Expand Down
1 change: 1 addition & 0 deletions test/irb/test_context.rb
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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 d394af0

Please sign in to comment.