minitest-snapshots

Minitest plugin for asserting that strings are the same as a saved snapshot, jest style

MIT License

Downloads
69.7K
Stars
36

Bot releases are visible (Hide)

minitest-snapshots - 1.1.1 Latest Release

Published by github-actions[bot] 4 months ago

This is a gem housekeeping release. No user-facing changes.

🏠 Housekeeping

  • Update rubocop gems (#52, #53, #54, #56, #57, #58) @dependabot

Full Changelog: https://github.com/mattbrictson/minitest-snapshots/compare/v1.1.0...v1.1.1

minitest-snapshots - 1.1.0

Published by github-actions[bot] 8 months ago

✨ New Features

  • Enable --lock-snapshots by default in CI (#48) @mattbrictson

📚 Documentation

  • Show example of how to pass -u option to rake test (#46) @mattbrictson

🏠 Housekeeping

  • Bump release-drafter/release-drafter from 5 to 6 (#49) @dependabot
  • Reorganize test files into more typical Minitest layout (#47) @mattbrictson
  • Update rubocop gems (#43, #44, #45, #50) @dependabot

Full Changelog: https://github.com/mattbrictson/minitest-snapshots/compare/v1.0.2...v1.1.0

minitest-snapshots - 1.0.2

Published by github-actions[bot] 10 months ago

This is a gem housekeeping release. No user-facing changes.

🏠 Housekeeping

  • Add Ruby 3.3 to CI (#39) @mattbrictson
  • Update rubocop gems (#36, #37, #38, #40, #41, #42) @dependabot

Full Changelog: https://github.com/mattbrictson/minitest-snapshots/compare/v1.0.1...v1.0.2

minitest-snapshots - 1.0.1

Published by github-actions[bot] about 1 year ago

📚 Documentation

  • Fix broken README badge link (#28) @mattbrictson
  • Add downloads badge to README and switch to shields.io (#27) @mattbrictson
  • Fix invalid Ruby in README example (#26) @mattbrictson
  • Add project history to the README (#20) @mattbrictson

🏠 Housekeeping

  • Bump actions/checkout from 3 to 4 (#32) @dependabot
  • Set up Kodiak to auto-merge Dependabot PRs (#24) @mattbrictson
  • Update rubocop gems (#23, #29, #30, #31, #33, #34, #35) @dependabot

Full Changelog: https://github.com/mattbrictson/minitest-snapshots/compare/v1.0.0...v1.0.1

minitest-snapshots - 1.0.0

Published by github-actions[bot] over 1 year ago

Please note that minitest-snapshots now requires Ruby 2.7 or later. Previous releases of minitest-snapshots could be used with older Ruby versions, but were only officially tested on Ruby 2.7. With the release of minitest-snapshots 1.0.0, Ruby 2.7+ is now a hard requirement.

The headline feature for this release is that any value can now be saved as a snapshot, not just strings. Snapshots are serialized via YAML.

The 1.0.0 release also reflects a change in ownership for the minitest-snapshots GitHub repository. The new location is https://github.com/mattbrictson/minitest-snapshots. The project is actively maintained and pull requests are welcome!

⚠️ Breaking Changes

  • Require Ruby 2.7 or newer (#16) @mattbrictson

✨ New Features

  • Add canonical YAML serializer so that type of value can be used in snapshots (#6) @chocolateboy
  • Sanitize snapshot filenames (#6) @chocolateboy
  • Improve test directory detection (#6) @chocolateboy
  • Remove the implicit Rails (Active Support) dependency (#6) @chocolateboy

🐛 Bug Fixes

  • Fix NoMethodError when used outside of Rails/Bundler (#11) @mattbrictson

📚 Documentation

  • Clarify how to update snapshots in a Rails app (#22) @mattbrictson

🏠 Housekeeping

  • Add rake bump task to simplify gem maintenance (#21) @mattbrictson
  • Add rubocop with not-too-strict config (#19) @mattbrictson
  • Add Gemfile.lock to gitignore (#18) @mattbrictson
  • Maintain release notes with GitHub Actions (#17) @mattbrictson
  • Tidy up gemspec and add proper homepage, etc. project links (#15) @mattbrictson
  • Set up Dependabot (#14) @mattbrictson
  • Simplify README and switch to new GitHub repo URL (#13) @mattbrictson
  • Add a simple test suite, with GitHub Actions workflow (#12) @mattbrictson
  • Update bundler requirement from ~> 1.17 to ~> 2.1 (#2) @dependabot-preview
  • Update rake requirement from ~> 10.0 to ~> 13.0 (#1) @dependabot-preview

Full Changelog: https://github.com/mattbrictson/minitest-snapshots/compare/v0.3.0...v1.0.0

minitest-snapshots - 0.3.0

Published by mattbrictson over 1 year ago

This release was originally published to rubygems on Sept 19, 2019.

  • Namespace snapshots by test class name (commit)

Full Changelog: https://github.com/mattbrictson/minitest-snapshots/compare/v0.2.0...v0.3.0

minitest-snapshots - 0.2.0

Published by mattbrictson over 1 year ago

This release was originally published to rubygems on Sept 11, 2019.

  • Add require "minitest" to fix plugin loading issues

Changes: https://my.diffend.io/gems/minitest-snapshots/0.1.0/0.2.0

minitest-snapshots - 0.1.0

Published by mattbrictson over 1 year ago

Initial release!

This release was originally published to rubygems on Sept 11, 2019.

Full Changelog: https://github.com/mattbrictson/minitest-snapshots/commits/v0.1.0