All Versions
39
Latest Version
Avg Release Cycle
43 days
Latest Release
83 days ago

Changelog History
Page 1

  • v0.12.2

    September 03, 2020
    • โœ… Execute Minitest before_all in the context of the current test object. ([@palkan][])
  • v0.12.1

    September 01, 2020
    • Minor improvements.
  • v0.12.0

    July 17, 2020

    ๐Ÿ”‹ 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.

  • v0.11.3

    February 11, 2020
    • 0๏ธโƒฃ Disable RSpec/AggregateFailures by default. ([@pirj][])
  • v0.11.2

    February 11, 2020
    • ๐Ÿ›  Fix RuboCop integration regressions. ([@palkan][])
  • v0.11.1

    February 10, 2020
    • โž• Add config/ to the gem contents. ([@palkan][])

    Fixes RuboCop integration regression from 0.11.0.

  • v0.11.0

    February 09, 2020
    • Fix let_it_be issue when initialized with an array/enumerable or an AR relation. ([@pirj][])

    • ๐Ÿ‘Œ Improve RSpec/AggregateExamples (formerly RSpec/AggregateFailures) cop. ([@pirj][])

  • v0.10.2

    January 07, 2020
    • ๐Ÿ›  Fix Ruby 2.7 deprecations. ([@lostie][])
  • v0.10.1

    October 17, 2019
    • ๐Ÿ›  Fix AnyFixture DSL when using with Rails 6.1+. ([@palkan][])

    • Fix loading let_it_be without ActiveRecord present. ([@palkan][])

    • ๐Ÿ›  Fix compatibility of before_all with isolator gem to handle correct usages of non-atomic interactions outside DB transactions. ([@Envek][])

    • โšก๏ธ Updates FactoryProf to show the amount of time taken per factory call. ([@tyleriguchi][])

  • v0.10.0

    August 19, 2019
    • ๐Ÿ’Ž Use RSpec example ID instead of full description for RubyProf/Stackprof report names. ([@palkan][])

    For more complex scenarios feel free to use your own report name generator:

      # for RubyProf
      TestProf::RubyProf::Listener.report_name_generator = ->(example) { "..." }
      # for Stackprof
      TestProf::StackProf::Listener.report_name_generator = ->(example) { "..." }
    
    • Support arrays in let_it_be with modifiers. ([@palkan][])
      # Now you can use modifiers with arrays
      let_it_be(:posts, reload: true) { create_pair(:post) }
    
    • Refactor let_it_be modifiers and allow adding custom modifiers. ([@palkan][])
      TestProf::LetItBe.config.register_modifier :reload do |record, val|
        # ignore when `reload: false`
        next record unless val
        # ignore non-ActiveRecord objects
        next record unless record.is_a?(::ActiveRecord::Base)
        record.reload
      end
    
    • โš  Print warning when ActiveRecordSharedConnection is used in the version of Rails ๐Ÿ‘Œ supporting lock_threads (5.1+). ([@palkan][])