Open bkuhlmann opened 2 weeks ago
Hello. :wave: With Ruby 3.4.0, Preview 2, I'm experiencing the following issue when running my RSpec test suite:
Assertion failed: (cursor >= list->start), function pm_newline_list_line_column, file pm_newline_list.c, line 93. Abort trap: 6
To reproduce, run the following:
git clone https://github.com/bkuhlmann/core.git cd core bundle install rspec
As a workaround, you can make SimpleCov work by doing the following:
core
spec/spec_helper.rb
enable_coverage :branch
minimum_coverage_by_file line: 95, branch: 95
rspec
Notice the entire test suite runs as expected and there are no errors reported.
The issue seems to be with enabling branch coverage in Ruby 3.4.0. All of this works fine in Ruby 3.3.0, though.
Here's what I'm running:
This seems to be a ruby bug, I openend https://bugs.ruby-lang.org/issues/20866
Ah, thanks. :bow: Will track on Ruby Issues as well.
Why
Hello. :wave: With Ruby 3.4.0, Preview 2, I'm experiencing the following issue when running my RSpec test suite:
How
To reproduce, run the following:
As a workaround, you can make SimpleCov work by doing the following:
core
project directory, openspec/spec_helper.rb
in your editor.enable_coverage :branch
.minimum_coverage_by_file line: 95, branch: 95
rspec
Notice the entire test suite runs as expected and there are no errors reported.
The issue seems to be with enabling branch coverage in Ruby 3.4.0. All of this works fine in Ruby 3.3.0, though.
Notes
Here's what I'm running: