Releases: martinmoldrup/snappylapy
Releases · martinmoldrup/snappylapy
0.9.0
- 🆕 Added class method for handling objects in LoadSnapshot fixture
- 🆕 Added support for multiple snapshots loaded in the same LoadSnapshot fixture, if multiple functions are added to the depends.
- 🐞 Fix snappylapy logo not showing correctly in documentation
- 🐞 Fix issue when snapshots is loaded from another folder and the path is added to the depending file name
What's Changed
- Add advanced snapshot testing examples and custom directory loading support by @martinmoldrup in #12
- Update README, add object loading method, and version bump to 0.9.0 by @martinmoldrup in #13
- Support loading multiple dependencies in LoadSnapshot fixture by @martinmoldrup in #14
Full Changelog: 0.8.0...0.9.0
0.8.0
- 🆕 Used integration with toolit to make snappylapy commands available for AI coding assistants
- 🆕 Add a
@configure_snappylapy()decorator as an alternative for using @pytest.mark.snappylapy for improved documentation support, type checking and IDE integration. - 🔄 Improve documentation and examples for using snappylapy for advanced snapshot testing scenarios.
- 🗑️ Deprecated support for Python 3.9. Snappylapy now requires Python 3.10 or higher. Add Python 3.14 to the test matrix.
What's Changed
- Integrate toolit for AI coding assistant support and enhance documentation by @martinmoldrup in #10
- Update project to require Python 3.10 by @martinmoldrup in #11
Full Changelog: 0.7.0...0.8.0
0.7.0
- 🆕 Added csv serializer for pandas dataframes for making the deserialization work on windows and make a more suitable and human readable format.
What's Changed
- Refactor serialization to use CSV for pandas DataFrames by @martinmoldrup in #9
Full Changelog: 0.6.1...0.7.0
0.6.1
- 🐞 Improve the handling of comparing large snapshots with test results. Snappylapy should be working well on large data structures. Disable the pytest assertion rewrite for large comparisons.
What's Changed
- Enhance snapshot testing for large data structured, that had very slow performance in difflib by @martinmoldrup in #7
Full Changelog: 0.6.0...0.6.1
0.6.0
- 🆕 Added:
snappylapy diffCLI command for comparing changed test results with the snapshot. Currently it only supports VScode for showing diffs. - 🆕 Support generic types. Now custom objects can be used. It can serialize and deserialize any that jsonpickle supports.
- 🐞 Fix issue where files in test_results is being deleted when test discovery is ran
- 🐞 Ensure cross-platform consistancy on how snapshot files are serialized and deserialized
- 🐞 Fixed issue where pandas dataframe types did not resolve correctly at runtime to the dataframe expect class in older python versions
What's Changed
- Fix CI pipeline and update package version by @martinmoldrup in #5
- Add support for snapshot testing of custom objects and enhance serialization by @martinmoldrup in #6
Full Changelog: 0.5.1...0.6.0
0.5.1
- 🐞 Fix missing submodule
expectation_classes, missing in build version of the package.
Full Changelog: 0.5.0...0.5.1
0.5.0
- 🆕 Add new cli command for easy update of snapshots without the need to rerun tests. Added:
snappylapy updateCLI command that will update the snapshots that have changed or create new snapshots.
What's Changed
- Prepare for release of version 0.5.0 and update documentation by @martinmoldrup in #4
Full Changelog: https://github.com/martinmoldrup/snappylapy/commits/0.5.0
0.4.0
- 🆕 Add support for pandas DataFrame assertions (pandas is an optional dependency, and snappylapy can be used without it)
- 🆕 Add new simpler and more intuitive Expect API. We can use expect() calls and an overload will select the appropriate Expect class based on the type of the input. This is in contrast with expect.dict(), expect.list(), etc. This is not a breaking change, since the old API is still supported.
What's Changed
- Add DataFrame support and configuration updates by @martinmoldrup in #1
- Add overloaded call method for Expect class and pandas support by @martinmoldrup in #2
New Contributors
- @martinmoldrup made their first contribution in #1
Full Changelog: 0.3.2...0.4.0
0.3.2
- Bug fix of test_directory fixture, not loading correctly depending fixture
Full Changelog: 0.3.1...0.3.2
0.3.1
- 🐞 Fix load_snapshot fixture not loading correctly
- 🐞 Fix wrong naming for cases where custom name is falsy
- Change the ident property of json to make it more human readable
Full Changelog: 0.3.0...0.3.1