diff options
author | 2015-01-26 19:22:43 -0800 | |
---|---|---|
committer | 2015-01-26 19:22:43 -0800 | |
commit | 4eecb5da1ad1431ce5dcef2a8767d25e7b79c8c9 (patch) | |
tree | f1edc66ed0e6690b6a7ef4fd25af84d986634509 /src/ruby | |
parent | 965dda629e53166f8c7edbd634c4110d1cd13bdb (diff) |
Adds a flag for running all the tests
Diffstat (limited to 'src/ruby')
-rwxr-xr-x | src/ruby/bin/interop/interop_client.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ruby/bin/interop/interop_client.rb b/src/ruby/bin/interop/interop_client.rb index 702db0d22f..4c9c24be15 100755 --- a/src/ruby/bin/interop/interop_client.rb +++ b/src/ruby/bin/interop/interop_client.rb @@ -196,6 +196,15 @@ class NamedTests resps.each { |r| ppp.queue.push(r) } p 'OK: ping_pong' end + + def all + all_methods = NamedTests.instance_methods(false).map(&:to_s) + all_methods.each do |m| + next if m == 'all' or m.start_with?('assert') + p "TESTCASE: #{m}" + self.method(m).call + end + end end # validates the the command line options, returning them as a Hash. |