Skip to content

Commit 8fdba4f

Browse files
committed
Skip tests for DAP and CDP if the environmental variable is not set
1 parent 049c2c2 commit 8fdba4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/support/protocol_utils.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,14 @@ class Detach < StandardError
3434
end
3535
CDP_HASH = JSON.parse(json, symbolize_names: true)
3636

37+
pt = ENV['RUBY_DEBUG_PROTOCOL_TEST']
38+
PROTOCOL_TEST = pt == 'true' || pt == '1'
39+
3740
# API
3841

3942
def run_protocol_scenario program, dap: true, cdp: true, &scenario
43+
omit 'Tests for CDP and DAP were skipped. You can enable them with RUBY_DEBUG_PROTOCOL_TEST=1.' unless PROTOCOL_TEST
44+
4045
write_temp_file(strip_line_num(program))
4146
execute_dap_scenario scenario if dap
4247
execute_cdp_scenario scenario if cdp

0 commit comments

Comments
 (0)