Sha256: 4170ad3a33b3ceddcfc1c344e765926900df90c8812567b49c6d750a48e949c4

Contents?: true

Size: 1.08 KB

Versions: 33

Compression:

Stored size: 1.08 KB

Contents

require "spec_helper"
require "parallel_tests/gherkin/runner_behaviour"
require "parallel_tests/cucumber/runner"

describe ParallelTests::Cucumber::Runner do
  test_tests_in_groups(ParallelTests::Cucumber::Runner, 'features', ".feature")

  it_should_behave_like 'gherkin runners' do
    let(:runner_name) {'cucumber'}
    let(:runner_class){ParallelTests::Cucumber::Runner}

    describe :summarize_results do
      def call(*args)
        runner_class().summarize_results(*args)
      end

      it "collates failing scenarios" do
        results = ["Failing Scenarios:", "cucumber features/failure:1", "cucumber features/failure:2",
                   "Failing Scenarios:", "cucumber features/failure:3", "cucumber features/failure:4",
                   "Failing Scenarios:", "cucumber features/failure:5", "cucumber features/failure:6"]
        call(results).should == "Failing Scenarios:\ncucumber features/failure:1\ncucumber features/failure:2\ncucumber features/failure:3\ncucumber features/failure:4\ncucumber features/failure:5\ncucumber features/failure:6\n\n"
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
parallel_tests-1.0.9 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-1.0.8 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-1.0.7 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-1.0.6 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-1.0.5 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-1.0.4 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-1.0.3 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-1.0.2 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-1.0.1 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-1.0.0 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.17 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.16 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.15 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.14 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.13 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.12 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.11 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.10 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.9 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.8 spec/parallel_tests/cucumber/runner_spec.rb