Ruby Tests Profiling Toolbox v0.12.0 Release Notes

Release Date: 2020-07-17 // almost 4 years ago
  • ๐Ÿ”‹ 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 defaultconfig.default_modifiers[:refind] = trueend

    • Added ability to configure let_it_be modifiers via metadata.

      context "with let_it_be reload", let_it_be_modifiers: {reload: true} do# examplesend

    • 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.