Skip to content

Releases: AlexB52/retest

No prod impact

11 Mar 23:16
Compare
Choose a tag to compare

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

Adding observer as an explicit dependency

11 Mar 23:15
Compare
Choose a tag to compare

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.

Update possible test list & minor maintenance improvements

26 Feb 19:47
Compare
Choose a tag to compare

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 guard/listen#572 has been fixed #195
  • We test a new way to read other processes output in feature test
  • We upgrade some github actions #197

Warnings, notifications and new version flag

05 Dec 20:53
Compare
Choose a tag to compare

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:

Improve test file selection

04 Sep 21:54
Compare
Choose a tag to compare

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

Update name pattern for test files

01 Oct 07:19
Compare
Choose a tag to compare

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' rubygems/rubygems#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)

Gracefully exit retest when pressing Ctrl+c

23 Jul 12:01
Compare
Choose a tag to compare

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.

Listen file changes with the polling method

23 Jul 11:25
Compare
Choose a tag to compare

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>'

Remove the --auto option and update help text

02 Jul 02:29
Compare
Choose a tag to compare

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:

Change starting sound and copy changes

26 Jun 07:09
Compare
Choose a tag to compare

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