testing feature specifications

This commit is contained in:
KevinMarquette
2017-04-12 19:46:56 -07:00
parent 8901c3b9ed
commit de3e06bee6
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
Given 'We have functions to publish' {
"$psscriptroot\..\chronometer\public\*.ps1" | Should Exist
}
And 'We have a module' {
"$psscriptroot\..\chronometer\chronometer.psd1" | Should Exist
"$psscriptroot\..\chronometer\chronometer.psm1" | Should Exist
}
When 'The user searches for our module' {
Find-Module chronometer | Should Not BeNullOrEmpty
}
Then 'They can install the module' {
{Install-Module chronometer -Scope CurrentUser -WhatIf *>&1} | Should Not Throw
}

View File

@@ -0,0 +1,8 @@
Feature: We need distribute our module to the public
It should be published someplace that is easy to find
Scenario: A user needs to be able to find our module in the PSGallery
Given We have functions to publish
And We have a module
When The user searches for our module
Then They can install the module