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-0.16.7 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.6 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.5 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.4 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.3 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.2 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.1 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.16.0 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.15.4 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.15.3 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.15.2 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.15.1 spec/parallel_tests/cucumber/runner_spec.rb
parallel_tests-0.15.0 spec/parallel_tests/cucumber/runner_spec.rb