forked from picklesdoc/pickles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testOutput.ps1
28 lines (25 loc) · 1.09 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
$version = $args[0]
$formats = @("Html", "Dhtml", "Word", "Excel", "Dita", "JSON")
$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
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\pickles-" + $version + "\powershell\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
}