Sha256: cee48c30426ba283cf35917c6dd4498518f6360f329dcb5e5980956b56135a34

Contents?: true

Size: 710 Bytes

Versions: 32

Compression:

Stored size: 710 Bytes

Contents

require 'test_helper'
require 'omf_ec/runner'

describe OmfEc::Runner do
  before do
    uninit
  end

  after do
    uninit
  end
  it "must allow to accept a set of command line options" do
    ARGV.clear
    "-u amqp://localhost --slice empty --oml_uri tcp:localhost:3003 -e xxx -d --experiment e1 --show-graph exec #{File.dirname(__FILE__)}/../oedls/empty.oedl -- --prop_1 p1value".split(" ").each do |opt|
      ARGV << opt
    end
    runner = OmfEc::Runner.new
    runner.init

    assert_equal 'e1', OmfEc.experiment.name
    assert_equal "tcp:localhost:3003", OmfEc.experiment.oml_uri
    assert_equal true, OmfEc.experiment.show_graph
    assert_match /oedls\/empty.oedl/, runner.oedl_path
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
omf_ec-6.2.3 test/omf_ec/runner_spec.rb
omf_ec-6.2.2 test/omf_ec/runner_spec.rb
omf_ec-6.2.1 test/omf_ec/runner_spec.rb
omf_ec-6.2.0 test/omf_ec/runner_spec.rb
omf_ec-6.2.0.pre.2 test/omf_ec/runner_spec.rb
omf_ec-6.2.0.pre.1 test/omf_ec/runner_spec.rb
omf_ec-6.1.14.pre.2 test/omf_ec/runner_spec.rb
omf_ec-6.1.14.pre.1 test/omf_ec/runner_spec.rb
omf_ec-6.1.12 test/omf_ec/runner_spec.rb
omf_ec-6.1.11 test/omf_ec/runner_spec.rb
omf_ec-6.1.10 test/omf_ec/runner_spec.rb
omf_ec-6.1.9 test/omf_ec/runner_spec.rb
omf_ec-6.1.9.pre.4 test/omf_ec/runner_spec.rb
omf_ec-6.1.9.pre.3 test/omf_ec/runner_spec.rb
omf_ec-6.1.9.pre.2 test/omf_ec/runner_spec.rb
omf_ec-6.1.8 test/omf_ec/runner_spec.rb
omf_ec-6.1.7 test/omf_ec/runner_spec.rb
omf_ec-6.1.6 test/omf_ec/runner_spec.rb
omf_ec-6.1.6.pre.2 test/omf_ec/runner_spec.rb
omf_ec-6.1.6.pre.1 test/omf_ec/runner_spec.rb