- Added the
IndexedNamer
. This class allows you to create a Namer that includes an index in the file name. It is useful when you need to multiple verify calls in a single test.- Please see the Indexed Namer Example
- Updated URLs in LICENSE to use HTTPS.
- Updated the license badge URL in README.md to use HTTPS.
- Removed the
makeNamer
factory method inlib/src/approvals.dart
and replaced it withcopyWith
for creating Namer instances. - Added a
_normalizeContent
method inlib/src/comparator/file_comparator.dart
to standardize line endings and trim whitespace for file comparisons.
- Removed the Pub popularity badge from README.md.
- Added the
--generate-notes
option to thegh release create
command in.github/workflows/publish.yml
. - Updated
example/main.dart
to use a Namer with a subfolder and a CommandLineReporter inverifyAll
.
- Upgraded all dependencies to actuals.
- Updated README.md file: fix links.
- Added CLI additional options:
Usage:dart run approval_tests:review [arguments]
- Arguments:
--help
Print this usage information.--list
Print a list of project .received.txt files.<index>
Review an .received.txt file indexed by --list.<path/to/.received.txt>
Review an .received.txt file.
- Arguments:
- Updated README.md file.
- Breaking release:
- Added new reporter:
GitReporter
. It allows you to usegit
to view the differences between the received and approved files. - Added support to approve files using CLI. Now you can approve files using the command line:
dart run approval_tests:review
- Added support to use ApprovalTests during widget tests.
- Added header to generated files. For resolved issues you can add this to approved files:
'# This file was generated by approval_tests. Please do not edit.\n' - Some minor changes and code improvements. Thanks to Richard Coutts
- Added new reporter:
- Initial major release.
- Updated documentation.
- Updated dependencies.
- Updated
README.md
file. - Updated
TODO.md
file. - Rewrited comparators. Now it is only FileComparator.
- Rewrited Scrubbers: regex scrubber, date scrubber.
- Now, first run automatically create approved snapshot. You can approve another snapshot by setting
approveResult
totrue
and using Diff Tool. - Completely rewritten
CommandLineReporter
. There were changes with the comparison method, as well as highlighting by color the places where there are differences. Green - approved. White text on red background - Differences in received file. - Internal updates such as:
- Adding android studio installation via github actions to test Diff Reporter on different devices.
- Full code test coverage after significant changes.
- Changes to getting file name and path depending on platform.
- Updated dependencies. Removed
dcli
package. - Issue #3 was fixed.
- Minor changes:
IDEComparator
now gets the currentStackTrace
if an error occurs.
- Updated dependencies and actions versions.
- Updated Logger's output: now it is more informative.
- Updated
CONTRIBUTING.md
file: added Arlo's Commit Notation.
- Added setup visual studio code action to the
build_and_test
workflow for testIDEComparator
.
- Completed coverage of the project with tests. Now the project has 100% coverage.
- Autopublish to
pub.dev
if the version inpubspec.yaml
has been changed by auto adding a new tag to the repositories. - Codecov added to
github
actions. Codecov badge, graph was added toREADME.md
. - Added
mdsnippets
togithub
actions. And example snippets added toREADME.md
. - Added
ApprovalTests.Dart.StarterProject
. You can find it in theREADME.md
file.
- Fix with default file path if package from
pub.dev
. - Gilded rose moved to starter project.
- Code formatted.
- Test publish action with new version:
v0.3.8
.
- Updated
pubspec.yaml
file: changed homepage.
- The repository has been moved to Approvals.
- Fixed bug with checking of strings received from
txt
file. - Added
Github
Actions. - Added
dependabot
. - Updated
README.md
file. - Updated
TODO.md
file.
- Updated
README.md
file.
- Default
lints
replaced bysizzle_lints
. - Updated
analysis_options
file. - Updated
README.md
file.
- Updated
README.md
file.
- Approval was refactored.
- Added tests.
- Code formatted.
deleteReceivedFile
field was added to theApprovalTests
class. If it is set totrue
, the received file will be deleted after test. By default, it is set tofalse
.logErrors
field was added to theApprovalTests
class. If it is set totrue
, the errors will be logged. By default, it is set totrue
.logResults
field was added to theApprovalTests
class. If it is set totrue
, the success results will be logged. By default, it is set totrue
.
- Fix:
approval_dart
changed toapproval_tests
. - Code formatted.
- I rewrote the main functions of the class. Now you can use several comparison options.
- Added methods for comparing
JSON
strings. - Added methods for array comparison.
- Improved documentation.
- Added more examples: each method has its own small example.
- Added
verifyAll
method to verify array of items (or use array as inputs). - Added
verifyAllCombinationsAsJson
method to verify all combinations of items asJSON
. - Updated
README.md
file.
- Updated
README.md
file.
- Updated
README.md
file: added examples, more info.
- Comparator completed, some refactoring. Updated
README.md
file.
- Some updates with
README.md
file.
- First working version, need to expand functionality and add more flexibilty. Also need to add more tests.
- Initial version.