Releases: avmnu-sng/rspec-tracer
v1.0.0
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
v0.9.2
v0.9.1
v.0.9.0
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
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
v0.6.2
v0.6.1
v0.6.0
- 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.