Skip to content

Commit 8cfa7b2

Browse files
authored
Merge pull request #746 from integer32llc/spex
Track RSpec failures to easily retry them when debugging
2 parents 534d18b + 65fd9a0 commit 8cfa7b2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/spec/features/compilation_targets_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
# We demangle the symbols
5555
expect(page).to have_content 'playground::main:'
5656

57-
expect(page).to have_content 'movq %rdi, %rax'
57+
expect(page).to have_content 'addq $40, %rsp'
5858
end
5959
end
6060
end
@@ -71,7 +71,7 @@
7171
# We demangle the symbols
7272
expect(page).to have_content 'playground::main:'
7373

74-
expect(page).to have_content 'mov rax, rdi'
74+
expect(page).to have_content 'add rsp, 40'
7575
end
7676
end
7777
end

tests/spec/spec_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'tmpdir'
2+
13
RSpec.configure do |config|
24
config.expect_with :rspec do |expectations|
35
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
@@ -17,6 +19,8 @@
1719
config.default_formatter = 'doc'
1820
end
1921

22+
config.example_status_persistence_file_path = "#{Dir.tmpdir()}/playground-test-failures"
23+
2024
config.order = :random
2125

2226
Kernel.srand config.seed

0 commit comments

Comments
 (0)