Assert-SameFile
1.1.0
This script automates one typical test scenario, it compares the sample and
result files and performs copy and view operations if the sample is missing
(nor yet created) or the result is different (potentially valid but changed
so that the sample may have to be updated after review).
If the result is missing then the test fails. If the sample is missing then
a warnin
result files and performs copy and view operations if the sample is missing
(nor yet created) or the result is different (potentially valid but changed
so that the sample may have to be updated after review).
If the result is missing then the test fails. If the sample is missing then
a warnin
This script automates one typical test scenario, it compares the sample and
result files and performs copy and view operations if the sample is missing
(nor yet created) or the result is different (potentially valid but changed
so that the sample may have to be updated after review).
If the result is missing then the test fails. If the sample is missing then
a warning is written and the sample is created as a copy of the result. The
target directory is also created if it does not exist.
If files are different then the test either fails or, if View is specified,
writes a warning, invokes View, and then prompts to update the sample.
File comparison is done via MD5 hashes, it is fast and suitable for large
files. But there is a tiny chance that file differences are not detected.
Show more
result files and performs copy and view operations if the sample is missing
(nor yet created) or the result is different (potentially valid but changed
so that the sample may have to be updated after review).
If the result is missing then the test fails. If the sample is missing then
a warning is written and the sample is created as a copy of the result. The
target directory is also created if it does not exist.
If files are different then the test either fails or, if View is specified,
writes a warning, invokes View, and then prompts to update the sample.
File comparison is done via MD5 hashes, it is fast and suitable for large
files. But there is a tiny chance that file differences are not detected.
Installation Options
Owners
Copyright
(c) Roman Kuzmin
Package Details
Author(s)
- Roman Kuzmin
Tags
Functions
Start-View Get-Choice New-Choice
Dependencies
This script has no dependencies.
FileList
- Assert-SameFile.nuspec
- Assert-SameFile.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
1.2.1 | 30 | 9/28/2024 |
1.2.0 | 95 | 1/30/2024 |
1.1.0 (current version) | 99 | 1/17/2024 |
1.0.1 | 146 | 7/7/2022 |
1.0.0 | 422 | 5/18/2017 |