Sha256: 4ecf1c273b87888b052b785716dcc75b738a04c1e5b58ac4fbfd61e0581c7b1f

Contents?: true

Size: 1.07 KB

Versions: 41

Compression:

Stored size: 1.07 KB

Contents

load 'openc3/script/suite.rb'
require 'INST/procedures/utilities/collect' # Test requiring files from buckets in suite analysis

class ExampleGroup < OpenC3::Group
  def setup
    puts "Setup"
  end

  def script_run_method_with_long_name
    puts "Running #{OpenC3::Group.current_suite}:#{OpenC3::Group.current_group}:#{OpenC3::Group.current_script}"
    OpenC3::Group.puts "This test verifies requirement 1"
    raise "error"
    puts "continue past raise"
  end

  def script_2
    puts "Running #{OpenC3::Group.current_suite}:#{OpenC3::Group.current_group}:#{OpenC3::Group.current_script}"
    OpenC3::Group.puts "This test verifies requirement 2"
    helper()
    wait(2)
  end

  def script_3
    puts "Running #{OpenC3::Group.current_suite}:#{OpenC3::Group.current_group}:#{OpenC3::Group.current_script}"
    raise SkipScript
  end

  def helper
    if $manual
      answer = ask "Are you sure?"
    else
      answer = 'y'
    end
  end

  def teardown
    puts "teardown"
  end
end

class MySuite < OpenC3::Suite
  def initialize
    super()
    add_group('ExampleGroup')
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
openc3-cosmos-demo-5.20.0 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.19.0 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.18.0 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.17.1 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.17.0 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.16.0 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.15.2 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.15.1 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.15.0 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.14.2 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.14.1 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.14.0 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.13.0 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.12.0 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.11.3 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.11.2 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.11.1 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.11.0 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.10.1 targets/INST/procedures/my_script_suite.rb
openc3-cosmos-demo-5.10.0 targets/INST/procedures/my_script_suite.rb