Scripts for running unit and feature tests on Linux/OSX

This commit is contained in:
Chris Cheetham 2018-08-07 18:46:55 -04:00
Родитель aeb8c60338
Коммит b7e209690c
3 изменённых файлов: 26 добавлений и 0 удалений

Просмотреть файл

@ -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}"

12
scripts/feature-test.sh Executable file
Просмотреть файл

@ -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

12
scripts/unit-test.sh Executable file
Просмотреть файл

@ -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