Skip to content

Releases: avmnu-sng/rspec-tracer

v1.0.0

21 Oct 15:57
Compare
Choose a tag to compare

I am super excited about this release. It adds support for:

  • JRuby: Now, the RSpec tracer will help you save time for JRuby specs. 🎉
  • parallel_tests: With the help of parallel testing, you can significantly reduce the test execution time. 🚀

Note: After upgrading to v1.0.0, the RSpec tracer will not use any cache on the CI because the number of files changed from eight to eleven, so there will be no appropriate cache to use.

v0.9.3

03 Oct 11:22
Compare
Choose a tag to compare

With this release, RSpec Tracer generates reports ignoring duplicate examples, if any.

v0.9.2

30 Sep 10:09
Compare
Choose a tag to compare

This release gracefully handles the interrupts and keeps the cache clean.

v0.9.1

23 Sep 11:59
Compare
Choose a tag to compare

Fixed previously flaky and failed examples dependency detection. Sometimes, if only the spec files are updated and only the spec description then the example ID will change but there won't be dependency changes.

v.0.9.0

15 Sep 14:24
Compare
Choose a tag to compare

This release has some important enhancements:

  • RSpec Tracer now runs the SimpleCov.at_exit hook.
  • It does not generate any reports except for the coverage when RSpec filters out all the examples.
  • It warns to stop using the gem in case of incorrect analysis:
    ================================================================================
                    IMPORTANT NOTICE -- DO NOT USE RSPEC TRACER
    ================================================================================
        It would be best to make changes so that the RSpec tracer can uniquely
        identify all the examples, and then you can enable the RSpec tracer back.
    ================================================================================
    
    RSpec tracer could not uniquely identify the following 10 examples:
      - Example ID: eabd51a899db4f64d5839afe96004f03 (5 examples)
          * Calculator#add (spec/calculator_spec.rb:13)
          * Calculator#add (spec/calculator_spec.rb:13)
          * Calculator#add (spec/calculator_spec.rb:13)
          * Calculator#add (spec/calculator_spec.rb:13)
          * Calculator#add (spec/calculator_spec.rb:13)
      - Example ID: 72171b502c5a42b9aa133f165cf09ec2 (5 examples)
          * Calculator#sub performs subtraction (spec/calculator_spec.rb:24)
          * Calculator#sub performs subtraction (spec/calculator_spec.rb:24)
          * Calculator#sub performs subtraction (spec/calculator_spec.rb:24)
          * Calculator#sub performs subtraction (spec/calculator_spec.rb:24)
          * Calculator#sub performs subtraction (spec/calculator_spec.rb:24)
    

v0.8.0

13 Sep 04:28
Compare
Choose a tag to compare

Fixed cache finding in case of history rewrites (#33).

It now maintains the latest 25 refs for each branch in combination with the latest 25 ancestry refs to find the best cache. You must correctly set the GIT_BRANCH environment variable. Learn more on configuring CI caching.

Fetched the following ancestry refs for feature branch:
  * 470c7703836d96216fcc5853953b8ced3598517f (commit timestamp: 1631471386)
  * 31165fc203b4cbc6cbeb440c343f121e6be09ee9 (commit timestamp: 1631436436)
  * bc2eabc567dccbb3bb17a83585f77ae17e6ef031 (commit timestamp: 1631396595)
  * 47763b1ec9f765ac801d658654c9dd6063094c1a (commit timestamp: 1631396481)
  * d5da2df58decb554f2d869ea6c8e6a40ca89d47f (commit timestamp: 1631385874)
  * f6ff6689f5ff551e2f533f4e765a9c20a76faae8 (commit timestamp: 1631383924)
  * 805741242ad751e4a95ff667c3fb3637db54fe5e (commit timestamp: 1630605903)

Fetched the following branch refs for feature branch:
  * 470c7703836d96216fcc5853953b8ced3598517f (commit timestamp: 1631471386)
  * 63a313892338d60646856d5ea0dee63caf8043e2 (commit timestamp: 1631437893)

Fetched the following cache refs for feature branch:
  * 470c7703836d96216fcc5853953b8ced3598517f (commit timestamp: 1631471386)
  * 63a313892338d60646856d5ea0dee63caf8043e2 (commit timestamp: 1631437893)
  * 31165fc203b4cbc6cbeb440c343f121e6be09ee9 (commit timestamp: 1631436436)
  * bc2eabc567dccbb3bb17a83585f77ae17e6ef031 (commit timestamp: 1631396595)
  * 47763b1ec9f765ac801d658654c9dd6063094c1a (commit timestamp: 1631396481)
  * d5da2df58decb554f2d869ea6c8e6a40ca89d47f (commit timestamp: 1631385874)
  * f6ff6689f5ff551e2f533f4e765a9c20a76faae8 (commit timestamp: 1631383924)
  * 805741242ad751e4a95ff667c3fb3637db54fe5e (commit timestamp: 1630605903)

Breaking Changes

Since the rake tasks to download and upload the cache files to S3 need to know the correct configured directories, the config options cache_dir, coverage_dir, and report_dir are now available as environment variables only.

v0.7.0

10 Sep 17:40
Compare
Choose a tag to compare

Add missing spec files for the gem.

v0.6.2

07 Sep 10:08
Compare
Choose a tag to compare

Improve dependency and coverage processing time

v0.6.1

06 Sep 09:36
Compare
Choose a tag to compare
  • Fix elapsed time formatting.
  • Provide control on the verbosity of the output.

v0.6.0

05 Sep 18:16
Compare
Choose a tag to compare
  • Improved dependency change detection (#18)
  • Flaky tests detection (#19)
    RSpec tracer is running 4 examples (actual: 10, skipped: 6) (took 0.00033 seconds)
    
    Course
      enrolled
        without student
          does not enroll (Failed previously) (FAILED - 1)
    
    Student
      #email=
        without email
          does not set email (Pending previously) (PENDING: Temporarily skipped with xcontext)
      #mobile=
        without mobile
          does not set mobile (Flaky example)
        with mobile
          sets mobile (Flaky example)
    
  • Exclude vendor files from analysis (#21)
  • Report elapsed time at various stages (#23)
    Started RSpec tracer
    RSpec tracer loaded cache from /tmp/rspec_tracer_cache/63df6c782675a201fbef23140bd868e2 (took 0.00186 seconds)
    RSpec tracer processed cache (took 0.00148 seconds)
    RSpec tracer is running 4 examples (actual: 10, skipped: 6) (took 0.00039 seconds)
    .
    .
    .
    RSpec tracer is generating reports
    RSpec tracer processed dependency (took 0.00080 seconds)
    RSpec tracer loaded cached examples coverage (took 0.00028 seconds)
    RSpec tracer processed coverage (took 0.00058 seconds)
    RSpec tracer generated flaky, failed, and pending examples report (took 0.00002 seconds)
    RSpec tracer generated all files report (took 0.00001 seconds)
    RSpec tracer generated all examples report (took 0.00001 seconds)
    RSpec tracer generated dependency report (took 0.00003 seconds)
    RSpec tracer generated examples coverage report (took 0.00001 seconds)
    RSpec tracer generated reverse dependency report (took 0.00006 seconds)
    RSpec tracer reports written to /tmp/rspec_tracer_cache/63df6c782675a201fbef23140bd868e2 (took 0.00197 seconds)
    RSpecTracer generated HTML report to /tmp/rspec_tracer_report/index.html (took 0.01524 seconds)
    

Note

The first run on this version will not use any cache on the CI because the number of files changed from eight to nine, so there will be no appropriate cache to use.