Set test log output via environment variable

This commit is contained in:
Qstick 2017-10-29 21:40:10 -04:00
parent 2dddf8cb33
commit 899f12fd0c
4 changed files with 61 additions and 4 deletions

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 LIDARR_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"