Assert-SameFile

1.0.1

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

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Assert-SameFile

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Author(s)

Roman Kuzmin

Copyright

(c) Roman Kuzmin

Owners

Tags

Test

Functions

Get-Choice New-Choice

Dependencies

This script has no dependencies.

Version History

Version Downloads Last updated
1.0.1 (current version) 10 7/7/2022
1.0.0 383 5/18/2017