Features
- Added state leakage detection for
let_it_be
.
See documentation.
- Added ability to configure default
let_it_be
modifiers.
TestProf::LetItBe.configure do |config|
# Make refind activated by default
config.default_modifiers[:refind] = true
end
- Added ability to configure
let_it_be
modifiers via metadata.
context "with let_it_be reload", let_it_be_modifiers: {reload: true} do
# examples
end
- Added ability to define stackprof's interval sampling by using
TEST_STACK_PROF_INTERVAL
env variable.
Now you can use $ TEST_STACK_PROF=1 TEST_STACK_PROF_INTERVAL=10000 rspec
to define a custom interval (in microseconds).
Changes
- Dropped Ruby 2.4 support.
Fixes
-
SAMPLE and SAMPLE_GROUP work consistently with seed in RSpec and Minitest.
-
Make sure EventProf is not affected by time freezing.
EventProf results now is not affected by Timecop.freeze
or similar.
See more in #181.