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

Installation Options

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

Install-Script -Name Assert-SameFile -RequiredVersion 1.1.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

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

Owners

Copyright

(c) Roman Kuzmin

Package Details

Author(s)

  • Roman Kuzmin

Tags

Test

Functions

Start-View Get-Choice New-Choice

Dependencies

This script has no dependencies.

FileList

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