mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Move xUnit tests for DNX xUnit runner
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"version": "1.0.0.0",
|
||||
"description": "PowerShell On Linux xUnit Tests",
|
||||
"authors": [ "andschwa" ],
|
||||
"tags": [ "" ],
|
||||
"projectUrl": "",
|
||||
"licenseUrl": "",
|
||||
|
||||
"dependencies": {
|
||||
"System.Management.Automation": "",
|
||||
"Microsoft.PowerShell.Security": "",
|
||||
"Microsoft.PowerShell.Commands.Utility": "",
|
||||
"Microsoft.PowerShell.Commands.Management": "",
|
||||
"xunit": "2.1.0-*",
|
||||
"xunit.runner.dnx": "2.1.0-*"
|
||||
},
|
||||
|
||||
"commands": {
|
||||
"test": "xunit.runner.dnx"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"dnxcore50": {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
# xUnit tests for PowerShell
|
||||
# - results in xunit-tests.xml
|
||||
# - see https://xunit.github.io/
|
||||
TEST_FOLDER=$(MONAD)/src/xunit-tests
|
||||
TEST_SRCS=$(TEST_FOLDER)/test_*.cs
|
||||
TEST_TARGETS=$(addprefix $(PSLIB)/, System.Management.Automation.dll Microsoft.PowerShell.Commands.Management.dll)
|
||||
|
||||
$(PSLIB)/PowerShell.Linux.Test.dll: $(TEST_SRCS) $(TEST_TARGETS)
|
||||
$(CSC) $(CSCOPTS_LIB) -out:$@ $(addprefix -r:$(MONAD_EXT)/xunit/, xunit.core.dll xunit.assert.dll) $(addprefix -r:, $(TEST_TARGETS)) $(COREREF) $(TEST_SRCS)
|
||||
|
||||
test: $(PSLIB)/PowerShell.Linux.Test.dll
|
||||
$(POWERSHELL) $(PSLIB)/xunit.console.netcore.exe $< -xml $(MONAD)/xunit-tests.xml
|
||||
Reference in New Issue
Block a user