forked from picklesdoc/pickles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testOutput.ps1
47 lines (42 loc) · 1.78 KB
/
testOutput.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
$version = $args[0]
$formats = @("Html", "Dhtml", "Word", "Excel", "JSON", "Cucumber")
$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
Try
{
foreach ($format in $formats)
{
# Setup variables
$FeatureDirectory = $PSScriptRoot + "\src\Pickles\Examples"
$OutputDirectory = $PSScriptRoot + "\Output\" + $format
$DocumentationFormat = $format
$SystemUnderTestName = "Pickles"
$SystemUnderTestVersion = $version
$TestResultsFormat = ""
$TestResultsFile = ""
# Import the Pickles-comandlet
$pathToModule = ".\deploy\nuget\packages\pickles." + $version + "\tools\PicklesDoc.Pickles.PowerShell.dll"
Import-Module $pathToModule
# Call pickles
Pickle-Features -FeatureDirectory $FeatureDirectory `
-OutputDirectory $OutputDirectory `
-DocumentationFormat $DocumentationFormat `
-SystemUnderTestName $SystemUnderTestName `
-SystemUnderTestVersion $SystemUnderTestVersion `
-TestResultsFormat $TestResultsFormat `
-TestResultsFile $TestResultsFile
# Call pickles with experimental features
Pickle-Features -FeatureDirectory $FeatureDirectory `
-OutputDirectory $OutputDirectory `
-DocumentationFormat $DocumentationFormat `
-SystemUnderTestName $SystemUnderTestName `
-SystemUnderTestVersion $SystemUnderTestVersion `
-TestResultsFormat $TestResultsFormat `
-TestResultsFile $TestResultsFile `
-IncludeExperimentalFeatures
}
exit 0
}
Catch
{
exit 1
}