Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

License

NotificationsYou must be signed in to change notification settings

PowerShell/Operation-Validation-Framework

Repository files navigation

Azure PipelinesAppVeyorPS GalleryLicense
Azure Pipelines Build StatusAppVeyor Build StatusPowerShell GalleryLicense

A set of tools for executing validation of the operation of a system.It provides a way to organize and execute Pester tests which are writtento validate operation (rather than limited feature tests)

Modules which include a Diagnostics directory are inspected forPester tests in either the "Simple" or "Comprehensive" directories.If files are found in those directories, they will be inspected to determinewhether they are Pester tests. If Pester tests are found, thetest names in those files will be returned.

The module structure required is as follows:

  • ModuleBase\
    • Diagnostics\
      • Simplesimple tests are held in this location (e.g., ping, serviceendpoint checks)
      • Comprehensivecomprehensive scenario tests should be placed here

It supplies two cmdlets:

PS# get-help *operationvalidationName                              Category  Synopsis----                              --------  --------Get-OperationValidation           Function  Retrieve the operational tests from modulesInvoke-OperationValidation        Function  Invoke the operational tests from modules

Examples

    PS> Get-OperationValidation -ModuleName C:\temp\modules\AddNumbers    Type:         Simple        File:     addnum.tests.ps1        FilePath: C:\temp\modules\AddNumbers\Diagnostics\Simple\addnum.tests.ps1        Name:            Add-Em            Subtract em            Add-Numbers        Type:         Comprehensive        File:     Comp.Adding.Tests.ps1        FilePath: C:\temp\modules\AddNumbers\Diagnostics\Comprehensive\Comp.Adding.Tests.ps1        Name:            Comprehensive Adding Tests            Comprehensive Subtracting Tests            Comprehensive Examples    PS> Invoke-OperationValidation -IncludePesterOutput    Describing Simple Test Suite     [+] first Operational test 20ms     [+] second Operational test 19ms     [+] third Operational test 9ms    Tests completed in 48ms    Passed: 3 Failed: 0 Skipped: 0 Pending: 0    Describing Scenario targeted tests       Context The RemoteAccess service        [+] The service is running 37ms       Context The Firewall Rules        [+] A rule for TCP port 3389 is enabled 1.19s        [+] A rule for UDP port 3389 is enabled 11ms    Tests completed in 1.24s    Passed: 3 Failed: 0 Skipped: 0 Pending: 0       Module: OperationValidation    Result  Name    ------- --------    Passed  Simple Test Suite::first Operational test    Passed  Simple Test Suite::second Operational test    Passed  Simple Test Suite::third Operational test    Passed  Scenario targeted tests:The RemoteAccess service:The service is running    Passed  Scenario targeted tests:The Firewall Rules:A rule for TCP port 3389 is enabled    Passed  Scenario targeted tests:The Firewall Rules:A rule for UDP port 3389 is enabled

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors7


[8]ページ先頭

©2009-2025 Movatter.jp