Move and "publish" EchoArgs for the tests

* Move EchoArgs from test/EchoArgs to test/tools/EchoArgs
* Use "dotnet publish" for building EchoArgs in build.psm1 so the test
  can call it directly
This commit is contained in:
Douglas Thrift committed 2016-09-13 13:37:42 -07:00
1 parent 7816516c24
commit 7e8070276f
5 files changed
+20 -16

No files matched your search

+16
View File
@@ -547,6 +547,20 @@ function Get-PesterTag {
$o
}
function Publish-EchoArgs {
[CmdletBinding()]
param()
Find-Dotnet
Push-Location "$PSScriptRoot/test/tools/EchoArgs"
try {
dotnet publish --output run
} finally {
Pop-Location
}
}
function Start-PSPester {
[CmdletBinding()]
param(
@@ -563,6 +577,8 @@ function Start-PSPester {
)
Write-Verbose "Running pester tests at '$path' with tag '$($Tag -join ''', ''')' and ExcludeTag '$($ExcludeTag -join ''', ''')'" -Verbose
# Publish EchoArgs so it can be run by tests
Publish-EchoArgs
# All concatenated commands/arguments are suffixed with the delimiter (space)
$Command = ""