Skip to content

Commit d394af0

Browse files
authored
Skip TypeCompletion test in ruby ci (#748)
1 parent 1048c7e commit d394af0

File tree

6 files changed

+11
-2
lines changed

6 files changed

+11
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
ruby-version: ${{ matrix.ruby }}
3636
bundler-cache: true
3737
- name: Run tests
38-
run: bundle exec rake test
38+
run: WITH_TYPE_COMPLETION_TEST=1 bundle exec rake test
3939
- name: Run tests in isolation
40-
run: bundle exec rake test_in_isolation
40+
run: WITH_TYPE_COMPLETION_TEST=1 bundle exec rake test_in_isolation
4141
vterm-yamatanooroti:
4242
needs: ruby-versions
4343
name: >-

test/irb/test_context.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ def test_lineno
653653
end
654654

655655
def test_build_completor
656+
pend 'set ENV["WITH_TYPE_COMPLETION_TEST"] to run this test' unless ENV['WITH_TYPE_COMPLETION_TEST']
656657
verbose, $VERBOSE = $VERBOSE, nil
657658
original_completor = IRB.conf[:COMPLETOR]
658659
IRB.conf[:COMPLETOR] = :regexp

test/irb/type_completion/test_scope.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# frozen_string_literal: true
22

3+
return unless ENV['WITH_TYPE_COMPLETION_TEST']
4+
35
return unless RUBY_VERSION >= '3.0.0'
46
return if RUBY_ENGINE == 'truffleruby' # needs endless method definition
57

test/irb/type_completion/test_type_analyze.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# frozen_string_literal: true
22

3+
return unless ENV['WITH_TYPE_COMPLETION_TEST']
4+
35
# Run test only when Ruby >= 3.0 and %w[prism rbs] are available
46
return unless RUBY_VERSION >= '3.0.0'
57
return if RUBY_ENGINE == 'truffleruby' # needs endless method definition

test/irb/type_completion/test_type_completor.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# frozen_string_literal: true
22

3+
return unless ENV['WITH_TYPE_COMPLETION_TEST']
4+
35
# Run test only when Ruby >= 3.0 and %w[prism rbs] are available
46
return unless RUBY_VERSION >= '3.0.0'
57
return if RUBY_ENGINE == 'truffleruby' # needs endless method definition

test/irb/type_completion/test_types.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# frozen_string_literal: true
22

3+
return unless ENV['WITH_TYPE_COMPLETION_TEST']
4+
35
return unless RUBY_VERSION >= '3.0.0'
46
return if RUBY_ENGINE == 'truffleruby' # needs endless method definition
57

0 commit comments

Comments
 (0)