Rename Publish-EchoArgs to Publish-PSTestTools

* Rename Publish-EchoArgs to Publish-PSTestTools so it can be used
  for other tools as well in the future
* Publish EchoArgs to the bin directory instead of run to match
  convention
* Add source URL to EchoArgs header comment
* Use wildcard of "*.nuget.props" to match
  "test/csharp/csharp.nuget.props" in .gitignore
This commit is contained in:
Douglas Thrift committed 2016-09-13 13:37:42 -07:00
1 parent 7e8070276f
commit 4d5d0a0034
4 files changed
+7 -7

No files matched your search

+4 -4
View File
@@ -547,15 +547,16 @@ function Get-PesterTag {
$o
}
function Publish-EchoArgs {
function Publish-PSTestTools {
[CmdletBinding()]
param()
Find-Dotnet
# Publish EchoArgs so it can be run by tests
Push-Location "$PSScriptRoot/test/tools/EchoArgs"
try {
dotnet publish --output run
dotnet publish --output bin
} finally {
Pop-Location
}
@@ -577,8 +578,7 @@ 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
Publish-PSTestTools
# All concatenated commands/arguments are suffixed with the delimiter (space)
$Command = ""