Sha256: 051848025544245992f64af98d399f4cdff174e0e1990dca71e396195418fead
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
load "testlib" setup() { require_gem "rspec" ">= 2.0" } @test "rspec-queue succeeds when all specs pass" { run bundle exec rspec-queue ./test/samples/sample_spec.rb assert_status 0 assert_output_contains "Starting test-queue master" } @test "rspec-queue fails when a spec fails" { export FAIL=1 run bundle exec rspec-queue ./test/samples/sample_spec.rb assert_status 1 assert_output_contains "1) RSpecFailure fails" assert_output_contains "Failure/Error: expect(:foo).to eq :bar" } @test "TEST_QUEUE_SPLIT_GROUPS splits splittable groups" { export TEST_QUEUE_SPLIT_GROUPS=true run bundle exec rspec-queue ./test/samples/sample_split_spec.rb assert_status 0 assert_output_matches '\[ 1\] +1 example, 0 failures' assert_output_matches '\[ 2\] +1 example, 0 failures' } @test "TEST_QUEUE_SPLIT_GROUPS does not split unsplittable groups" { export TEST_QUEUE_SPLIT_GROUPS=true export NOSPLIT=1 run bundle exec rspec-queue ./test/samples/sample_split_spec.rb assert_status 0 assert_output_contains "2 examples, 0 failures" assert_output_contains "0 examples, 0 failures" }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
test-queue-0.3.1 | test/rspec.bats |
test-queue-0.3.0 | test/rspec.bats |