mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
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:
1 parent
7e8070276f
commit
4d5d0a0034
4 files changed
+7
-7
No files matched your search
+4
-4
@@ -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 = ""
|
||||
|
||||
|
||||
Reference in new issue
Block a user