Retest Versions Save

A simple CLI to watch file changes and run their matching ruby specs. Works on any ruby projects with no setup.

v1.13.2

2 months ago

This release fixes on our CI pipeline and the bundler version set incorrectly in the previous release v1.13.1

v1.13.1

2 months ago

Ruby 3.4 will require the observer gem to be set as an explicit dependency in a Gemfile and will no longer be included in the language: https://bugs.ruby-lang.org/issues/20187

This release adds observer gem as an explicit Retest dependency.

v1.13.0

2 months ago

In this release, apparent changes are on the list of possible options:

  1. We added a none option when no test file matches the file changed #49
  2. We added a > at the end to improve user feedback #192
  3. We require Listen version v3.9.0 as a dependency #195

The list looks like this now

We found few tests matching: app/models/valuation/holdings.rb

[0] - test/models/taxation/holdings_test.rb
[1] - test/models/schedule/holdings_test.rb
[2] - test/models/holdings_test.rb
[3] - test/models/performance/holdings_test.rb
[4] - test/lib/csv_report/holdings_test.rb
[5] - none

Which file do you want to use?
Enter the file number now:
> 

In minor improvements with no impact

  • We remove some deprecation warnings in our test suite
  • We remove a monkey patch after https://github.com/guard/listen/issues/572 has been fixed #195
  • We test a new way to read other processes output in feature test
  • We upgrade some github actions #197

v1.12.0

5 months ago

This release adds a few changes

  • When using --notify, retest is now making a sound after asking to select a file when in doubt
  • We're disabling the symlink warnings that happen on some repositories when files are already watched. Happens regularly with node_modules. These warnings have been moved to the Listen.logger dependency and available with LISTEN_GEM_DEBUGGING=warn
  • We're introducing a new option --verbose, -v` to see which version of retest we're currently using

These issues are fixed:

  • #176
  • #177
  • #181

v1.11.0

8 months ago

The release improves the identification of test files with test and spec prefix or suffix. The release also updates some dependencies suggested by Dependabot.

Main change:

  • #138 - Retest defaults to test_*.rb pattern even when *_test.rb file exists

v1.10.0

1 year ago

Since December 2021, Bundler gem now defaults to test_filename.rb instead of filename_test.rb in release 2.3.0

bundle gem generated MiniTest file and class now start with 'test' https://github.com/rubygems/rubygems/pull/3893

This release addresses this change by updating what's considered a test file when matching specs.

A change in filename.rb will now consider these files as possible matches:

  • filename_test.rb
  • filename_spec.rb
  • test_filename.rb
  • spec_filename.rb (because why not)

v1.9.0

1 year ago

Someone suggested to gracefully exit Retest when pressing ctrl + c instead of showing the ruby trace: #124

This release enables the software to print "Goodbye" after exiting retest.

v1.8.0

1 year ago

Some filesystems won't work without polling (VM/Vagrant Shared folders, NFS, Samba, sshfs, etc.). https://github.com/guard/listen#issues--limitations

In this situation we introduce a new flag --polling to force the polling method on the Listen gem when using retest

Examples:

$ retest --polling
$ retest --polling --all 
$ retest --polling 'bundle exec rubocop <changed>'

v1.7.0

1 year ago

The --auto option is run by default, there is no need to make it explicit.

  • We remove the --auto option
  • We also update the help text when running retest -h
# Old behaviour
    $ retest --auto
    $ retest --auto --all 

# New behaviour
    $ retest 
    $ retest --all

This release fixes:

  • #116
  • #117

v1.6.2

1 year ago

We play another sound when restest starts. Using the same sound of a test passing and retest starting is confusing. The sounds should be distinct otherwise it feels like Retest ran the suite.

A minor change updating a copy to make things a bit clearer.

This release includes: #108 #112

Fixing: #82