1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-18 21:35:27 -04:00

Set test log output via environment variable

This commit is contained in:
Mark McDowall
2017-09-08 12:28:42 -07:00
parent 8bc55c5305
commit ea7d7d0a14
4 changed files with 61 additions and 4 deletions
+7 -1
View File
@@ -4,14 +4,20 @@ WHERE="cat != ManualTest"
TEST_DIR="."
TEST_PATTERN="*Test.dll"
ASSEMBLIES=""
TEST_LOG_FILE="TestLog.txt"
if [ -d "$TEST_DIR/_tests" ]; then
TEST_DIR="$TEST_DIR/_tests"
fi
rm -f "$TEST_LOG_FILE"
# Uncomment to log test output to a file instead of the console
# export SONARR_TESTS_LOG_OUTPUT="File"
NUNIT="$TEST_DIR/NUnit.ConsoleRunner.3.2.0/tools/nunit3-console.exe"
NUNIT_COMMAND="$NUNIT"
NUNIT_PARAMS="--teamcity"
NUNIT_PARAMS="--teamcity --workers=1"
if [ "$PLATFORM" = "Windows" ]; then
WHERE="$WHERE && cat != LINUX"