Scripts for running unit and feature tests on Linux/OSX
This commit is contained in:
Родитель
aeb8c60338
Коммит
b7e209690c
|
@ -11,6 +11,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
|||
CONTRIBUTING.md = CONTRIBUTING.md
|
||||
LICENSE = LICENSE
|
||||
README.md = README.md
|
||||
scripts\unit-test.sh = scripts\unit-test.sh
|
||||
scripts\feature-test.sh = scripts\feature-test.sh
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{D86CBDAE-DF37-4BDF-8F81-C79FB11DEC0D}"
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
basedir=$(dirname $0)/..
|
||||
featureTestDir=$basedir/feature
|
||||
rc=0
|
||||
|
||||
for project in $featureTestDir/*
|
||||
do
|
||||
dotnet test $project
|
||||
[[ $? != 0 ]] && rc=1
|
||||
done
|
||||
exit $rc
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
basedir=$(dirname $0)/..
|
||||
unitTestDir=$basedir/test
|
||||
rc=0
|
||||
|
||||
for project in $unitTestDir/*
|
||||
do
|
||||
dotnet test $project
|
||||
[[ $? != 0 ]] && rc=1
|
||||
done
|
||||
exit $rc
|
Загрузка…
Ссылка в новой задаче