Move xUnit tests for DNX xUnit runner
This commit is contained in:
parent
975b389e84
commit
94d3bba2a2
12 changed files with 26 additions and 12 deletions
26
src/Microsoft.PowerShell.Linux.UnitTests/project.json
Normal file
26
src/Microsoft.PowerShell.Linux.UnitTests/project.json
Normal file
|
@ -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
|
Loading…
Reference in a new issue