From f0b83e6d6fb0b7d9f2f3c34cc75317d5dee2dd77 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 16 Apr 2021 13:15:24 +0200 Subject: [PATCH 01/13] Fix compile error --- src/testrunner/Sources/TestRunner/main.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testrunner/Sources/TestRunner/main.swift b/src/testrunner/Sources/TestRunner/main.swift index e2f615f..a46e9b9 100644 --- a/src/testrunner/Sources/TestRunner/main.swift +++ b/src/testrunner/Sources/TestRunner/main.swift @@ -18,7 +18,7 @@ struct RunnerOptions: ParsableArguments { var buildDirectory: String @Flag() - var showSkipped: Bool + var showSkipped: Bool = true } // macOS test options From 6eb90b1690ff68bd4171481101eb1d050d309c69 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 16 Apr 2021 13:21:03 +0200 Subject: [PATCH 02/13] Use updated bin scripts --- bin/run-all-in-docker.sh | 11 -------- bin/run-all.sh | 22 --------------- bin/run-in-docker.sh | 46 ++++++++++++++++-------------- bin/run-tests-in-docker.sh | 27 ++++++++++++++++++ bin/run-tests.sh | 42 +++++++++++++++++++++++++++ bin/run.sh | 58 ++++++++++++++++++-------------------- 6 files changed, 121 insertions(+), 85 deletions(-) delete mode 100755 bin/run-all-in-docker.sh delete mode 100755 bin/run-all.sh create mode 100755 bin/run-tests-in-docker.sh create mode 100755 bin/run-tests.sh diff --git a/bin/run-all-in-docker.sh b/bin/run-all-in-docker.sh deleted file mode 100755 index b1f5bbe..0000000 --- a/bin/run-all-in-docker.sh +++ /dev/null @@ -1,11 +0,0 @@ -#! /bin/bash -e - -SOLUTION_DIR="${1:-dockerTest}" - -# build docker image -docker build --rm --no-cache -t swift-test-runner . - -docker run \ - --mount type=bind,src=$PWD/$SOLUTION_DIR/,dst=/solution \ - --mount type=bind,src=$PWD/$SOLUTION_DIR/output/,dst=/output \ - --entrypoint './bin/run-all.sh' swift-test-runner diff --git a/bin/run-all.sh b/bin/run-all.sh deleted file mode 100755 index 80e238a..0000000 --- a/bin/run-all.sh +++ /dev/null @@ -1,22 +0,0 @@ -#! /bin/sh -set -e - -test_root="${1:-/solution}" -output_dir="${2:-/output/}" - -# echo "Output:" -# echo "${output_dir}" -# echo "Test root:" -# echo "${test_root}" - -for testdir in "${test_root}"/*; do - testname="$(basename $testdir)" - # echo "testdir" - # echo "${testdir}" - # echo "testname" - # echo "${testname}" - # echo "-----------" - if [ "$testname" != output ] && [ -f "${testdir}/results.json" ]; then - bin/run.sh "$testname" "$test_root" "$output_dir" - fi -done diff --git a/bin/run-in-docker.sh b/bin/run-in-docker.sh index 99775cb..564d452 100755 --- a/bin/run-in-docker.sh +++ b/bin/run-in-docker.sh @@ -1,39 +1,43 @@ -#!/usr/bin/env bash -set -e +#!/usr/bin/env sh # Synopsis: -# Test runner for run.sh in a docker container -# Takes the same arguments as run.sh (EXCEPT THAT SOLUTION AND OUTPUT PATH ARE RELATIVE) -# Builds the Dockerfile -# Runs the docker image passing along the initial arguments +# Run the test runner on a solution using the test runner Docker image. +# The test runner Docker image is built automatically. # Arguments: # $1: exercise slug -# $2: **RELATIVE** path to solution folder (with trailing slash) -# $3: **RELATIVE** path to output directory (with trailing slash) +# $2: absolute path to solution folder +# $3: absolute path to output directory # Output: # Writes the test results to a results.json file in the passed-in output directory. -# The test results are formatted according to the specifications at https://github.com/exercism/automated-tests/blob/master/docs/interface.md +# The test results are formatted according to the specifications at https://github.com/exercism/docs/blob/main/building/tooling/test-runners/interface.md # Example: -# ./run-in-docker.sh two-fer ./relative/path/to/two-fer/solution/folder/ ./relative/path/to/output/directory/ +# ./bin/run-in-docker.sh two-fer /absolute/path/to/two-fer/solution/folder/ /absolute/path/to/output/directory/ -# If arguments not provided, print usage and exit +# If any required arguments is missing, print the usage and exit if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then - echo "usage: run-in-docker.sh exercise-slug ./relative/path/to/solution/folder/ ./relative/path/to/output/directory/" + echo "usage: ./bin/run-in-docker.sh exercise-slug /absolute/path/to/solution/folder/ /absolute/path/to/output/directory/" exit 1 fi -# build docker image -docker build --rm --no-cache -t swift-test-runner . +slug="$1" +input_dir="${2%/}" +output_dir="${3%/}" -# Create output directory if it doesn't exist -output_dir="$3" -mkdir -p "$output_dir" +# Create the output directory if it doesn't exist +mkdir -p "${output_dir}" -# run image passing the arguments +# Build the Docker image +docker build --rm -t exercism/test-runner . + +# Run the Docker image using the settings mimicking the production environment docker run \ - --mount type=bind,src=$PWD/$2,dst=/solution \ - --mount type=bind,src=$PWD/$output_dir,dst=/output \ - swift-test-runner $1 /solution/ /output/ + --rm \ + --network none \ + --read-only \ + --mount type=bind,src="${input_dir}",dst=/solution \ + --mount type=bind,src="${output_dir}",dst=/output \ + --mount type=tmpfs,dst=/tmp \ + exercism/test-runner "${slug}" /solution /output diff --git a/bin/run-tests-in-docker.sh b/bin/run-tests-in-docker.sh new file mode 100755 index 0000000..7c45972 --- /dev/null +++ b/bin/run-tests-in-docker.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env sh + +# Synopsis: +# Test the test runner Docker image by running it against a predefined set of +# solutions with an expected output. +# The test runner Docker image is built automatically. + +# Output: +# Outputs the diff of the expected test results against the actual test results +# generated by the test runner Docker image. + +# Example: +# ./bin/run-tests-in-docker.sh + +# Build the Docker image +docker build --rm -t exercism/test-runner . + +# Run the Docker image using the settings mimicking the production environment +docker run \ + --rm \ + --network none \ + --read-only \ + --mount type=bind,src="${PWD}/tests",dst=/opt/test-runner/tests \ + --mount type=tmpfs,dst=/tmp \ + --workdir /opt/test-runner \ + --entrypoint /opt/test-runner/bin/run-tests.sh \ + exercism/test-runner diff --git a/bin/run-tests.sh b/bin/run-tests.sh new file mode 100755 index 0000000..ac7c9f2 --- /dev/null +++ b/bin/run-tests.sh @@ -0,0 +1,42 @@ +#!/usr/bin/env sh + +# Synopsis: +# Test the test runner by running it against a predefined set of solutions +# with an expected output. + +# Output: +# Outputs the diff of the expected test results against the actual test results +# generated by the test runner. + +# Example: +# ./bin/run-tests.sh + +exit_code=0 + +# Iterate over all test directories +for test_dir in tests/*; do + test_dir_name=$(basename "${test_dir}") + test_dir_path=$(realpath "${test_dir}") + results_file_path="${test_dir_path}/results.json" + expected_results_file_path="${test_dir_path}/expected_results.json" + + bin/run.sh "${test_dir_name}" "${test_dir_path}" "${test_dir_path}" + + # OPTIONAL: Normalize the results file + # If the results.json file contains information that changes between + # different test runs (e.g. timing information or paths), you should normalize + # the results file to allow the diff comparison below to work as expected + # sed -i -E \ + # -e 's/Elapsed time: [0-9]+\.[0-9]+ seconds//g' \ + # -e "s~${test_dir_path}~/solution~g" \ + # "${results_file_path}" + + echo "${test_dir_name}: comparing results.json to expected_results.json" + diff "${results_file_path}" "${expected_results_file_path}" + + if [ $? -ne 0 ]; then + exit_code=1 + fi +done + +exit ${exit_code} diff --git a/bin/run.sh b/bin/run.sh index c09ece4..a266d07 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -1,40 +1,36 @@ -#! /bin/sh -set -e +#!/usr/bin/env sh -# If arguments not provided, print usage and exit -if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then - echo "usage: run.sh exercise-slug ./relative/path/to/solution/folder/ ./relative/path/to/output/directory/" - exit 1 -fi +# Synopsis: +# Run the test runner on a solution. + +# Arguments: +# $1: exercise slug +# $2: absolute path to solution folder +# $3: absolute path to output directory -SLUG="$1" -INPUT_DIR="$2" -OUTPUT_DIR="$3" +# Output: +# Writes the test results to a results.json file in the passed-in output directory. +# The test results are formatted according to the specifications at https://github.com/exercism/docs/blob/main/building/tooling/test-runners/interface.md -BASEDIR=$(dirname "$0") +# Example: +# ./bin/run.sh two-fer /absolute/path/to/two-fer/solution/folder/ /absolute/path/to/output/directory/ -# echo "$SLUG: testing..." -# echo "$1" -# echo "$2" -# echo "$3" -# echo "-------------" -RUNALL=true "${BASEDIR}"/TestRunner --slug "${SLUG}" --solution-directory "${INPUT_DIR}/${SLUG}" --output-directory "${OUTPUT_DIR}" --swift-location $(which swift) --build-directory "/tmp/" +# If any required arguments is missing, print the usage and exit +if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then + echo "usage: ./bin/run.sh exercise-slug /absolute/path/to/two-fer/solution/folder/ /absolute/path/to/output/directory/" + exit 1 +fi -#echo "$SLUG: processing test output in $INPUT_DIR..." -## PLACEHOLDER - OPTIONAL: Your language may support outputting results -## in the correct format -# -# Create $OUTPUT_DIR if it doesn't exist -[ -d "$OUTPUT_DIR" ] || mkdir -p "$OUTPUT_DIR" -# -#echo "$SLUG: copying processed results to $OUTPUT_DIR..." -## PLACEHOLDER - OPTIONAL: Your language may support placing results -## directly in $OUTPUT_DIR -#cp "${INPUT_DIR}/results.json" "$OUTPUT_DIR" +slug="$1" +input_dir="${2%/}" +output_dir="${3%/}" -echo "$SLUG: comparing ${OUTPUT_DIR}/results" -diff "${INPUT_DIR}/${SLUG}/results.json" "${OUTPUT_DIR}/results.json" +# Create the output directory if it doesn't exist +mkdir -p "${output_dir}" -echo "$SLUG: OK\n-------------\n" +echo "${slug}: testing..." +# Run the tests for the provided implementation file +RUNALL=true ./bin/TestRunner --slug "${slug}" --solution-directory "${input_dir}/${slug}" --output-directory "${output_dir}" --swift-location $(which swift) --build-directory "/tmp/" +echo "${slug}: done" From 8855985ad9a400036fc7977e904009eb962e26c5 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 16 Apr 2021 13:21:13 +0200 Subject: [PATCH 03/13] Cleanup Dockerfile --- Dockerfile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8c0f8de..ea396a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,8 @@ FROM swift:latest AS builder -# WORKDIR /opt/testrunner + COPY src/testrunner ./ -# Print Installed Swift Version RUN swift --version -#RUN swift package clean RUN swift build --configuration release FROM swift:latest @@ -12,7 +10,4 @@ WORKDIR /opt/test-runner/ COPY bin/ bin/ COPY --from=builder /.build/release/TestRunner bin/ -ENV NAME RUNALL - -ENTRYPOINT ["./bin/run.sh"] -# ENTRYPOINT ["bin/TestRunner", "--help"] +ENTRYPOINT ["/opt/test-runner/bin/run.sh"] From ed7289396f27e568091db5b26047ab178b0e2a1b Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 16 Apr 2021 13:21:36 +0200 Subject: [PATCH 04/13] Move tests from test/ to tests/ --- .gitignore | 4 +- dockerTest/compile-error/README.md | 3 -- .../compile-error/expected_results.json | 7 ++++ dockerTest/multiple-tests-all-pass/README.md | 3 -- .../expected_results.json | 0 .../multiple-tests-multiple-fails/README.md | 3 -- .../expected_results.json | 19 +++++++++ .../multiple-tests-single-fail/README.md | 3 -- .../expected_results.json | 37 ++++++++++++++++++ .../multiple-tests-with-exception/README.md | 3 -- .../expected_results.json | 22 +++++++++++ dockerTest/output/expected_results.json | 37 ++++++++++++++++++ dockerTest/single-test-that-fails/README.md | 3 -- .../expected_results.json | 10 +++++ dockerTest/single-test-that-passes/README.md | 3 -- .../expected_results.json | 0 .../single-test-with-exception/README.md | 3 -- .../expected_results.json | 10 +++++ src/testrunner/README.md | 3 -- .../contents.xcworkspacedata | 7 ---- .../UserInterfaceState.xcuserstate | Bin 10427 -> 0 bytes .../xcschemes/xcschememanagement.plist | 14 ------- test/compile-error/README.md | 3 -- .../contents.xcworkspacedata | 7 ---- .../UserInterfaceState.xcuserstate | Bin 13274 -> 0 bytes .../xcschemes/xcschememanagement.plist | 14 ------- test/multiple-tests-all-pass/README.md | 3 -- .../contents.xcworkspacedata | 7 ---- test/multiple-tests-multiple-fails/README.md | 3 -- .../contents.xcworkspacedata | 7 ---- test/multiple-tests-single-fail/README.md | 3 -- .../contents.xcworkspacedata | 7 ---- test/multiple-tests-with-exception/README.md | 3 -- .../contents.xcworkspacedata | 7 ---- test/single-test-that-fails/README.md | 3 -- .../contents.xcworkspacedata | 7 ---- test/single-test-that-passes/README.md | 3 -- .../contents.xcworkspacedata | 7 ---- test/single-test-with-exception/README.md | 3 -- {test => tests}/compile-error/Package.swift | 0 .../Sources/CompileError/CompileError.swift | 0 .../CompileErrorTests/CompileErrorTests.swift | 0 .../CompileErrorTests/XCTestManifests.swift | 0 .../compile-error/Tests/LinuxMain.swift | 0 .../compile-error/expected_results.json | 0 .../multiple-tests-all-pass/Package.swift | 0 .../MultipleAllPass/MultipleAllPass.swift | 0 .../Tests/LinuxMain.swift | 0 .../MultipleAllPassTests.swift | 0 .../XCTestManifests.swift | 0 .../expected_results.json | 29 ++++++++++++++ .../multiple-tests-multiple-fails/.gitignore | 0 .../Package.swift | 0 .../MultipleMultipleFails.swift | 0 .../Tests/LinuxMain.swift | 0 .../MultipleMultipleFailsTests.swift | 0 .../XCTestManifests.swift | 0 .../expected_results.json | 0 .../multiple-tests-single-fail/.gitignore | 0 .../multiple-tests-single-fail/Package.swift | 0 .../MultipleSingleFail.swift | 0 .../Tests/LinuxMain.swift | 0 .../MultipleSingleFailTests.swift | 0 .../XCTestManifests.swift | 0 .../expected_results.json | 0 .../multiple-tests-with-exception/.gitignore | 0 .../Package.swift | 0 .../MultipleWithException.swift | 0 .../Tests/LinuxMain.swift | 0 .../MultipleWithExceptionTests.swift | 0 .../XCTestManifests.swift | 0 .../expected_results.json | 0 .../single-test-that-fails/.gitignore | 0 .../single-test-that-fails/Package.swift | 0 .../SingleThatFails/SingleThatFails.swift | 0 .../Tests/LinuxMain.swift | 0 .../SingleThatFailsTests.swift | 0 .../XCTestManifests.swift | 0 .../expected_results.json | 0 .../single-test-that-passes/.gitignore | 0 .../single-test-that-passes/Package.swift | 0 .../SingleThatPasses/SingleThatPasses.swift | 0 .../Tests/LinuxMain.swift | 0 .../SingleThatPassesTests.swift | 0 .../XCTestManifests.swift | 0 .../expected_results.json | 9 +++++ .../single-test-with-exception/.gitignore | 0 .../single-test-with-exception/Package.swift | 0 .../SingleWithException.swift | 0 .../Tests/LinuxMain.swift | 0 .../SingleWithExceptionTests.swift | 0 .../XCTestManifests.swift | 0 .../expected_results.json | 0 93 files changed, 183 insertions(+), 136 deletions(-) delete mode 100644 dockerTest/compile-error/README.md create mode 100644 dockerTest/compile-error/expected_results.json delete mode 100644 dockerTest/multiple-tests-all-pass/README.md rename test/multiple-tests-all-pass/results.json => dockerTest/multiple-tests-all-pass/expected_results.json (100%) delete mode 100644 dockerTest/multiple-tests-multiple-fails/README.md create mode 100644 dockerTest/multiple-tests-multiple-fails/expected_results.json delete mode 100644 dockerTest/multiple-tests-single-fail/README.md create mode 100644 dockerTest/multiple-tests-single-fail/expected_results.json delete mode 100644 dockerTest/multiple-tests-with-exception/README.md create mode 100644 dockerTest/multiple-tests-with-exception/expected_results.json create mode 100644 dockerTest/output/expected_results.json delete mode 100644 dockerTest/single-test-that-fails/README.md create mode 100644 dockerTest/single-test-that-fails/expected_results.json delete mode 100644 dockerTest/single-test-that-passes/README.md rename test/single-test-that-passes/results.json => dockerTest/single-test-that-passes/expected_results.json (100%) delete mode 100644 dockerTest/single-test-with-exception/README.md create mode 100644 dockerTest/single-test-with-exception/expected_results.json delete mode 100644 src/testrunner/README.md delete mode 100644 test/compile-error/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 test/compile-error/.swiftpm/xcode/package.xcworkspace/xcuserdata/wdn.xcuserdatad/UserInterfaceState.xcuserstate delete mode 100644 test/compile-error/.swiftpm/xcode/xcuserdata/wdn.xcuserdatad/xcschemes/xcschememanagement.plist delete mode 100644 test/compile-error/README.md delete mode 100644 test/multiple-tests-all-pass/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 test/multiple-tests-all-pass/.swiftpm/xcode/package.xcworkspace/xcuserdata/wdn.xcuserdatad/UserInterfaceState.xcuserstate delete mode 100644 test/multiple-tests-all-pass/.swiftpm/xcode/xcuserdata/wdn.xcuserdatad/xcschemes/xcschememanagement.plist delete mode 100644 test/multiple-tests-all-pass/README.md delete mode 100644 test/multiple-tests-multiple-fails/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 test/multiple-tests-multiple-fails/README.md delete mode 100644 test/multiple-tests-single-fail/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 test/multiple-tests-single-fail/README.md delete mode 100644 test/multiple-tests-with-exception/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 test/multiple-tests-with-exception/README.md delete mode 100644 test/single-test-that-fails/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 test/single-test-that-fails/README.md delete mode 100644 test/single-test-that-passes/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 test/single-test-that-passes/README.md delete mode 100644 test/single-test-with-exception/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 test/single-test-with-exception/README.md rename {test => tests}/compile-error/Package.swift (100%) rename {test => tests}/compile-error/Sources/CompileError/CompileError.swift (100%) rename {test => tests}/compile-error/Tests/CompileErrorTests/CompileErrorTests.swift (100%) rename {test => tests}/compile-error/Tests/CompileErrorTests/XCTestManifests.swift (100%) rename {test => tests}/compile-error/Tests/LinuxMain.swift (100%) rename test/compile-error/results.json => tests/compile-error/expected_results.json (100%) rename {test => tests}/multiple-tests-all-pass/Package.swift (100%) rename {test => tests}/multiple-tests-all-pass/Sources/MultipleAllPass/MultipleAllPass.swift (100%) rename {test => tests}/multiple-tests-all-pass/Tests/LinuxMain.swift (100%) rename {test => tests}/multiple-tests-all-pass/Tests/MultipleAllPassTests/MultipleAllPassTests.swift (100%) rename {test => tests}/multiple-tests-all-pass/Tests/MultipleAllPassTests/XCTestManifests.swift (100%) create mode 100644 tests/multiple-tests-all-pass/expected_results.json rename {test => tests}/multiple-tests-multiple-fails/.gitignore (100%) rename {test => tests}/multiple-tests-multiple-fails/Package.swift (100%) rename {test => tests}/multiple-tests-multiple-fails/Sources/MultipleMultipleFails/MultipleMultipleFails.swift (100%) rename {test => tests}/multiple-tests-multiple-fails/Tests/LinuxMain.swift (100%) rename {test => tests}/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/MultipleMultipleFailsTests.swift (100%) rename {test => tests}/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/XCTestManifests.swift (100%) rename test/multiple-tests-multiple-fails/results.json => tests/multiple-tests-multiple-fails/expected_results.json (100%) rename {test => tests}/multiple-tests-single-fail/.gitignore (100%) rename {test => tests}/multiple-tests-single-fail/Package.swift (100%) rename {test => tests}/multiple-tests-single-fail/Sources/MultipleSingleFail/MultipleSingleFail.swift (100%) rename {test => tests}/multiple-tests-single-fail/Tests/LinuxMain.swift (100%) rename {test => tests}/multiple-tests-single-fail/Tests/MultipleSingleFailTests/MultipleSingleFailTests.swift (100%) rename {test => tests}/multiple-tests-single-fail/Tests/MultipleSingleFailTests/XCTestManifests.swift (100%) rename test/multiple-tests-single-fail/results.json => tests/multiple-tests-single-fail/expected_results.json (100%) rename {test => tests}/multiple-tests-with-exception/.gitignore (100%) rename {test => tests}/multiple-tests-with-exception/Package.swift (100%) rename {test => tests}/multiple-tests-with-exception/Sources/MultipleWithException/MultipleWithException.swift (100%) rename {test => tests}/multiple-tests-with-exception/Tests/LinuxMain.swift (100%) rename {test => tests}/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/MultipleWithExceptionTests.swift (100%) rename {test => tests}/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/XCTestManifests.swift (100%) rename test/multiple-tests-with-exception/results.json => tests/multiple-tests-with-exception/expected_results.json (100%) rename {test => tests}/single-test-that-fails/.gitignore (100%) rename {test => tests}/single-test-that-fails/Package.swift (100%) rename {test => tests}/single-test-that-fails/Sources/SingleThatFails/SingleThatFails.swift (100%) rename {test => tests}/single-test-that-fails/Tests/LinuxMain.swift (100%) rename {test => tests}/single-test-that-fails/Tests/SingleThatFailsTests/SingleThatFailsTests.swift (100%) rename {test => tests}/single-test-that-fails/Tests/SingleThatFailsTests/XCTestManifests.swift (100%) rename test/single-test-that-fails/results.json => tests/single-test-that-fails/expected_results.json (100%) rename {test => tests}/single-test-that-passes/.gitignore (100%) rename {test => tests}/single-test-that-passes/Package.swift (100%) rename {test => tests}/single-test-that-passes/Sources/SingleThatPasses/SingleThatPasses.swift (100%) rename {test => tests}/single-test-that-passes/Tests/LinuxMain.swift (100%) rename {test => tests}/single-test-that-passes/Tests/SingleThatPassesTests/SingleThatPassesTests.swift (100%) rename {test => tests}/single-test-that-passes/Tests/SingleThatPassesTests/XCTestManifests.swift (100%) create mode 100644 tests/single-test-that-passes/expected_results.json rename {test => tests}/single-test-with-exception/.gitignore (100%) rename {test => tests}/single-test-with-exception/Package.swift (100%) rename {test => tests}/single-test-with-exception/Sources/SingleWithException/SingleWithException.swift (100%) rename {test => tests}/single-test-with-exception/Tests/LinuxMain.swift (100%) rename {test => tests}/single-test-with-exception/Tests/SingleWithExceptionTests/SingleWithExceptionTests.swift (100%) rename {test => tests}/single-test-with-exception/Tests/SingleWithExceptionTests/XCTestManifests.swift (100%) rename test/single-test-with-exception/results.json => tests/single-test-with-exception/expected_results.json (100%) diff --git a/.gitignore b/.gitignore index a948af2..0300688 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ -test/output/ .DS_Store **/.build **/Packages **/Package.resolved **/*.xcodeproj + +tests/*/results.json +tests/*/.swiftpm/ diff --git a/dockerTest/compile-error/README.md b/dockerTest/compile-error/README.md deleted file mode 100644 index 29bf5fd..0000000 --- a/dockerTest/compile-error/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# CompileError - -A description of this package. diff --git a/dockerTest/compile-error/expected_results.json b/dockerTest/compile-error/expected_results.json new file mode 100644 index 0000000..7223336 --- /dev/null +++ b/dockerTest/compile-error/expected_results.json @@ -0,0 +1,7 @@ +{ + "message" : "\/solution\/compile-error\/Sources\/CompileError\/CompileError.swift:2:12: error: unexpected non-void return value in void function\n return x + y\n ^\n", + "status" : "error", + "tests" : [ + + ] +} \ No newline at end of file diff --git a/dockerTest/multiple-tests-all-pass/README.md b/dockerTest/multiple-tests-all-pass/README.md deleted file mode 100644 index 01a8408..0000000 --- a/dockerTest/multiple-tests-all-pass/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# MultipleAllPass - -A description of this package. diff --git a/test/multiple-tests-all-pass/results.json b/dockerTest/multiple-tests-all-pass/expected_results.json similarity index 100% rename from test/multiple-tests-all-pass/results.json rename to dockerTest/multiple-tests-all-pass/expected_results.json diff --git a/dockerTest/multiple-tests-multiple-fails/README.md b/dockerTest/multiple-tests-multiple-fails/README.md deleted file mode 100644 index d13b138..0000000 --- a/dockerTest/multiple-tests-multiple-fails/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# MultipleMultipleFails - -A description of this package. diff --git a/dockerTest/multiple-tests-multiple-fails/expected_results.json b/dockerTest/multiple-tests-multiple-fails/expected_results.json new file mode 100644 index 0000000..eb3c60a --- /dev/null +++ b/dockerTest/multiple-tests-multiple-fails/expected_results.json @@ -0,0 +1,19 @@ +{ + "status" : "fail", + "tests" : [ + { + "message" : "\/solution\/multiple-tests-multiple-fails\/Tests\/MultipleMultipleFailsTests\/MultipleMultipleFailsTests.swift:7: error: MultipleMultipleFailsTests.testAdd : XCTAssertEqual failed: (\"-1\") is not equal to (\"5\") - 2+3 should equal 5", + "name" : "MultipleMultipleFailsTests.testAdd", + "status" : "fail" + }, + { + "message" : "\/solution\/multiple-tests-multiple-fails\/Tests\/MultipleMultipleFailsTests\/MultipleMultipleFailsTests.swift:11: error: MultipleMultipleFailsTests.testSub : XCTAssertEqual failed: (\"5\") is not equal to (\"-1\") - ", + "name" : "MultipleMultipleFailsTests.testSub", + "status" : "fail" + }, + { + "name" : "MultipleMultipleFailsTests.testMul", + "status" : "pass" + } + ] +} \ No newline at end of file diff --git a/dockerTest/multiple-tests-single-fail/README.md b/dockerTest/multiple-tests-single-fail/README.md deleted file mode 100644 index 025797a..0000000 --- a/dockerTest/multiple-tests-single-fail/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# MultipleSingleFail - -A description of this package. diff --git a/dockerTest/multiple-tests-single-fail/expected_results.json b/dockerTest/multiple-tests-single-fail/expected_results.json new file mode 100644 index 0000000..3b00124 --- /dev/null +++ b/dockerTest/multiple-tests-single-fail/expected_results.json @@ -0,0 +1,37 @@ +{ + "status" : "fail", + "tests" : [ + { + "message" : "\/solution\/multiple-tests-single-fail\/Tests\/MultipleSingleFailTests\/MultipleSingleFailTests.swift:9: error: MultipleSingleFailTests.testAdd : XCTAssertEqual failed: (\"0\") is not equal to (\"5\") - 2+3 should equal 5", + "name" : "MultipleSingleFailTests.testAdd", + "output" : "yabba…", + "status" : "fail" + }, + { + "name" : "MultipleSingleFailTests.testSub", + "output" : "dabba…", + "status" : "pass" + }, + { + "name" : "MultipleSingleFailTests.testMul", + "output" : "Benedick's speech is 674 character's long.\nI will not be sworn but love may transform me to an oyster,\nbut I’ll take my oath on it, till he have made an oyster of me,\nhe shall never make me such a fool. One woman is fair, yet\nI am well; another is wise, yet I am well; another virtuous,\n25yet I am well; but till all graces be in one woman, one\nwoman shall not come in my grace. Rich she shall be, that’s\ncertain; wise, or I’ll none; virtuous, or I’ll never cheapen\nher; fair, or I’ll ever look on h…", + "status" : "pass" + }, + { + "message" : "\/solution\/multiple-tests-single-fail\/Tests\/MultipleSingleFailTests\/MultipleSingleFailTests.swift:34: error: SecondSuite.testAdd : XCTAssertEqual failed: (\"0\") is not equal to (\"25\") - 12+13 should equal 25", + "name" : "SecondSuite.testAdd", + "output" : "yabba…", + "status" : "fail" + }, + { + "name" : "SecondSuite.testSub", + "output" : "dabba…", + "status" : "pass" + }, + { + "name" : "SecondSuite.testMul", + "output" : "Benedick's speech is 674 character's long.\nI will not be sworn but love may transform me to an oyster,\nbut I’ll take my oath on it, till he have made an oyster of me,\nhe shall never make me such a fool. One woman is fair, yet\nI am well; another is wise, yet I am well; another virtuous,\n25yet I am well; but till all graces be in one woman, one\nwoman shall not come in my grace. Rich she shall be, that’s\ncertain; wise, or I’ll none; virtuous, or I’ll never cheapen\nher; fair, or I’ll ever look on h…", + "status" : "pass" + } + ] +} \ No newline at end of file diff --git a/dockerTest/multiple-tests-with-exception/README.md b/dockerTest/multiple-tests-with-exception/README.md deleted file mode 100644 index 103fb4b..0000000 --- a/dockerTest/multiple-tests-with-exception/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# MultipleWithException - -A description of this package. diff --git a/dockerTest/multiple-tests-with-exception/expected_results.json b/dockerTest/multiple-tests-with-exception/expected_results.json new file mode 100644 index 0000000..46b33d4 --- /dev/null +++ b/dockerTest/multiple-tests-with-exception/expected_results.json @@ -0,0 +1,22 @@ +{ + "status" : "fail", + "tests" : [ + { + "name" : "MultipleWithExceptionTests.testAdd", + "status" : "pass" + }, + { + "name" : "MultipleWithExceptionTests.testSub", + "status" : "pass" + }, + { + "name" : "MultipleWithExceptionTests.testMul", + "status" : "pass" + }, + { + "message" : "\/solution\/multiple-tests-with-exception\/Tests\/MultipleWithExceptionTests\/MultipleWithExceptionTests.swift:19: error: MultipleWithExceptionTests.testThrow : XCTAssertEqual threw error \"testError(\"Oh noes! Div by zeroes!!!\")\" - ", + "name" : "MultipleWithExceptionTests.testThrow", + "status" : "fail" + } + ] +} \ No newline at end of file diff --git a/dockerTest/output/expected_results.json b/dockerTest/output/expected_results.json new file mode 100644 index 0000000..3b00124 --- /dev/null +++ b/dockerTest/output/expected_results.json @@ -0,0 +1,37 @@ +{ + "status" : "fail", + "tests" : [ + { + "message" : "\/solution\/multiple-tests-single-fail\/Tests\/MultipleSingleFailTests\/MultipleSingleFailTests.swift:9: error: MultipleSingleFailTests.testAdd : XCTAssertEqual failed: (\"0\") is not equal to (\"5\") - 2+3 should equal 5", + "name" : "MultipleSingleFailTests.testAdd", + "output" : "yabba…", + "status" : "fail" + }, + { + "name" : "MultipleSingleFailTests.testSub", + "output" : "dabba…", + "status" : "pass" + }, + { + "name" : "MultipleSingleFailTests.testMul", + "output" : "Benedick's speech is 674 character's long.\nI will not be sworn but love may transform me to an oyster,\nbut I’ll take my oath on it, till he have made an oyster of me,\nhe shall never make me such a fool. One woman is fair, yet\nI am well; another is wise, yet I am well; another virtuous,\n25yet I am well; but till all graces be in one woman, one\nwoman shall not come in my grace. Rich she shall be, that’s\ncertain; wise, or I’ll none; virtuous, or I’ll never cheapen\nher; fair, or I’ll ever look on h…", + "status" : "pass" + }, + { + "message" : "\/solution\/multiple-tests-single-fail\/Tests\/MultipleSingleFailTests\/MultipleSingleFailTests.swift:34: error: SecondSuite.testAdd : XCTAssertEqual failed: (\"0\") is not equal to (\"25\") - 12+13 should equal 25", + "name" : "SecondSuite.testAdd", + "output" : "yabba…", + "status" : "fail" + }, + { + "name" : "SecondSuite.testSub", + "output" : "dabba…", + "status" : "pass" + }, + { + "name" : "SecondSuite.testMul", + "output" : "Benedick's speech is 674 character's long.\nI will not be sworn but love may transform me to an oyster,\nbut I’ll take my oath on it, till he have made an oyster of me,\nhe shall never make me such a fool. One woman is fair, yet\nI am well; another is wise, yet I am well; another virtuous,\n25yet I am well; but till all graces be in one woman, one\nwoman shall not come in my grace. Rich she shall be, that’s\ncertain; wise, or I’ll none; virtuous, or I’ll never cheapen\nher; fair, or I’ll ever look on h…", + "status" : "pass" + } + ] +} \ No newline at end of file diff --git a/dockerTest/single-test-that-fails/README.md b/dockerTest/single-test-that-fails/README.md deleted file mode 100644 index f8dd2c3..0000000 --- a/dockerTest/single-test-that-fails/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# SingleThatFails - -A description of this package. diff --git a/dockerTest/single-test-that-fails/expected_results.json b/dockerTest/single-test-that-fails/expected_results.json new file mode 100644 index 0000000..7918c5f --- /dev/null +++ b/dockerTest/single-test-that-fails/expected_results.json @@ -0,0 +1,10 @@ +{ + "status" : "fail", + "tests" : [ + { + "message" : "\/solution\/single-test-that-fails\/Tests\/SingleThatFailsTests\/SingleThatFailsTests.swift:7: error: SingleThatFailsTests.testAdd : XCTAssertEqual failed: (\"-1\") is not equal to (\"5\") - 2+3 should equal 5", + "name" : "SingleThatFailsTests.testAdd", + "status" : "fail" + } + ] +} \ No newline at end of file diff --git a/dockerTest/single-test-that-passes/README.md b/dockerTest/single-test-that-passes/README.md deleted file mode 100644 index 44a922c..0000000 --- a/dockerTest/single-test-that-passes/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# SingleThatPasses - -A description of this package. diff --git a/test/single-test-that-passes/results.json b/dockerTest/single-test-that-passes/expected_results.json similarity index 100% rename from test/single-test-that-passes/results.json rename to dockerTest/single-test-that-passes/expected_results.json diff --git a/dockerTest/single-test-with-exception/README.md b/dockerTest/single-test-with-exception/README.md deleted file mode 100644 index 3cd118b..0000000 --- a/dockerTest/single-test-with-exception/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# SingleWithException - -A description of this package. diff --git a/dockerTest/single-test-with-exception/expected_results.json b/dockerTest/single-test-with-exception/expected_results.json new file mode 100644 index 0000000..7588313 --- /dev/null +++ b/dockerTest/single-test-with-exception/expected_results.json @@ -0,0 +1,10 @@ +{ + "status" : "fail", + "tests" : [ + { + "message" : "\/solution\/single-test-with-exception\/Tests\/SingleWithExceptionTests\/SingleWithExceptionTests.swift:7: error: SingleWithExceptionTests.testAdd : XCTAssertEqual threw error \"testError(\"Kaboomtown!\")\" - 2+3 should equal 5", + "name" : "SingleWithExceptionTests.testAdd", + "status" : "fail" + } + ] +} \ No newline at end of file diff --git a/src/testrunner/README.md b/src/testrunner/README.md deleted file mode 100644 index 4d273f9..0000000 --- a/src/testrunner/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# TestRunner - -The source code for the test-runner executable for the Exercism v3 Swift track. \ No newline at end of file diff --git a/test/compile-error/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/test/compile-error/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/test/compile-error/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/test/compile-error/.swiftpm/xcode/package.xcworkspace/xcuserdata/wdn.xcuserdatad/UserInterfaceState.xcuserstate b/test/compile-error/.swiftpm/xcode/package.xcworkspace/xcuserdata/wdn.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index efe15df990cf714ac0790ebd8de89a810c0c6227..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10427 zcmeG?X?PUHwpG=c%uHr7)03IZ4kQrv>|_NYWQ9OBGD+BplcbY0OlHC?2@$~(5fvBI z>xOcbBr1xChzf3qUPW<11VqFQMMV)2TzFphce*=0Nd&L&d*A!{nC~OiU8hc+I{P`* z4ecI25KK*d8(~BcgCdXuMIt4Nnv>AM`2)PqJ2%1YZ*1k^sU{)lYoC+gYgo)R1_Ln& zui047>ML9`xh}3LzYpjDQXzG%E9ee#6hFeAMH-|<7Gy;>l!TH|3Q9$3C>>2e87LEF zp^MODRESE^3{-_$5swz5CCG!?kQez-J6ekTr~|D)E79d>6r9YpV-qv#m=6rDg{ zp+sF^ANY2B7v6w3;%?l7@5h_)!}wAB z1bzy?h+o2c@XPo${3iYge}+%tGx#k20iVM^;h*vE_z%L62;w9|$WStj#F2P1oQxm| zWF#3y#*s9VNhXsiB%hR$8Du7@BrZ}=wLB1p>$yekQ`I?+2-;*E6&*T?|VImj> z6V2!t6JuxMm{Ck3lf+D5vYE-u6egc3U`lEeydjV05Q;`Rq(>|=BJ=DDSMn0BD=-iK z_9;tULZinW2=pKWilKxuJ;;P&X#_2$BkNgHX;JZPpMOc9-QCC)`5HrQoHtm{CKP03 z=ckpVmn3DU7Z)UDB;^;Trx)kv7Z#@#P0jk_o&)SQ)W_QRFENX5gH z3j}$uI|yb3mLeZ*Ht%inbp`;XG|Kn;-QE^h>J1ig4WX7&Z?g};U7QE(jB5&mTdTQ7 zfRPB0kqP^&WiDi+T$I?2a;Ux=O{A=Fnxr|6z9udiSUi&tCJ$blT*bAx1EGM+7xFi9 zg#afbnu4YZi1MhR8|70IO*w>$K)l7M1WiNJ1pzm>1KfQ0>*qXhz7CEeYNRps?Cs6G zhntv^l2RK0|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*D zL-ld`vHDE?M16_grLWP~>Syac`pfh;=)3j1^t<&h=wH;iT^JOL_B-|m12O0g z4#P;pXv0{;cteI^hN05H8N7z|hPw@~8V(u`8;%%`8crBa8_pQMHGFUQ+3>63_ZSpI zVstSHFuPWXIg3sm_nwtrt3^M zm~J%PY`VpCo9PbIou&<@yGQna7)x%oELd=6rLZdAfOqxy)Q)UTAJMx0rczhk3bqh50h`YV#WN z)#kP4_2$RS&zcXJ-!-2x|J%Y^Vl7FQiIzf3v1OX2)H2gjW2v*uvCOk9uq?8)Se9BY zwcKLqwrsX+v23+$vuw9KW7%cdZF#}+qGgZeQ!BELuwG;>wU${cth1~xYps>Hc38Wt z%dIP|)Vj)gt@TFh&DLA2w^@6wo2^@{TdmuyJFQPypRw+;?zZl=9=3j9{mA;U^|(4f&Ey|{~>1_s^(dM*`u#L2hwvDxox8>OKZ27iATd}RoR$;5MRoiN8 z3vG*SOKkyL$ku6FX`{APw$-*Zwsp1*wqDzPwoSGNZQE?yZI9b_*q*e#ZhPDIiS2~# zOWRkrGq!JS-`mdF)%HYtu6??FhP}*QVXv}R+iUD~cFx{n=j}`EZFZl1sXbs1*;m_p z?N8f3a;O~+#|($t;dLx^1RNcXWsXZ6*E!ZZHaPBfbUS(-_c^vZb~|2jyzJQP*yq^q zIN&(sIO=%M@rC1S$2X3%j&qJ59X~mKaq68;=P+lyGr>8^ImVgk%yCY1PIl%w^PLsW zSx%R;&N;_9&)MQ!?DRN&&ZW+PlRB?(Ug^Brxz>4|^M2=J&K=GtozFOTId?nXaPD)y z>3qxiq4Q(sap&jGFPtZbL=Q0!u?(>dNgpz4NMZcP@yFv&#s4(CFOU%;4VW2&A{!d6 F{BI{{ - - - - SchemeUserState - - CompileError.xcscheme_^#shared#^_ - - orderHint - 0 - - - - diff --git a/test/compile-error/README.md b/test/compile-error/README.md deleted file mode 100644 index 29bf5fd..0000000 --- a/test/compile-error/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# CompileError - -A description of this package. diff --git a/test/multiple-tests-all-pass/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/test/multiple-tests-all-pass/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/test/multiple-tests-all-pass/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/test/multiple-tests-all-pass/.swiftpm/xcode/package.xcworkspace/xcuserdata/wdn.xcuserdatad/UserInterfaceState.xcuserstate b/test/multiple-tests-all-pass/.swiftpm/xcode/package.xcworkspace/xcuserdata/wdn.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index 0a6e8e782c8674d9abfb6335a2e199f1366c9183..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13274 zcmeHtcYKpo-}f0wGn%AVMiWLynkG%t&`DcbK&1<)KpCZlvSQk%CD0}{Nof(#6BoD; zl_AP%S%TsoH~|MB+}tPyRMgvnBF-BpBBJl_%GIPTpwIhxKhN`g-al^gp~-cf^*iT$ zf9rcrZA+8eAIQo&iZCLGA`ud!C?rAhspfeupWp5E)R>*Vy4h}cnrseuTc(=5wR2o` z0lx;}TQ@kkn2O3VuKBL|qV7s>BPo(qRR){^7sHRK@gNk96v%-3q5jB@2BCD6fih7R z%0@Y8Fe*W%s0@unqtIwnjvCQyuW#}GsFS;LfqK#-1+KjfLN6-%RBzhLTfL=#$po8db^f)?#j-wOkee?nP7=40H zqA$@`=sWZS`UNA5F~Jl|a5Nr>ldu)r@gSUqvvD5I$3yW5T!KsS3_KIh!VY{5cH&xG zhwHHmH{dz=THJ~k;p_1Y_(psaz8T+%@4`#*-FO*Zj_=2t@MgRPZ^aMcr|~oRS^ON{ ziC@9H@EiC5K8lawkMPI%6#fSPg3l662vHCvQ4u{ckbWeM*vTN0PBKU)$s*Y#hZK-P zaupdtt|nv1STc@Ok!muFIEahPCD)QR(oU`?H)#rl9thNw1SSOQ|MIMLa(Jh>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code/xcuserdata/wdn.xcuserdatad/xcschemes/xcschememanagement.plist b/test/multiple-tests-all-pass/.swiftpm/xcode/xcuserdata/wdn.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index dc01e4e..0000000 --- a/test/multiple-tests-all-pass/.swiftpm/xcode/xcuserdata/wdn.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,14 +0,0 @@ - - - - - SchemeUserState - - MultipleAllPass.xcscheme_^#shared#^_ - - orderHint - 0 - - - - diff --git a/test/multiple-tests-all-pass/README.md b/test/multiple-tests-all-pass/README.md deleted file mode 100644 index 01a8408..0000000 --- a/test/multiple-tests-all-pass/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# MultipleAllPass - -A description of this package. diff --git a/test/multiple-tests-multiple-fails/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/test/multiple-tests-multiple-fails/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/test/multiple-tests-multiple-fails/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/test/multiple-tests-multiple-fails/README.md b/test/multiple-tests-multiple-fails/README.md deleted file mode 100644 index d13b138..0000000 --- a/test/multiple-tests-multiple-fails/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# MultipleMultipleFails - -A description of this package. diff --git a/test/multiple-tests-single-fail/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/test/multiple-tests-single-fail/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/test/multiple-tests-single-fail/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/test/multiple-tests-single-fail/README.md b/test/multiple-tests-single-fail/README.md deleted file mode 100644 index 025797a..0000000 --- a/test/multiple-tests-single-fail/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# MultipleSingleFail - -A description of this package. diff --git a/test/multiple-tests-with-exception/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/test/multiple-tests-with-exception/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/test/multiple-tests-with-exception/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/test/multiple-tests-with-exception/README.md b/test/multiple-tests-with-exception/README.md deleted file mode 100644 index 103fb4b..0000000 --- a/test/multiple-tests-with-exception/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# MultipleWithException - -A description of this package. diff --git a/test/single-test-that-fails/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/test/single-test-that-fails/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/test/single-test-that-fails/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/test/single-test-that-fails/README.md b/test/single-test-that-fails/README.md deleted file mode 100644 index f8dd2c3..0000000 --- a/test/single-test-that-fails/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# SingleThatFails - -A description of this package. diff --git a/test/single-test-that-passes/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/test/single-test-that-passes/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/test/single-test-that-passes/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/test/single-test-that-passes/README.md b/test/single-test-that-passes/README.md deleted file mode 100644 index 44a922c..0000000 --- a/test/single-test-that-passes/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# SingleThatPasses - -A description of this package. diff --git a/test/single-test-with-exception/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/test/single-test-with-exception/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/test/single-test-with-exception/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/test/single-test-with-exception/README.md b/test/single-test-with-exception/README.md deleted file mode 100644 index 3cd118b..0000000 --- a/test/single-test-with-exception/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# SingleWithException - -A description of this package. diff --git a/test/compile-error/Package.swift b/tests/compile-error/Package.swift similarity index 100% rename from test/compile-error/Package.swift rename to tests/compile-error/Package.swift diff --git a/test/compile-error/Sources/CompileError/CompileError.swift b/tests/compile-error/Sources/CompileError/CompileError.swift similarity index 100% rename from test/compile-error/Sources/CompileError/CompileError.swift rename to tests/compile-error/Sources/CompileError/CompileError.swift diff --git a/test/compile-error/Tests/CompileErrorTests/CompileErrorTests.swift b/tests/compile-error/Tests/CompileErrorTests/CompileErrorTests.swift similarity index 100% rename from test/compile-error/Tests/CompileErrorTests/CompileErrorTests.swift rename to tests/compile-error/Tests/CompileErrorTests/CompileErrorTests.swift diff --git a/test/compile-error/Tests/CompileErrorTests/XCTestManifests.swift b/tests/compile-error/Tests/CompileErrorTests/XCTestManifests.swift similarity index 100% rename from test/compile-error/Tests/CompileErrorTests/XCTestManifests.swift rename to tests/compile-error/Tests/CompileErrorTests/XCTestManifests.swift diff --git a/test/compile-error/Tests/LinuxMain.swift b/tests/compile-error/Tests/LinuxMain.swift similarity index 100% rename from test/compile-error/Tests/LinuxMain.swift rename to tests/compile-error/Tests/LinuxMain.swift diff --git a/test/compile-error/results.json b/tests/compile-error/expected_results.json similarity index 100% rename from test/compile-error/results.json rename to tests/compile-error/expected_results.json diff --git a/test/multiple-tests-all-pass/Package.swift b/tests/multiple-tests-all-pass/Package.swift similarity index 100% rename from test/multiple-tests-all-pass/Package.swift rename to tests/multiple-tests-all-pass/Package.swift diff --git a/test/multiple-tests-all-pass/Sources/MultipleAllPass/MultipleAllPass.swift b/tests/multiple-tests-all-pass/Sources/MultipleAllPass/MultipleAllPass.swift similarity index 100% rename from test/multiple-tests-all-pass/Sources/MultipleAllPass/MultipleAllPass.swift rename to tests/multiple-tests-all-pass/Sources/MultipleAllPass/MultipleAllPass.swift diff --git a/test/multiple-tests-all-pass/Tests/LinuxMain.swift b/tests/multiple-tests-all-pass/Tests/LinuxMain.swift similarity index 100% rename from test/multiple-tests-all-pass/Tests/LinuxMain.swift rename to tests/multiple-tests-all-pass/Tests/LinuxMain.swift diff --git a/test/multiple-tests-all-pass/Tests/MultipleAllPassTests/MultipleAllPassTests.swift b/tests/multiple-tests-all-pass/Tests/MultipleAllPassTests/MultipleAllPassTests.swift similarity index 100% rename from test/multiple-tests-all-pass/Tests/MultipleAllPassTests/MultipleAllPassTests.swift rename to tests/multiple-tests-all-pass/Tests/MultipleAllPassTests/MultipleAllPassTests.swift diff --git a/test/multiple-tests-all-pass/Tests/MultipleAllPassTests/XCTestManifests.swift b/tests/multiple-tests-all-pass/Tests/MultipleAllPassTests/XCTestManifests.swift similarity index 100% rename from test/multiple-tests-all-pass/Tests/MultipleAllPassTests/XCTestManifests.swift rename to tests/multiple-tests-all-pass/Tests/MultipleAllPassTests/XCTestManifests.swift diff --git a/tests/multiple-tests-all-pass/expected_results.json b/tests/multiple-tests-all-pass/expected_results.json new file mode 100644 index 0000000..d814f79 --- /dev/null +++ b/tests/multiple-tests-all-pass/expected_results.json @@ -0,0 +1,29 @@ +{ + "status" : "pass", + "tests" : [ + { + "name" : "MultipleAllPassTests.testAdd", + "status" : "pass" + }, + { + "name" : "MultipleAllPassTests.testSub", + "status" : "pass" + }, + { + "name" : "MultipleAllPassTests.testMul", + "status" : "pass" + }, + { + "name" : "SecondSuite.testAdd", + "status" : "pass" + }, + { + "name" : "SecondSuite.testSub", + "status" : "pass" + }, + { + "name" : "SecondSuite.testMul", + "status" : "pass" + } + ] +} \ No newline at end of file diff --git a/test/multiple-tests-multiple-fails/.gitignore b/tests/multiple-tests-multiple-fails/.gitignore similarity index 100% rename from test/multiple-tests-multiple-fails/.gitignore rename to tests/multiple-tests-multiple-fails/.gitignore diff --git a/test/multiple-tests-multiple-fails/Package.swift b/tests/multiple-tests-multiple-fails/Package.swift similarity index 100% rename from test/multiple-tests-multiple-fails/Package.swift rename to tests/multiple-tests-multiple-fails/Package.swift diff --git a/test/multiple-tests-multiple-fails/Sources/MultipleMultipleFails/MultipleMultipleFails.swift b/tests/multiple-tests-multiple-fails/Sources/MultipleMultipleFails/MultipleMultipleFails.swift similarity index 100% rename from test/multiple-tests-multiple-fails/Sources/MultipleMultipleFails/MultipleMultipleFails.swift rename to tests/multiple-tests-multiple-fails/Sources/MultipleMultipleFails/MultipleMultipleFails.swift diff --git a/test/multiple-tests-multiple-fails/Tests/LinuxMain.swift b/tests/multiple-tests-multiple-fails/Tests/LinuxMain.swift similarity index 100% rename from test/multiple-tests-multiple-fails/Tests/LinuxMain.swift rename to tests/multiple-tests-multiple-fails/Tests/LinuxMain.swift diff --git a/test/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/MultipleMultipleFailsTests.swift b/tests/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/MultipleMultipleFailsTests.swift similarity index 100% rename from test/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/MultipleMultipleFailsTests.swift rename to tests/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/MultipleMultipleFailsTests.swift diff --git a/test/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/XCTestManifests.swift b/tests/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/XCTestManifests.swift similarity index 100% rename from test/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/XCTestManifests.swift rename to tests/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/XCTestManifests.swift diff --git a/test/multiple-tests-multiple-fails/results.json b/tests/multiple-tests-multiple-fails/expected_results.json similarity index 100% rename from test/multiple-tests-multiple-fails/results.json rename to tests/multiple-tests-multiple-fails/expected_results.json diff --git a/test/multiple-tests-single-fail/.gitignore b/tests/multiple-tests-single-fail/.gitignore similarity index 100% rename from test/multiple-tests-single-fail/.gitignore rename to tests/multiple-tests-single-fail/.gitignore diff --git a/test/multiple-tests-single-fail/Package.swift b/tests/multiple-tests-single-fail/Package.swift similarity index 100% rename from test/multiple-tests-single-fail/Package.swift rename to tests/multiple-tests-single-fail/Package.swift diff --git a/test/multiple-tests-single-fail/Sources/MultipleSingleFail/MultipleSingleFail.swift b/tests/multiple-tests-single-fail/Sources/MultipleSingleFail/MultipleSingleFail.swift similarity index 100% rename from test/multiple-tests-single-fail/Sources/MultipleSingleFail/MultipleSingleFail.swift rename to tests/multiple-tests-single-fail/Sources/MultipleSingleFail/MultipleSingleFail.swift diff --git a/test/multiple-tests-single-fail/Tests/LinuxMain.swift b/tests/multiple-tests-single-fail/Tests/LinuxMain.swift similarity index 100% rename from test/multiple-tests-single-fail/Tests/LinuxMain.swift rename to tests/multiple-tests-single-fail/Tests/LinuxMain.swift diff --git a/test/multiple-tests-single-fail/Tests/MultipleSingleFailTests/MultipleSingleFailTests.swift b/tests/multiple-tests-single-fail/Tests/MultipleSingleFailTests/MultipleSingleFailTests.swift similarity index 100% rename from test/multiple-tests-single-fail/Tests/MultipleSingleFailTests/MultipleSingleFailTests.swift rename to tests/multiple-tests-single-fail/Tests/MultipleSingleFailTests/MultipleSingleFailTests.swift diff --git a/test/multiple-tests-single-fail/Tests/MultipleSingleFailTests/XCTestManifests.swift b/tests/multiple-tests-single-fail/Tests/MultipleSingleFailTests/XCTestManifests.swift similarity index 100% rename from test/multiple-tests-single-fail/Tests/MultipleSingleFailTests/XCTestManifests.swift rename to tests/multiple-tests-single-fail/Tests/MultipleSingleFailTests/XCTestManifests.swift diff --git a/test/multiple-tests-single-fail/results.json b/tests/multiple-tests-single-fail/expected_results.json similarity index 100% rename from test/multiple-tests-single-fail/results.json rename to tests/multiple-tests-single-fail/expected_results.json diff --git a/test/multiple-tests-with-exception/.gitignore b/tests/multiple-tests-with-exception/.gitignore similarity index 100% rename from test/multiple-tests-with-exception/.gitignore rename to tests/multiple-tests-with-exception/.gitignore diff --git a/test/multiple-tests-with-exception/Package.swift b/tests/multiple-tests-with-exception/Package.swift similarity index 100% rename from test/multiple-tests-with-exception/Package.swift rename to tests/multiple-tests-with-exception/Package.swift diff --git a/test/multiple-tests-with-exception/Sources/MultipleWithException/MultipleWithException.swift b/tests/multiple-tests-with-exception/Sources/MultipleWithException/MultipleWithException.swift similarity index 100% rename from test/multiple-tests-with-exception/Sources/MultipleWithException/MultipleWithException.swift rename to tests/multiple-tests-with-exception/Sources/MultipleWithException/MultipleWithException.swift diff --git a/test/multiple-tests-with-exception/Tests/LinuxMain.swift b/tests/multiple-tests-with-exception/Tests/LinuxMain.swift similarity index 100% rename from test/multiple-tests-with-exception/Tests/LinuxMain.swift rename to tests/multiple-tests-with-exception/Tests/LinuxMain.swift diff --git a/test/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/MultipleWithExceptionTests.swift b/tests/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/MultipleWithExceptionTests.swift similarity index 100% rename from test/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/MultipleWithExceptionTests.swift rename to tests/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/MultipleWithExceptionTests.swift diff --git a/test/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/XCTestManifests.swift b/tests/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/XCTestManifests.swift similarity index 100% rename from test/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/XCTestManifests.swift rename to tests/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/XCTestManifests.swift diff --git a/test/multiple-tests-with-exception/results.json b/tests/multiple-tests-with-exception/expected_results.json similarity index 100% rename from test/multiple-tests-with-exception/results.json rename to tests/multiple-tests-with-exception/expected_results.json diff --git a/test/single-test-that-fails/.gitignore b/tests/single-test-that-fails/.gitignore similarity index 100% rename from test/single-test-that-fails/.gitignore rename to tests/single-test-that-fails/.gitignore diff --git a/test/single-test-that-fails/Package.swift b/tests/single-test-that-fails/Package.swift similarity index 100% rename from test/single-test-that-fails/Package.swift rename to tests/single-test-that-fails/Package.swift diff --git a/test/single-test-that-fails/Sources/SingleThatFails/SingleThatFails.swift b/tests/single-test-that-fails/Sources/SingleThatFails/SingleThatFails.swift similarity index 100% rename from test/single-test-that-fails/Sources/SingleThatFails/SingleThatFails.swift rename to tests/single-test-that-fails/Sources/SingleThatFails/SingleThatFails.swift diff --git a/test/single-test-that-fails/Tests/LinuxMain.swift b/tests/single-test-that-fails/Tests/LinuxMain.swift similarity index 100% rename from test/single-test-that-fails/Tests/LinuxMain.swift rename to tests/single-test-that-fails/Tests/LinuxMain.swift diff --git a/test/single-test-that-fails/Tests/SingleThatFailsTests/SingleThatFailsTests.swift b/tests/single-test-that-fails/Tests/SingleThatFailsTests/SingleThatFailsTests.swift similarity index 100% rename from test/single-test-that-fails/Tests/SingleThatFailsTests/SingleThatFailsTests.swift rename to tests/single-test-that-fails/Tests/SingleThatFailsTests/SingleThatFailsTests.swift diff --git a/test/single-test-that-fails/Tests/SingleThatFailsTests/XCTestManifests.swift b/tests/single-test-that-fails/Tests/SingleThatFailsTests/XCTestManifests.swift similarity index 100% rename from test/single-test-that-fails/Tests/SingleThatFailsTests/XCTestManifests.swift rename to tests/single-test-that-fails/Tests/SingleThatFailsTests/XCTestManifests.swift diff --git a/test/single-test-that-fails/results.json b/tests/single-test-that-fails/expected_results.json similarity index 100% rename from test/single-test-that-fails/results.json rename to tests/single-test-that-fails/expected_results.json diff --git a/test/single-test-that-passes/.gitignore b/tests/single-test-that-passes/.gitignore similarity index 100% rename from test/single-test-that-passes/.gitignore rename to tests/single-test-that-passes/.gitignore diff --git a/test/single-test-that-passes/Package.swift b/tests/single-test-that-passes/Package.swift similarity index 100% rename from test/single-test-that-passes/Package.swift rename to tests/single-test-that-passes/Package.swift diff --git a/test/single-test-that-passes/Sources/SingleThatPasses/SingleThatPasses.swift b/tests/single-test-that-passes/Sources/SingleThatPasses/SingleThatPasses.swift similarity index 100% rename from test/single-test-that-passes/Sources/SingleThatPasses/SingleThatPasses.swift rename to tests/single-test-that-passes/Sources/SingleThatPasses/SingleThatPasses.swift diff --git a/test/single-test-that-passes/Tests/LinuxMain.swift b/tests/single-test-that-passes/Tests/LinuxMain.swift similarity index 100% rename from test/single-test-that-passes/Tests/LinuxMain.swift rename to tests/single-test-that-passes/Tests/LinuxMain.swift diff --git a/test/single-test-that-passes/Tests/SingleThatPassesTests/SingleThatPassesTests.swift b/tests/single-test-that-passes/Tests/SingleThatPassesTests/SingleThatPassesTests.swift similarity index 100% rename from test/single-test-that-passes/Tests/SingleThatPassesTests/SingleThatPassesTests.swift rename to tests/single-test-that-passes/Tests/SingleThatPassesTests/SingleThatPassesTests.swift diff --git a/test/single-test-that-passes/Tests/SingleThatPassesTests/XCTestManifests.swift b/tests/single-test-that-passes/Tests/SingleThatPassesTests/XCTestManifests.swift similarity index 100% rename from test/single-test-that-passes/Tests/SingleThatPassesTests/XCTestManifests.swift rename to tests/single-test-that-passes/Tests/SingleThatPassesTests/XCTestManifests.swift diff --git a/tests/single-test-that-passes/expected_results.json b/tests/single-test-that-passes/expected_results.json new file mode 100644 index 0000000..4472e04 --- /dev/null +++ b/tests/single-test-that-passes/expected_results.json @@ -0,0 +1,9 @@ +{ + "status" : "pass", + "tests" : [ + { + "name" : "SingleThatPassesTests.testAdd", + "status" : "pass" + } + ] +} \ No newline at end of file diff --git a/test/single-test-with-exception/.gitignore b/tests/single-test-with-exception/.gitignore similarity index 100% rename from test/single-test-with-exception/.gitignore rename to tests/single-test-with-exception/.gitignore diff --git a/test/single-test-with-exception/Package.swift b/tests/single-test-with-exception/Package.swift similarity index 100% rename from test/single-test-with-exception/Package.swift rename to tests/single-test-with-exception/Package.swift diff --git a/test/single-test-with-exception/Sources/SingleWithException/SingleWithException.swift b/tests/single-test-with-exception/Sources/SingleWithException/SingleWithException.swift similarity index 100% rename from test/single-test-with-exception/Sources/SingleWithException/SingleWithException.swift rename to tests/single-test-with-exception/Sources/SingleWithException/SingleWithException.swift diff --git a/test/single-test-with-exception/Tests/LinuxMain.swift b/tests/single-test-with-exception/Tests/LinuxMain.swift similarity index 100% rename from test/single-test-with-exception/Tests/LinuxMain.swift rename to tests/single-test-with-exception/Tests/LinuxMain.swift diff --git a/test/single-test-with-exception/Tests/SingleWithExceptionTests/SingleWithExceptionTests.swift b/tests/single-test-with-exception/Tests/SingleWithExceptionTests/SingleWithExceptionTests.swift similarity index 100% rename from test/single-test-with-exception/Tests/SingleWithExceptionTests/SingleWithExceptionTests.swift rename to tests/single-test-with-exception/Tests/SingleWithExceptionTests/SingleWithExceptionTests.swift diff --git a/test/single-test-with-exception/Tests/SingleWithExceptionTests/XCTestManifests.swift b/tests/single-test-with-exception/Tests/SingleWithExceptionTests/XCTestManifests.swift similarity index 100% rename from test/single-test-with-exception/Tests/SingleWithExceptionTests/XCTestManifests.swift rename to tests/single-test-with-exception/Tests/SingleWithExceptionTests/XCTestManifests.swift diff --git a/test/single-test-with-exception/results.json b/tests/single-test-with-exception/expected_results.json similarity index 100% rename from test/single-test-with-exception/results.json rename to tests/single-test-with-exception/expected_results.json From 906ee0dc98756c0fc1fdbd0d36b8d9cd59f1979d Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 16 Apr 2021 13:21:53 +0200 Subject: [PATCH 05/13] Remove dockerTest directory --- .../contents.xcworkspacedata | 7 --- .../UserInterfaceState.xcuserstate | Bin 10427 -> 0 bytes .../xcschemes/xcschememanagement.plist | 14 ----- dockerTest/compile-error/Package.swift | 28 ---------- .../Sources/CompileError/CompileError.swift | 3 - .../CompileErrorTests/CompileErrorTests.swift | 13 ----- .../CompileErrorTests/XCTestManifests.swift | 9 --- .../compile-error/Tests/LinuxMain.swift | 7 --- .../compile-error/expected_results.json | 7 --- dockerTest/compile-error/results.json | 7 --- .../contents.xcworkspacedata | 7 --- .../UserInterfaceState.xcuserstate | Bin 13274 -> 0 bytes .../xcschemes/xcschememanagement.plist | 14 ----- .../multiple-tests-all-pass/Package.swift | 28 ---------- .../MultipleAllPass/MultipleAllPass.swift | 11 ---- .../Tests/LinuxMain.swift | 7 --- .../MultipleAllPassTests.swift | 43 --------------- .../XCTestManifests.swift | 10 ---- .../expected_results.json | 29 ---------- .../multiple-tests-all-pass/results.json | 29 ---------- .../multiple-tests-multiple-fails/.gitignore | 5 -- .../contents.xcworkspacedata | 7 --- .../Package.swift | 28 ---------- .../MultipleMultipleFails.swift | 11 ---- .../Tests/LinuxMain.swift | 6 -- .../MultipleMultipleFailsTests.swift | 23 -------- .../XCTestManifests.swift | 9 --- .../expected_results.json | 19 ------- .../results.json | 19 ------- .../multiple-tests-single-fail/.gitignore | 5 -- .../contents.xcworkspacedata | 7 --- .../multiple-tests-single-fail/Package.swift | 28 ---------- .../MultipleSingleFail.swift | 30 ---------- .../Tests/LinuxMain.swift | 6 -- .../MultipleSingleFailTests.swift | 52 ------------------ .../XCTestManifests.swift | 10 ---- .../expected_results.json | 37 ------------- .../multiple-tests-single-fail/results.json | 37 ------------- .../multiple-tests-with-exception/.gitignore | 5 -- .../contents.xcworkspacedata | 7 --- .../Package.swift | 28 ---------- .../MultipleWithException.swift | 27 --------- .../Tests/LinuxMain.swift | 6 -- .../MultipleWithExceptionTests.swift | 28 ---------- .../XCTestManifests.swift | 9 --- .../expected_results.json | 22 -------- .../results.json | 22 -------- dockerTest/output/expected_results.json | 37 ------------- dockerTest/output/results.json | 37 ------------- dockerTest/single-test-that-fails/.gitignore | 5 -- .../contents.xcworkspacedata | 7 --- .../single-test-that-fails/Package.swift | 28 ---------- .../SingleThatFails/SingleThatFails.swift | 7 --- .../Tests/LinuxMain.swift | 6 -- .../SingleThatFailsTests.swift | 13 ----- .../XCTestManifests.swift | 9 --- .../expected_results.json | 10 ---- .../single-test-that-fails/results.json | 10 ---- dockerTest/single-test-that-passes/.gitignore | 5 -- .../contents.xcworkspacedata | 7 --- .../single-test-that-passes/Package.swift | 28 ---------- .../SingleThatPasses/SingleThatPasses.swift | 7 --- .../Tests/LinuxMain.swift | 6 -- .../SingleThatPassesTests.swift | 13 ----- .../XCTestManifests.swift | 9 --- .../expected_results.json | 9 --- .../single-test-that-passes/results.json | 9 --- .../single-test-with-exception/.gitignore | 5 -- .../contents.xcworkspacedata | 7 --- .../single-test-with-exception/Package.swift | 28 ---------- .../SingleWithException.swift | 7 --- .../Tests/LinuxMain.swift | 6 -- .../SingleWithExceptionTests.swift | 13 ----- .../XCTestManifests.swift | 9 --- .../expected_results.json | 10 ---- .../single-test-with-exception/results.json | 10 ---- 76 files changed, 1123 deletions(-) delete mode 100644 dockerTest/compile-error/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 dockerTest/compile-error/.swiftpm/xcode/package.xcworkspace/xcuserdata/wdn.xcuserdatad/UserInterfaceState.xcuserstate delete mode 100644 dockerTest/compile-error/.swiftpm/xcode/xcuserdata/wdn.xcuserdatad/xcschemes/xcschememanagement.plist delete mode 100644 dockerTest/compile-error/Package.swift delete mode 100644 dockerTest/compile-error/Sources/CompileError/CompileError.swift delete mode 100644 dockerTest/compile-error/Tests/CompileErrorTests/CompileErrorTests.swift delete mode 100644 dockerTest/compile-error/Tests/CompileErrorTests/XCTestManifests.swift delete mode 100644 dockerTest/compile-error/Tests/LinuxMain.swift delete mode 100644 dockerTest/compile-error/expected_results.json delete mode 100644 dockerTest/compile-error/results.json delete mode 100644 dockerTest/multiple-tests-all-pass/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 dockerTest/multiple-tests-all-pass/.swiftpm/xcode/package.xcworkspace/xcuserdata/wdn.xcuserdatad/UserInterfaceState.xcuserstate delete mode 100644 dockerTest/multiple-tests-all-pass/.swiftpm/xcode/xcuserdata/wdn.xcuserdatad/xcschemes/xcschememanagement.plist delete mode 100644 dockerTest/multiple-tests-all-pass/Package.swift delete mode 100644 dockerTest/multiple-tests-all-pass/Sources/MultipleAllPass/MultipleAllPass.swift delete mode 100644 dockerTest/multiple-tests-all-pass/Tests/LinuxMain.swift delete mode 100644 dockerTest/multiple-tests-all-pass/Tests/MultipleAllPassTests/MultipleAllPassTests.swift delete mode 100644 dockerTest/multiple-tests-all-pass/Tests/MultipleAllPassTests/XCTestManifests.swift delete mode 100644 dockerTest/multiple-tests-all-pass/expected_results.json delete mode 100644 dockerTest/multiple-tests-all-pass/results.json delete mode 100644 dockerTest/multiple-tests-multiple-fails/.gitignore delete mode 100644 dockerTest/multiple-tests-multiple-fails/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 dockerTest/multiple-tests-multiple-fails/Package.swift delete mode 100644 dockerTest/multiple-tests-multiple-fails/Sources/MultipleMultipleFails/MultipleMultipleFails.swift delete mode 100644 dockerTest/multiple-tests-multiple-fails/Tests/LinuxMain.swift delete mode 100644 dockerTest/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/MultipleMultipleFailsTests.swift delete mode 100644 dockerTest/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/XCTestManifests.swift delete mode 100644 dockerTest/multiple-tests-multiple-fails/expected_results.json delete mode 100644 dockerTest/multiple-tests-multiple-fails/results.json delete mode 100644 dockerTest/multiple-tests-single-fail/.gitignore delete mode 100644 dockerTest/multiple-tests-single-fail/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 dockerTest/multiple-tests-single-fail/Package.swift delete mode 100644 dockerTest/multiple-tests-single-fail/Sources/MultipleSingleFail/MultipleSingleFail.swift delete mode 100644 dockerTest/multiple-tests-single-fail/Tests/LinuxMain.swift delete mode 100644 dockerTest/multiple-tests-single-fail/Tests/MultipleSingleFailTests/MultipleSingleFailTests.swift delete mode 100644 dockerTest/multiple-tests-single-fail/Tests/MultipleSingleFailTests/XCTestManifests.swift delete mode 100644 dockerTest/multiple-tests-single-fail/expected_results.json delete mode 100644 dockerTest/multiple-tests-single-fail/results.json delete mode 100644 dockerTest/multiple-tests-with-exception/.gitignore delete mode 100644 dockerTest/multiple-tests-with-exception/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 dockerTest/multiple-tests-with-exception/Package.swift delete mode 100644 dockerTest/multiple-tests-with-exception/Sources/MultipleWithException/MultipleWithException.swift delete mode 100644 dockerTest/multiple-tests-with-exception/Tests/LinuxMain.swift delete mode 100644 dockerTest/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/MultipleWithExceptionTests.swift delete mode 100644 dockerTest/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/XCTestManifests.swift delete mode 100644 dockerTest/multiple-tests-with-exception/expected_results.json delete mode 100644 dockerTest/multiple-tests-with-exception/results.json delete mode 100644 dockerTest/output/expected_results.json delete mode 100644 dockerTest/output/results.json delete mode 100644 dockerTest/single-test-that-fails/.gitignore delete mode 100644 dockerTest/single-test-that-fails/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 dockerTest/single-test-that-fails/Package.swift delete mode 100644 dockerTest/single-test-that-fails/Sources/SingleThatFails/SingleThatFails.swift delete mode 100644 dockerTest/single-test-that-fails/Tests/LinuxMain.swift delete mode 100644 dockerTest/single-test-that-fails/Tests/SingleThatFailsTests/SingleThatFailsTests.swift delete mode 100644 dockerTest/single-test-that-fails/Tests/SingleThatFailsTests/XCTestManifests.swift delete mode 100644 dockerTest/single-test-that-fails/expected_results.json delete mode 100644 dockerTest/single-test-that-fails/results.json delete mode 100644 dockerTest/single-test-that-passes/.gitignore delete mode 100644 dockerTest/single-test-that-passes/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 dockerTest/single-test-that-passes/Package.swift delete mode 100644 dockerTest/single-test-that-passes/Sources/SingleThatPasses/SingleThatPasses.swift delete mode 100644 dockerTest/single-test-that-passes/Tests/LinuxMain.swift delete mode 100644 dockerTest/single-test-that-passes/Tests/SingleThatPassesTests/SingleThatPassesTests.swift delete mode 100644 dockerTest/single-test-that-passes/Tests/SingleThatPassesTests/XCTestManifests.swift delete mode 100644 dockerTest/single-test-that-passes/expected_results.json delete mode 100644 dockerTest/single-test-that-passes/results.json delete mode 100644 dockerTest/single-test-with-exception/.gitignore delete mode 100644 dockerTest/single-test-with-exception/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 dockerTest/single-test-with-exception/Package.swift delete mode 100644 dockerTest/single-test-with-exception/Sources/SingleWithException/SingleWithException.swift delete mode 100644 dockerTest/single-test-with-exception/Tests/LinuxMain.swift delete mode 100644 dockerTest/single-test-with-exception/Tests/SingleWithExceptionTests/SingleWithExceptionTests.swift delete mode 100644 dockerTest/single-test-with-exception/Tests/SingleWithExceptionTests/XCTestManifests.swift delete mode 100644 dockerTest/single-test-with-exception/expected_results.json delete mode 100644 dockerTest/single-test-with-exception/results.json diff --git a/dockerTest/compile-error/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/dockerTest/compile-error/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/dockerTest/compile-error/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/dockerTest/compile-error/.swiftpm/xcode/package.xcworkspace/xcuserdata/wdn.xcuserdatad/UserInterfaceState.xcuserstate b/dockerTest/compile-error/.swiftpm/xcode/package.xcworkspace/xcuserdata/wdn.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index efe15df990cf714ac0790ebd8de89a810c0c6227..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10427 zcmeG?X?PUHwpG=c%uHr7)03IZ4kQrv>|_NYWQ9OBGD+BplcbY0OlHC?2@$~(5fvBI z>xOcbBr1xChzf3qUPW<11VqFQMMV)2TzFphce*=0Nd&L&d*A!{nC~OiU8hc+I{P`* z4ecI25KK*d8(~BcgCdXuMIt4Nnv>AM`2)PqJ2%1YZ*1k^sU{)lYoC+gYgo)R1_Ln&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Wt z%dIP|)Vj)gt@TFh&DLA2w^@6wo2^@{TdmuyJFQPypRw+;?zZl=9=3j9{mA;U^|(4f&Ey|{~>1_s^(dM*`u#L2hwvDxox8>OKZ27iATd}RoR$;5MRoiN8 z3vG*SOKkyL$ku6FX`{APw$-*Zwsp1*wqDzPwoSGNZQE?yZI9b_*q*e#ZhPDIiS2~# zOWRkrGq!JS-`mdF)%HYtu6??FhP}*QVXv}R+iUD~cFx{n=j}`EZFZl1sXbs1*;m_p z?N8f3a;O~+#|($t;dLx^1RNcXWsXZ6*E!ZZHaPBfbUS(-_c^vZb~|2jyzJQP*yq^q zIN&(sIO=%M@rC1S$2X3%j&qJ59X~mKaq68;=P+lyGr>8^ImVgk%yCY1PIl%w^PLsW zSx%R;&N;_9&)MQ!?DRN&&ZW+PlRB?(Ug^Brxz>4|^M2=J&K=GtozFOTId?nXaPD)y z>3qxiq4Q(sap&jGFPtZbL=Q0!u?(>dNgpz4NMZcP@yFv&#s4(CFOU%;4VW2&A{!d6 F{BI{{ - - - - SchemeUserState - - CompileError.xcscheme_^#shared#^_ - - orderHint - 0 - - - - diff --git a/dockerTest/compile-error/Package.swift b/dockerTest/compile-error/Package.swift deleted file mode 100644 index b0183f0..0000000 --- a/dockerTest/compile-error/Package.swift +++ /dev/null @@ -1,28 +0,0 @@ -// swift-tools-version:5.2 -// The swift-tools-version declares the minimum version of Swift required to build this package. - -import PackageDescription - -let package = Package( - name: "CompileError", - products: [ - // Products define the executables and libraries produced by a package, and make them visible to other packages. - .library( - name: "CompileError", - targets: ["CompileError"]), - ], - dependencies: [ - // Dependencies declare other packages that this package depends on. - // .package(url: /* package url */, from: "1.0.0"), - ], - targets: [ - // Targets are the basic building blocks of a package. A target can define a module or a test suite. - // Targets can depend on other targets in this package, and on products in packages which this package depends on. - .target( - name: "CompileError", - dependencies: []), - .testTarget( - name: "CompileErrorTests", - dependencies: ["CompileError"]), - ] -) diff --git a/dockerTest/compile-error/Sources/CompileError/CompileError.swift b/dockerTest/compile-error/Sources/CompileError/CompileError.swift deleted file mode 100644 index eb92bd3..0000000 --- a/dockerTest/compile-error/Sources/CompileError/CompileError.swift +++ /dev/null @@ -1,3 +0,0 @@ -func sum(_ x: Int, _ y: Int) { - return x + y -} diff --git a/dockerTest/compile-error/Tests/CompileErrorTests/CompileErrorTests.swift b/dockerTest/compile-error/Tests/CompileErrorTests/CompileErrorTests.swift deleted file mode 100644 index 9bee869..0000000 --- a/dockerTest/compile-error/Tests/CompileErrorTests/CompileErrorTests.swift +++ /dev/null @@ -1,13 +0,0 @@ -import XCTest - -@testable import CompileError - -final class CompileErrorTests: XCTestCase { - func testAdd() { - XCTAssertEqual(sum(2, 3), 5) - } - - static var allTests = [ - ("testAdd", testAdd) - ] -} diff --git a/dockerTest/compile-error/Tests/CompileErrorTests/XCTestManifests.swift b/dockerTest/compile-error/Tests/CompileErrorTests/XCTestManifests.swift deleted file mode 100644 index 9809232..0000000 --- a/dockerTest/compile-error/Tests/CompileErrorTests/XCTestManifests.swift +++ /dev/null @@ -1,9 +0,0 @@ -import XCTest - -#if !canImport(ObjectiveC) -public func allTests() -> [XCTestCaseEntry] { - return [ - testCase(CompileErrorTests.allTests), - ] -} -#endif diff --git a/dockerTest/compile-error/Tests/LinuxMain.swift b/dockerTest/compile-error/Tests/LinuxMain.swift deleted file mode 100644 index 106c822..0000000 --- a/dockerTest/compile-error/Tests/LinuxMain.swift +++ /dev/null @@ -1,7 +0,0 @@ -import XCTest - -import CompileErrorTests - -var tests = [XCTestCaseEntry]() -tests += CompileErrorTests.allTests() -XCTMain(tests) diff --git a/dockerTest/compile-error/expected_results.json b/dockerTest/compile-error/expected_results.json deleted file mode 100644 index 7223336..0000000 --- a/dockerTest/compile-error/expected_results.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "message" : "\/solution\/compile-error\/Sources\/CompileError\/CompileError.swift:2:12: error: unexpected non-void return value in void function\n return x + y\n ^\n", - "status" : "error", - "tests" : [ - - ] -} \ No newline at end of file diff --git a/dockerTest/compile-error/results.json b/dockerTest/compile-error/results.json deleted file mode 100644 index 7223336..0000000 --- a/dockerTest/compile-error/results.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "message" : "\/solution\/compile-error\/Sources\/CompileError\/CompileError.swift:2:12: error: unexpected non-void return value in void function\n return x + y\n ^\n", - "status" : "error", - "tests" : [ - - ] -} \ No newline at end of file diff --git a/dockerTest/multiple-tests-all-pass/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/dockerTest/multiple-tests-all-pass/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/dockerTest/multiple-tests-all-pass/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/dockerTest/multiple-tests-all-pass/.swiftpm/xcode/package.xcworkspace/xcuserdata/wdn.xcuserdatad/UserInterfaceState.xcuserstate b/dockerTest/multiple-tests-all-pass/.swiftpm/xcode/package.xcworkspace/xcuserdata/wdn.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index 0a6e8e782c8674d9abfb6335a2e199f1366c9183..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13274 zcmeHtcYKpo-}f0wGn%AVMiWLynkG%t&`DcbK&1<)KpCZlvSQk%CD0}{Nof(#6BoD; zl_AP%S%TsoH~|MB+}tPyRMgvnBF-BpBBJl_%GIPTpwIhxKhN`g-al^gp~-cf^*iT$ zf9rcrZA+8eAIQo&iZCLGA`ud!C?rAhspfeupWp5E)R>*Vy4h}cnrseuTc(=5wR2o` z0lx;}TQ@kkn2O3VuKBL|qV7s>BPo(qRR){^7sHRK@gNk96v%-3q5jB@2BCD6fih7R z%0@Y8Fe*W%s0@unqtIwnjvCQyuW#}GsFS;LfqK#-1+KjfLN6-%RBzhLTfL=#$po8db^f)?#j-wOkee?nP7=40H zqA$@`=sWZS`UNA5F~Jl|a5Nr>ldu)r@gSUqvvD5I$3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Zp*Rd+VX7$wo$gp zwi?@X+bmn1&1Gw}xoz#XTWm{gci5KN?y=ox>##j#+imNz9k;z_`@r^*?Ni(5w$rw+ zZQrHgG*MbqnlvpsO_ioj)1?{G`lk&{v!rFEm8Z=}^QSFITbuSw+CS4yqvQM^G+a306?6vl}_JDn!z1@DDePK6oPK0k! LLSN$Ce*OOe9Inmm diff --git a/dockerTest/multiple-tests-all-pass/.swiftpm/xcode/xcuserdata/wdn.xcuserdatad/xcschemes/xcschememanagement.plist b/dockerTest/multiple-tests-all-pass/.swiftpm/xcode/xcuserdata/wdn.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index dc01e4e..0000000 --- a/dockerTest/multiple-tests-all-pass/.swiftpm/xcode/xcuserdata/wdn.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,14 +0,0 @@ - - - - - SchemeUserState - - MultipleAllPass.xcscheme_^#shared#^_ - - orderHint - 0 - - - - diff --git a/dockerTest/multiple-tests-all-pass/Package.swift b/dockerTest/multiple-tests-all-pass/Package.swift deleted file mode 100644 index 8fdada5..0000000 --- a/dockerTest/multiple-tests-all-pass/Package.swift +++ /dev/null @@ -1,28 +0,0 @@ -// swift-tools-version:5.2 -// The swift-tools-version declares the minimum version of Swift required to build this package. - -import PackageDescription - -let package = Package( - name: "MultipleAllPass", - products: [ - // Products define the executables and libraries produced by a package, and make them visible to other packages. - .library( - name: "MultipleAllPass", - targets: ["MultipleAllPass"]), - ], - dependencies: [ - // Dependencies declare other packages that this package depends on. - // .package(url: /* package url */, from: "1.0.0"), - ], - targets: [ - // Targets are the basic building blocks of a package. A target can define a module or a test suite. - // Targets can depend on other targets in this package, and on products in packages which this package depends on. - .target( - name: "MultipleAllPass", - dependencies: []), - .testTarget( - name: "MultipleAllPassTests", - dependencies: ["MultipleAllPass"]), - ] -) diff --git a/dockerTest/multiple-tests-all-pass/Sources/MultipleAllPass/MultipleAllPass.swift b/dockerTest/multiple-tests-all-pass/Sources/MultipleAllPass/MultipleAllPass.swift deleted file mode 100644 index ffe4949..0000000 --- a/dockerTest/multiple-tests-all-pass/Sources/MultipleAllPass/MultipleAllPass.swift +++ /dev/null @@ -1,11 +0,0 @@ -func sum(_ x: Int, _ y: Int) -> Int { - return x + y -} - -func sub(_ x: Int, _ y: Int) -> Int { - return x - y -} - -func mul(_ x: Int, _ y: Int) -> Int { - return x * y -} diff --git a/dockerTest/multiple-tests-all-pass/Tests/LinuxMain.swift b/dockerTest/multiple-tests-all-pass/Tests/LinuxMain.swift deleted file mode 100644 index 00e0fb4..0000000 --- a/dockerTest/multiple-tests-all-pass/Tests/LinuxMain.swift +++ /dev/null @@ -1,7 +0,0 @@ -import XCTest - -import MultipleAllPassTests - -var tests = [XCTestCaseEntry]() -tests += MultipleAllPassTests.allTests() -XCTMain(tests) diff --git a/dockerTest/multiple-tests-all-pass/Tests/MultipleAllPassTests/MultipleAllPassTests.swift b/dockerTest/multiple-tests-all-pass/Tests/MultipleAllPassTests/MultipleAllPassTests.swift deleted file mode 100644 index ef57fa5..0000000 --- a/dockerTest/multiple-tests-all-pass/Tests/MultipleAllPassTests/MultipleAllPassTests.swift +++ /dev/null @@ -1,43 +0,0 @@ -import XCTest - -@testable import MultipleAllPass - -final class MultipleAllPassTests: XCTestCase { - func testAdd() { - XCTAssertEqual(sum(2, 3), 5, "2+3 should equal 5") - } - - func testSub() { - XCTAssertEqual(sub(2, 3), -1) - } - - func testMul() { - XCTAssertEqual(mul(2, 3), 6) - } - - static var allTests = [ - ("testAdd", testAdd), - ("testSub", testSub), - ("testMul", testMul), - ] -} - -final class SecondSuite: XCTestCase { - func testAdd() { - XCTAssertEqual(sum(12, 13), 25, "2+3 should equal 5") - } - - func testSub() { - XCTAssertEqual(sub(12, 13), -1) - } - - func testMul() { - XCTAssertEqual(mul(12, 13), 156) - } - - static var allTests = [ - ("testAdd", testAdd), - ("testSub", testSub), - ("testMul", testMul), - ] -} diff --git a/dockerTest/multiple-tests-all-pass/Tests/MultipleAllPassTests/XCTestManifests.swift b/dockerTest/multiple-tests-all-pass/Tests/MultipleAllPassTests/XCTestManifests.swift deleted file mode 100644 index e83b6c1..0000000 --- a/dockerTest/multiple-tests-all-pass/Tests/MultipleAllPassTests/XCTestManifests.swift +++ /dev/null @@ -1,10 +0,0 @@ -import XCTest - -#if !canImport(ObjectiveC) -public func allTests() -> [XCTestCaseEntry] { - return [ - testCase(MultipleAllPassTests.allTests), - testCase(SecondSuite.allTests), - ] -} -#endif diff --git a/dockerTest/multiple-tests-all-pass/expected_results.json b/dockerTest/multiple-tests-all-pass/expected_results.json deleted file mode 100644 index d814f79..0000000 --- a/dockerTest/multiple-tests-all-pass/expected_results.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "status" : "pass", - "tests" : [ - { - "name" : "MultipleAllPassTests.testAdd", - "status" : "pass" - }, - { - "name" : "MultipleAllPassTests.testSub", - "status" : "pass" - }, - { - "name" : "MultipleAllPassTests.testMul", - "status" : "pass" - }, - { - "name" : "SecondSuite.testAdd", - "status" : "pass" - }, - { - "name" : "SecondSuite.testSub", - "status" : "pass" - }, - { - "name" : "SecondSuite.testMul", - "status" : "pass" - } - ] -} \ No newline at end of file diff --git a/dockerTest/multiple-tests-all-pass/results.json b/dockerTest/multiple-tests-all-pass/results.json deleted file mode 100644 index d814f79..0000000 --- a/dockerTest/multiple-tests-all-pass/results.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "status" : "pass", - "tests" : [ - { - "name" : "MultipleAllPassTests.testAdd", - "status" : "pass" - }, - { - "name" : "MultipleAllPassTests.testSub", - "status" : "pass" - }, - { - "name" : "MultipleAllPassTests.testMul", - "status" : "pass" - }, - { - "name" : "SecondSuite.testAdd", - "status" : "pass" - }, - { - "name" : "SecondSuite.testSub", - "status" : "pass" - }, - { - "name" : "SecondSuite.testMul", - "status" : "pass" - } - ] -} \ No newline at end of file diff --git a/dockerTest/multiple-tests-multiple-fails/.gitignore b/dockerTest/multiple-tests-multiple-fails/.gitignore deleted file mode 100644 index 95c4320..0000000 --- a/dockerTest/multiple-tests-multiple-fails/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -.DS_Store -/.build -/Packages -/*.xcodeproj -xcuserdata/ diff --git a/dockerTest/multiple-tests-multiple-fails/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/dockerTest/multiple-tests-multiple-fails/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/dockerTest/multiple-tests-multiple-fails/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/dockerTest/multiple-tests-multiple-fails/Package.swift b/dockerTest/multiple-tests-multiple-fails/Package.swift deleted file mode 100644 index c1fe92b..0000000 --- a/dockerTest/multiple-tests-multiple-fails/Package.swift +++ /dev/null @@ -1,28 +0,0 @@ -// swift-tools-version:5.2 -// The swift-tools-version declares the minimum version of Swift required to build this package. - -import PackageDescription - -let package = Package( - name: "MultipleMultipleFails", - products: [ - // Products define the executables and libraries produced by a package, and make them visible to other packages. - .library( - name: "MultipleMultipleFails", - targets: ["MultipleMultipleFails"]), - ], - dependencies: [ - // Dependencies declare other packages that this package depends on. - // .package(url: /* package url */, from: "1.0.0"), - ], - targets: [ - // Targets are the basic building blocks of a package. A target can define a module or a test suite. - // Targets can depend on other targets in this package, and on products in packages which this package depends on. - .target( - name: "MultipleMultipleFails", - dependencies: []), - .testTarget( - name: "MultipleMultipleFailsTests", - dependencies: ["MultipleMultipleFails"]), - ] -) diff --git a/dockerTest/multiple-tests-multiple-fails/Sources/MultipleMultipleFails/MultipleMultipleFails.swift b/dockerTest/multiple-tests-multiple-fails/Sources/MultipleMultipleFails/MultipleMultipleFails.swift deleted file mode 100644 index eda1f40..0000000 --- a/dockerTest/multiple-tests-multiple-fails/Sources/MultipleMultipleFails/MultipleMultipleFails.swift +++ /dev/null @@ -1,11 +0,0 @@ -func sum(_ x: Int, _ y: Int) -> Int { - return x - y -} - -func sub(_ x: Int, _ y: Int) -> Int { - return x + y -} - -func mul(_ x: Int, _ y: Int) -> Int { - return x * y -} diff --git a/dockerTest/multiple-tests-multiple-fails/Tests/LinuxMain.swift b/dockerTest/multiple-tests-multiple-fails/Tests/LinuxMain.swift deleted file mode 100644 index 73e684b..0000000 --- a/dockerTest/multiple-tests-multiple-fails/Tests/LinuxMain.swift +++ /dev/null @@ -1,6 +0,0 @@ -import MultipleMultipleFailsTests -import XCTest - -var tests = [XCTestCaseEntry]() -tests += MultipleMultipleFailsTests.allTests() -XCTMain(tests) diff --git a/dockerTest/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/MultipleMultipleFailsTests.swift b/dockerTest/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/MultipleMultipleFailsTests.swift deleted file mode 100644 index a737f27..0000000 --- a/dockerTest/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/MultipleMultipleFailsTests.swift +++ /dev/null @@ -1,23 +0,0 @@ -import XCTest - -@testable import MultipleMultipleFails - -final class MultipleMultipleFailsTests: XCTestCase { - func testAdd() { - XCTAssertEqual(sum(2, 3), 5, "2+3 should equal 5") - } - - func testSub() { - XCTAssertEqual(sub(2, 3), -1) - } - - func testMul() { - XCTAssertEqual(mul(2, 3), 6) - } - - static var allTests = [ - ("testAdd", testAdd), - ("testSub", testSub), - ("testMul", testMul), - ] -} diff --git a/dockerTest/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/XCTestManifests.swift b/dockerTest/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/XCTestManifests.swift deleted file mode 100644 index 1bde348..0000000 --- a/dockerTest/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/XCTestManifests.swift +++ /dev/null @@ -1,9 +0,0 @@ -import XCTest - -#if !canImport(ObjectiveC) - public func allTests() -> [XCTestCaseEntry] { - return [ - testCase(MultipleMultipleFailsTests.allTests) - ] - } -#endif diff --git a/dockerTest/multiple-tests-multiple-fails/expected_results.json b/dockerTest/multiple-tests-multiple-fails/expected_results.json deleted file mode 100644 index eb3c60a..0000000 --- a/dockerTest/multiple-tests-multiple-fails/expected_results.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "status" : "fail", - "tests" : [ - { - "message" : "\/solution\/multiple-tests-multiple-fails\/Tests\/MultipleMultipleFailsTests\/MultipleMultipleFailsTests.swift:7: error: MultipleMultipleFailsTests.testAdd : XCTAssertEqual failed: (\"-1\") is not equal to (\"5\") - 2+3 should equal 5", - "name" : "MultipleMultipleFailsTests.testAdd", - "status" : "fail" - }, - { - "message" : "\/solution\/multiple-tests-multiple-fails\/Tests\/MultipleMultipleFailsTests\/MultipleMultipleFailsTests.swift:11: error: MultipleMultipleFailsTests.testSub : XCTAssertEqual failed: (\"5\") is not equal to (\"-1\") - ", - "name" : "MultipleMultipleFailsTests.testSub", - "status" : "fail" - }, - { - "name" : "MultipleMultipleFailsTests.testMul", - "status" : "pass" - } - ] -} \ No newline at end of file diff --git a/dockerTest/multiple-tests-multiple-fails/results.json b/dockerTest/multiple-tests-multiple-fails/results.json deleted file mode 100644 index eb3c60a..0000000 --- a/dockerTest/multiple-tests-multiple-fails/results.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "status" : "fail", - "tests" : [ - { - "message" : "\/solution\/multiple-tests-multiple-fails\/Tests\/MultipleMultipleFailsTests\/MultipleMultipleFailsTests.swift:7: error: MultipleMultipleFailsTests.testAdd : XCTAssertEqual failed: (\"-1\") is not equal to (\"5\") - 2+3 should equal 5", - "name" : "MultipleMultipleFailsTests.testAdd", - "status" : "fail" - }, - { - "message" : "\/solution\/multiple-tests-multiple-fails\/Tests\/MultipleMultipleFailsTests\/MultipleMultipleFailsTests.swift:11: error: MultipleMultipleFailsTests.testSub : XCTAssertEqual failed: (\"5\") is not equal to (\"-1\") - ", - "name" : "MultipleMultipleFailsTests.testSub", - "status" : "fail" - }, - { - "name" : "MultipleMultipleFailsTests.testMul", - "status" : "pass" - } - ] -} \ No newline at end of file diff --git a/dockerTest/multiple-tests-single-fail/.gitignore b/dockerTest/multiple-tests-single-fail/.gitignore deleted file mode 100644 index 95c4320..0000000 --- a/dockerTest/multiple-tests-single-fail/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -.DS_Store -/.build -/Packages -/*.xcodeproj -xcuserdata/ diff --git a/dockerTest/multiple-tests-single-fail/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/dockerTest/multiple-tests-single-fail/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/dockerTest/multiple-tests-single-fail/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/dockerTest/multiple-tests-single-fail/Package.swift b/dockerTest/multiple-tests-single-fail/Package.swift deleted file mode 100644 index e310a14..0000000 --- a/dockerTest/multiple-tests-single-fail/Package.swift +++ /dev/null @@ -1,28 +0,0 @@ -// swift-tools-version:5.2 -// The swift-tools-version declares the minimum version of Swift required to build this package. - -import PackageDescription - -let package = Package( - name: "MultipleSingleFail", - products: [ - // Products define the executables and libraries produced by a package, and make them visible to other packages. - .library( - name: "MultipleSingleFail", - targets: ["MultipleSingleFail"]), - ], - dependencies: [ - // Dependencies declare other packages that this package depends on. - // .package(url: /* package url */, from: "1.0.0"), - ], - targets: [ - // Targets are the basic building blocks of a package. A target can define a module or a test suite. - // Targets can depend on other targets in this package, and on products in packages which this package depends on. - .target( - name: "MultipleSingleFail", - dependencies: []), - .testTarget( - name: "MultipleSingleFailTests", - dependencies: ["MultipleSingleFail"]), - ] -) diff --git a/dockerTest/multiple-tests-single-fail/Sources/MultipleSingleFail/MultipleSingleFail.swift b/dockerTest/multiple-tests-single-fail/Sources/MultipleSingleFail/MultipleSingleFail.swift deleted file mode 100644 index ee6a85b..0000000 --- a/dockerTest/multiple-tests-single-fail/Sources/MultipleSingleFail/MultipleSingleFail.swift +++ /dev/null @@ -1,30 +0,0 @@ -func sum(_ x: Int, _ y: Int) -> Int { - print("yabba") - return x / y -} - -func sub(_ x: Int, _ y: Int) -> Int { - print("dabba") - return x - y -} - -func mul(_ x: Int, _ y: Int) -> Int { - let benedick = - """ - I will not be sworn but love may transform me to an oyster, - but I’ll take my oath on it, till he have made an oyster of me, - he shall never make me such a fool. One woman is fair, yet - I am well; another is wise, yet I am well; another virtuous, - 25yet I am well; but till all graces be in one woman, one - woman shall not come in my grace. Rich she shall be, that’s - certain; wise, or I’ll none; virtuous, or I’ll never cheapen - her; fair, or I’ll ever look on her; mild, or come not near - me; noble, or not I for an angel; of good discourse, an - 30excellent musician, and her hair shall be of what color it - please God. Ha! The Prince and Monsieur Love! I will hide - me in the arbor. - """ - print("Benedick's speech is \(benedick.count) character's long.") - print(benedick) - return x * y -} diff --git a/dockerTest/multiple-tests-single-fail/Tests/LinuxMain.swift b/dockerTest/multiple-tests-single-fail/Tests/LinuxMain.swift deleted file mode 100644 index 5380f37..0000000 --- a/dockerTest/multiple-tests-single-fail/Tests/LinuxMain.swift +++ /dev/null @@ -1,6 +0,0 @@ -import MultipleSingleFailTests -import XCTest - -var tests = [XCTestCaseEntry]() -tests += MultipleSingleFailTests.allTests() -XCTMain(tests) diff --git a/dockerTest/multiple-tests-single-fail/Tests/MultipleSingleFailTests/MultipleSingleFailTests.swift b/dockerTest/multiple-tests-single-fail/Tests/MultipleSingleFailTests/MultipleSingleFailTests.swift deleted file mode 100644 index 7895664..0000000 --- a/dockerTest/multiple-tests-single-fail/Tests/MultipleSingleFailTests/MultipleSingleFailTests.swift +++ /dev/null @@ -1,52 +0,0 @@ -import XCTest - -@testable import MultipleSingleFail - -final class MultipleSingleFailTests: XCTestCase { - let runAll = Bool(ProcessInfo.processInfo.environment["RUNALL", default: "false"]) ?? false - - func testAdd() { - XCTAssertEqual(sum(2, 3), 5, "2+3 should equal 5") - } - - func testSub() throws { - try XCTSkipIf(true && !runAll) // change true to false to run this test - XCTAssertEqual(sub(2, 3), -1) - } - - func testMul() throws { - try XCTSkipIf(true && !runAll) // change true to false to run this test - XCTAssertEqual(mul(2, 3), 6) - } - - static var allTests = [ - ("testAdd", testAdd), - ("testSub", testSub), - ("testMul", testMul), - ] -} - -final class SecondSuite: XCTestCase { - let runAll = Bool(ProcessInfo.processInfo.environment["RUNALL", default: "false"]) ?? false - - func testAdd2() throws { - try XCTSkipIf(true && !runAll) // change true to false to run this test - XCTAssertEqual(sum(12, 13), 25, "12+13 should equal 25") - } - - func testSub2() throws { - try XCTSkipIf(true && !runAll) // change true to false to run this test - XCTAssertEqual(sub(12, 13), -1) - } - - func testMul2() throws { - try XCTSkipIf(true && !runAll) // change true to false to run this test - XCTAssertEqual(mul(12, 13), 156) - } - - static var allTests = [ - ("testAdd", testAdd2), - ("testSub", testSub2), - ("testMul", testMul2), - ] -} diff --git a/dockerTest/multiple-tests-single-fail/Tests/MultipleSingleFailTests/XCTestManifests.swift b/dockerTest/multiple-tests-single-fail/Tests/MultipleSingleFailTests/XCTestManifests.swift deleted file mode 100644 index 4f72e30..0000000 --- a/dockerTest/multiple-tests-single-fail/Tests/MultipleSingleFailTests/XCTestManifests.swift +++ /dev/null @@ -1,10 +0,0 @@ -import XCTest - -#if !canImport(ObjectiveC) - public func allTests() -> [XCTestCaseEntry] { - return [ - testCase(MultipleSingleFailTests.allTests), - testCase(SecondSuite.allTests), - ] - } -#endif diff --git a/dockerTest/multiple-tests-single-fail/expected_results.json b/dockerTest/multiple-tests-single-fail/expected_results.json deleted file mode 100644 index 3b00124..0000000 --- a/dockerTest/multiple-tests-single-fail/expected_results.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "status" : "fail", - "tests" : [ - { - "message" : "\/solution\/multiple-tests-single-fail\/Tests\/MultipleSingleFailTests\/MultipleSingleFailTests.swift:9: error: MultipleSingleFailTests.testAdd : XCTAssertEqual failed: (\"0\") is not equal to (\"5\") - 2+3 should equal 5", - "name" : "MultipleSingleFailTests.testAdd", - "output" : "yabba…", - "status" : "fail" - }, - { - "name" : "MultipleSingleFailTests.testSub", - "output" : "dabba…", - "status" : "pass" - }, - { - "name" : "MultipleSingleFailTests.testMul", - "output" : "Benedick's speech is 674 character's long.\nI will not be sworn but love may transform me to an oyster,\nbut I’ll take my oath on it, till he have made an oyster of me,\nhe shall never make me such a fool. One woman is fair, yet\nI am well; another is wise, yet I am well; another virtuous,\n25yet I am well; but till all graces be in one woman, one\nwoman shall not come in my grace. Rich she shall be, that’s\ncertain; wise, or I’ll none; virtuous, or I’ll never cheapen\nher; fair, or I’ll ever look on h…", - "status" : "pass" - }, - { - "message" : "\/solution\/multiple-tests-single-fail\/Tests\/MultipleSingleFailTests\/MultipleSingleFailTests.swift:34: error: SecondSuite.testAdd : XCTAssertEqual failed: (\"0\") is not equal to (\"25\") - 12+13 should equal 25", - "name" : "SecondSuite.testAdd", - "output" : "yabba…", - "status" : "fail" - }, - { - "name" : "SecondSuite.testSub", - "output" : "dabba…", - "status" : "pass" - }, - { - "name" : "SecondSuite.testMul", - "output" : "Benedick's speech is 674 character's long.\nI will not be sworn but love may transform me to an oyster,\nbut I’ll take my oath on it, till he have made an oyster of me,\nhe shall never make me such a fool. One woman is fair, yet\nI am well; another is wise, yet I am well; another virtuous,\n25yet I am well; but till all graces be in one woman, one\nwoman shall not come in my grace. Rich she shall be, that’s\ncertain; wise, or I’ll none; virtuous, or I’ll never cheapen\nher; fair, or I’ll ever look on h…", - "status" : "pass" - } - ] -} \ No newline at end of file diff --git a/dockerTest/multiple-tests-single-fail/results.json b/dockerTest/multiple-tests-single-fail/results.json deleted file mode 100644 index 3b00124..0000000 --- a/dockerTest/multiple-tests-single-fail/results.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "status" : "fail", - "tests" : [ - { - "message" : "\/solution\/multiple-tests-single-fail\/Tests\/MultipleSingleFailTests\/MultipleSingleFailTests.swift:9: error: MultipleSingleFailTests.testAdd : XCTAssertEqual failed: (\"0\") is not equal to (\"5\") - 2+3 should equal 5", - "name" : "MultipleSingleFailTests.testAdd", - "output" : "yabba…", - "status" : "fail" - }, - { - "name" : "MultipleSingleFailTests.testSub", - "output" : "dabba…", - "status" : "pass" - }, - { - "name" : "MultipleSingleFailTests.testMul", - "output" : "Benedick's speech is 674 character's long.\nI will not be sworn but love may transform me to an oyster,\nbut I’ll take my oath on it, till he have made an oyster of me,\nhe shall never make me such a fool. One woman is fair, yet\nI am well; another is wise, yet I am well; another virtuous,\n25yet I am well; but till all graces be in one woman, one\nwoman shall not come in my grace. Rich she shall be, that’s\ncertain; wise, or I’ll none; virtuous, or I’ll never cheapen\nher; fair, or I’ll ever look on h…", - "status" : "pass" - }, - { - "message" : "\/solution\/multiple-tests-single-fail\/Tests\/MultipleSingleFailTests\/MultipleSingleFailTests.swift:34: error: SecondSuite.testAdd : XCTAssertEqual failed: (\"0\") is not equal to (\"25\") - 12+13 should equal 25", - "name" : "SecondSuite.testAdd", - "output" : "yabba…", - "status" : "fail" - }, - { - "name" : "SecondSuite.testSub", - "output" : "dabba…", - "status" : "pass" - }, - { - "name" : "SecondSuite.testMul", - "output" : "Benedick's speech is 674 character's long.\nI will not be sworn but love may transform me to an oyster,\nbut I’ll take my oath on it, till he have made an oyster of me,\nhe shall never make me such a fool. One woman is fair, yet\nI am well; another is wise, yet I am well; another virtuous,\n25yet I am well; but till all graces be in one woman, one\nwoman shall not come in my grace. Rich she shall be, that’s\ncertain; wise, or I’ll none; virtuous, or I’ll never cheapen\nher; fair, or I’ll ever look on h…", - "status" : "pass" - } - ] -} \ No newline at end of file diff --git a/dockerTest/multiple-tests-with-exception/.gitignore b/dockerTest/multiple-tests-with-exception/.gitignore deleted file mode 100644 index 95c4320..0000000 --- a/dockerTest/multiple-tests-with-exception/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -.DS_Store -/.build -/Packages -/*.xcodeproj -xcuserdata/ diff --git a/dockerTest/multiple-tests-with-exception/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/dockerTest/multiple-tests-with-exception/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/dockerTest/multiple-tests-with-exception/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/dockerTest/multiple-tests-with-exception/Package.swift b/dockerTest/multiple-tests-with-exception/Package.swift deleted file mode 100644 index 501b2b9..0000000 --- a/dockerTest/multiple-tests-with-exception/Package.swift +++ /dev/null @@ -1,28 +0,0 @@ -// swift-tools-version:5.2 -// The swift-tools-version declares the minimum version of Swift required to build this package. - -import PackageDescription - -let package = Package( - name: "MultipleWithException", - products: [ - // Products define the executables and libraries produced by a package, and make them visible to other packages. - .library( - name: "MultipleWithException", - targets: ["MultipleWithException"]) - ], - dependencies: [ - // Dependencies declare other packages that this package depends on. - // .package(url: /* package url */, from: "1.0.0"), - ], - targets: [ - // Targets are the basic building blocks of a package. A target can define a module or a test suite. - // Targets can depend on other targets in this package, and on products in packages which this package depends on. - .target( - name: "MultipleWithException", - dependencies: []), - .testTarget( - name: "MultipleWithExceptionTests", - dependencies: ["MultipleWithException"]), - ] -) diff --git a/dockerTest/multiple-tests-with-exception/Sources/MultipleWithException/MultipleWithException.swift b/dockerTest/multiple-tests-with-exception/Sources/MultipleWithException/MultipleWithException.swift deleted file mode 100644 index f4cb7cc..0000000 --- a/dockerTest/multiple-tests-with-exception/Sources/MultipleWithException/MultipleWithException.swift +++ /dev/null @@ -1,27 +0,0 @@ -enum TestError: Error { - case testError(String) -} - -func sum(_ x: Int, _ y: Int) -> Int { - return x + y -} - -func sub(_ x: Int, _ y: Int) -> Int { - // fatalError("Oh noes!") - return x - y -} - -func mul(_ x: Int, _ y: Int) -> Int { - if x < y { - fatalError("Oh noes!") - } else { - return x * y - // let z = Int.max / y - // return x * z - } -} - -func throwErr(_ x: Int, _ y: Int) throws -> Int { - guard y != 0 else { throw TestError.testError("Oh noes! Div by zeroes!!!") } - return x / y -} diff --git a/dockerTest/multiple-tests-with-exception/Tests/LinuxMain.swift b/dockerTest/multiple-tests-with-exception/Tests/LinuxMain.swift deleted file mode 100644 index 23dbd17..0000000 --- a/dockerTest/multiple-tests-with-exception/Tests/LinuxMain.swift +++ /dev/null @@ -1,6 +0,0 @@ -import MultipleWithExceptionTests -import XCTest - -var tests = [XCTestCaseEntry]() -tests += MultipleWithExceptionTests.allTests() -XCTMain(tests) diff --git a/dockerTest/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/MultipleWithExceptionTests.swift b/dockerTest/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/MultipleWithExceptionTests.swift deleted file mode 100644 index 98a6b84..0000000 --- a/dockerTest/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/MultipleWithExceptionTests.swift +++ /dev/null @@ -1,28 +0,0 @@ -import XCTest - -@testable import MultipleWithException - -final class MultipleWithExceptionTests: XCTestCase { - func testAdd() { - XCTAssertEqual(sum(2, 3), 5, "2+3 should equal 5") - } - - func testSub() { - XCTAssertEqual(sub(2, 3), -1) - } - - func testMul() { - XCTAssertEqual(mul(3, 2), 6) - } - - func testThrow() { - XCTAssertEqual(try throwErr(2, 0), 6) - } - - static var allTests = [ - ("testAdd", testAdd), - ("testSub", testSub), - ("testMul", testMul), - ("testThrow", testThrow), - ] -} diff --git a/dockerTest/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/XCTestManifests.swift b/dockerTest/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/XCTestManifests.swift deleted file mode 100644 index cbab108..0000000 --- a/dockerTest/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/XCTestManifests.swift +++ /dev/null @@ -1,9 +0,0 @@ -import XCTest - -#if !canImport(ObjectiveC) - public func allTests() -> [XCTestCaseEntry] { - return [ - testCase(MultipleWithExceptionTests.allTests) - ] - } -#endif diff --git a/dockerTest/multiple-tests-with-exception/expected_results.json b/dockerTest/multiple-tests-with-exception/expected_results.json deleted file mode 100644 index 46b33d4..0000000 --- a/dockerTest/multiple-tests-with-exception/expected_results.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "status" : "fail", - "tests" : [ - { - "name" : "MultipleWithExceptionTests.testAdd", - "status" : "pass" - }, - { - "name" : "MultipleWithExceptionTests.testSub", - "status" : "pass" - }, - { - "name" : "MultipleWithExceptionTests.testMul", - "status" : "pass" - }, - { - "message" : "\/solution\/multiple-tests-with-exception\/Tests\/MultipleWithExceptionTests\/MultipleWithExceptionTests.swift:19: error: MultipleWithExceptionTests.testThrow : XCTAssertEqual threw error \"testError(\"Oh noes! Div by zeroes!!!\")\" - ", - "name" : "MultipleWithExceptionTests.testThrow", - "status" : "fail" - } - ] -} \ No newline at end of file diff --git a/dockerTest/multiple-tests-with-exception/results.json b/dockerTest/multiple-tests-with-exception/results.json deleted file mode 100644 index 46b33d4..0000000 --- a/dockerTest/multiple-tests-with-exception/results.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "status" : "fail", - "tests" : [ - { - "name" : "MultipleWithExceptionTests.testAdd", - "status" : "pass" - }, - { - "name" : "MultipleWithExceptionTests.testSub", - "status" : "pass" - }, - { - "name" : "MultipleWithExceptionTests.testMul", - "status" : "pass" - }, - { - "message" : "\/solution\/multiple-tests-with-exception\/Tests\/MultipleWithExceptionTests\/MultipleWithExceptionTests.swift:19: error: MultipleWithExceptionTests.testThrow : XCTAssertEqual threw error \"testError(\"Oh noes! Div by zeroes!!!\")\" - ", - "name" : "MultipleWithExceptionTests.testThrow", - "status" : "fail" - } - ] -} \ No newline at end of file diff --git a/dockerTest/output/expected_results.json b/dockerTest/output/expected_results.json deleted file mode 100644 index 3b00124..0000000 --- a/dockerTest/output/expected_results.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "status" : "fail", - "tests" : [ - { - "message" : "\/solution\/multiple-tests-single-fail\/Tests\/MultipleSingleFailTests\/MultipleSingleFailTests.swift:9: error: MultipleSingleFailTests.testAdd : XCTAssertEqual failed: (\"0\") is not equal to (\"5\") - 2+3 should equal 5", - "name" : "MultipleSingleFailTests.testAdd", - "output" : "yabba…", - "status" : "fail" - }, - { - "name" : "MultipleSingleFailTests.testSub", - "output" : "dabba…", - "status" : "pass" - }, - { - "name" : "MultipleSingleFailTests.testMul", - "output" : "Benedick's speech is 674 character's long.\nI will not be sworn but love may transform me to an oyster,\nbut I’ll take my oath on it, till he have made an oyster of me,\nhe shall never make me such a fool. One woman is fair, yet\nI am well; another is wise, yet I am well; another virtuous,\n25yet I am well; but till all graces be in one woman, one\nwoman shall not come in my grace. Rich she shall be, that’s\ncertain; wise, or I’ll none; virtuous, or I’ll never cheapen\nher; fair, or I’ll ever look on h…", - "status" : "pass" - }, - { - "message" : "\/solution\/multiple-tests-single-fail\/Tests\/MultipleSingleFailTests\/MultipleSingleFailTests.swift:34: error: SecondSuite.testAdd : XCTAssertEqual failed: (\"0\") is not equal to (\"25\") - 12+13 should equal 25", - "name" : "SecondSuite.testAdd", - "output" : "yabba…", - "status" : "fail" - }, - { - "name" : "SecondSuite.testSub", - "output" : "dabba…", - "status" : "pass" - }, - { - "name" : "SecondSuite.testMul", - "output" : "Benedick's speech is 674 character's long.\nI will not be sworn but love may transform me to an oyster,\nbut I’ll take my oath on it, till he have made an oyster of me,\nhe shall never make me such a fool. One woman is fair, yet\nI am well; another is wise, yet I am well; another virtuous,\n25yet I am well; but till all graces be in one woman, one\nwoman shall not come in my grace. Rich she shall be, that’s\ncertain; wise, or I’ll none; virtuous, or I’ll never cheapen\nher; fair, or I’ll ever look on h…", - "status" : "pass" - } - ] -} \ No newline at end of file diff --git a/dockerTest/output/results.json b/dockerTest/output/results.json deleted file mode 100644 index 3b00124..0000000 --- a/dockerTest/output/results.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "status" : "fail", - "tests" : [ - { - "message" : "\/solution\/multiple-tests-single-fail\/Tests\/MultipleSingleFailTests\/MultipleSingleFailTests.swift:9: error: MultipleSingleFailTests.testAdd : XCTAssertEqual failed: (\"0\") is not equal to (\"5\") - 2+3 should equal 5", - "name" : "MultipleSingleFailTests.testAdd", - "output" : "yabba…", - "status" : "fail" - }, - { - "name" : "MultipleSingleFailTests.testSub", - "output" : "dabba…", - "status" : "pass" - }, - { - "name" : "MultipleSingleFailTests.testMul", - "output" : "Benedick's speech is 674 character's long.\nI will not be sworn but love may transform me to an oyster,\nbut I’ll take my oath on it, till he have made an oyster of me,\nhe shall never make me such a fool. One woman is fair, yet\nI am well; another is wise, yet I am well; another virtuous,\n25yet I am well; but till all graces be in one woman, one\nwoman shall not come in my grace. Rich she shall be, that’s\ncertain; wise, or I’ll none; virtuous, or I’ll never cheapen\nher; fair, or I’ll ever look on h…", - "status" : "pass" - }, - { - "message" : "\/solution\/multiple-tests-single-fail\/Tests\/MultipleSingleFailTests\/MultipleSingleFailTests.swift:34: error: SecondSuite.testAdd : XCTAssertEqual failed: (\"0\") is not equal to (\"25\") - 12+13 should equal 25", - "name" : "SecondSuite.testAdd", - "output" : "yabba…", - "status" : "fail" - }, - { - "name" : "SecondSuite.testSub", - "output" : "dabba…", - "status" : "pass" - }, - { - "name" : "SecondSuite.testMul", - "output" : "Benedick's speech is 674 character's long.\nI will not be sworn but love may transform me to an oyster,\nbut I’ll take my oath on it, till he have made an oyster of me,\nhe shall never make me such a fool. One woman is fair, yet\nI am well; another is wise, yet I am well; another virtuous,\n25yet I am well; but till all graces be in one woman, one\nwoman shall not come in my grace. Rich she shall be, that’s\ncertain; wise, or I’ll none; virtuous, or I’ll never cheapen\nher; fair, or I’ll ever look on h…", - "status" : "pass" - } - ] -} \ No newline at end of file diff --git a/dockerTest/single-test-that-fails/.gitignore b/dockerTest/single-test-that-fails/.gitignore deleted file mode 100644 index 95c4320..0000000 --- a/dockerTest/single-test-that-fails/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -.DS_Store -/.build -/Packages -/*.xcodeproj -xcuserdata/ diff --git a/dockerTest/single-test-that-fails/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/dockerTest/single-test-that-fails/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/dockerTest/single-test-that-fails/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/dockerTest/single-test-that-fails/Package.swift b/dockerTest/single-test-that-fails/Package.swift deleted file mode 100644 index ec316d6..0000000 --- a/dockerTest/single-test-that-fails/Package.swift +++ /dev/null @@ -1,28 +0,0 @@ -// swift-tools-version:5.2 -// The swift-tools-version declares the minimum version of Swift required to build this package. - -import PackageDescription - -let package = Package( - name: "SingleThatFails", - products: [ - // Products define the executables and libraries produced by a package, and make them visible to other packages. - .library( - name: "SingleThatFails", - targets: ["SingleThatFails"]), - ], - dependencies: [ - // Dependencies declare other packages that this package depends on. - // .package(url: /* package url */, from: "1.0.0"), - ], - targets: [ - // Targets are the basic building blocks of a package. A target can define a module or a test suite. - // Targets can depend on other targets in this package, and on products in packages which this package depends on. - .target( - name: "SingleThatFails", - dependencies: []), - .testTarget( - name: "SingleThatFailsTests", - dependencies: ["SingleThatFails"]), - ] -) diff --git a/dockerTest/single-test-that-fails/Sources/SingleThatFails/SingleThatFails.swift b/dockerTest/single-test-that-fails/Sources/SingleThatFails/SingleThatFails.swift deleted file mode 100644 index bbb07a6..0000000 --- a/dockerTest/single-test-that-fails/Sources/SingleThatFails/SingleThatFails.swift +++ /dev/null @@ -1,7 +0,0 @@ -enum TestError: Error { - case testError(String) -} - -func sum(_ x: Int, _ y: Int) -> Int { - return x - y -} diff --git a/dockerTest/single-test-that-fails/Tests/LinuxMain.swift b/dockerTest/single-test-that-fails/Tests/LinuxMain.swift deleted file mode 100644 index cb1beda..0000000 --- a/dockerTest/single-test-that-fails/Tests/LinuxMain.swift +++ /dev/null @@ -1,6 +0,0 @@ -import SingleThatFailsTests -import XCTest - -var tests = [XCTestCaseEntry]() -tests += SingleThatFailsTests.allTests() -XCTMain(tests) diff --git a/dockerTest/single-test-that-fails/Tests/SingleThatFailsTests/SingleThatFailsTests.swift b/dockerTest/single-test-that-fails/Tests/SingleThatFailsTests/SingleThatFailsTests.swift deleted file mode 100644 index d456db7..0000000 --- a/dockerTest/single-test-that-fails/Tests/SingleThatFailsTests/SingleThatFailsTests.swift +++ /dev/null @@ -1,13 +0,0 @@ -import XCTest - -@testable import SingleThatFails - -final class SingleThatFailsTests: XCTestCase { - func testAdd() { - XCTAssertEqual(sum(2, 3), 5, "2+3 should equal 5") - } - - static var allTests = [ - ("testAdd", testAdd) - ] -} diff --git a/dockerTest/single-test-that-fails/Tests/SingleThatFailsTests/XCTestManifests.swift b/dockerTest/single-test-that-fails/Tests/SingleThatFailsTests/XCTestManifests.swift deleted file mode 100644 index d35899b..0000000 --- a/dockerTest/single-test-that-fails/Tests/SingleThatFailsTests/XCTestManifests.swift +++ /dev/null @@ -1,9 +0,0 @@ -import XCTest - -#if !canImport(ObjectiveC) - public func allTests() -> [XCTestCaseEntry] { - return [ - testCase(SingleThatFailsTests.allTests) - ] - } -#endif diff --git a/dockerTest/single-test-that-fails/expected_results.json b/dockerTest/single-test-that-fails/expected_results.json deleted file mode 100644 index 7918c5f..0000000 --- a/dockerTest/single-test-that-fails/expected_results.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "status" : "fail", - "tests" : [ - { - "message" : "\/solution\/single-test-that-fails\/Tests\/SingleThatFailsTests\/SingleThatFailsTests.swift:7: error: SingleThatFailsTests.testAdd : XCTAssertEqual failed: (\"-1\") is not equal to (\"5\") - 2+3 should equal 5", - "name" : "SingleThatFailsTests.testAdd", - "status" : "fail" - } - ] -} \ No newline at end of file diff --git a/dockerTest/single-test-that-fails/results.json b/dockerTest/single-test-that-fails/results.json deleted file mode 100644 index 7918c5f..0000000 --- a/dockerTest/single-test-that-fails/results.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "status" : "fail", - "tests" : [ - { - "message" : "\/solution\/single-test-that-fails\/Tests\/SingleThatFailsTests\/SingleThatFailsTests.swift:7: error: SingleThatFailsTests.testAdd : XCTAssertEqual failed: (\"-1\") is not equal to (\"5\") - 2+3 should equal 5", - "name" : "SingleThatFailsTests.testAdd", - "status" : "fail" - } - ] -} \ No newline at end of file diff --git a/dockerTest/single-test-that-passes/.gitignore b/dockerTest/single-test-that-passes/.gitignore deleted file mode 100644 index 95c4320..0000000 --- a/dockerTest/single-test-that-passes/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -.DS_Store -/.build -/Packages -/*.xcodeproj -xcuserdata/ diff --git a/dockerTest/single-test-that-passes/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/dockerTest/single-test-that-passes/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/dockerTest/single-test-that-passes/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/dockerTest/single-test-that-passes/Package.swift b/dockerTest/single-test-that-passes/Package.swift deleted file mode 100644 index 6c54388..0000000 --- a/dockerTest/single-test-that-passes/Package.swift +++ /dev/null @@ -1,28 +0,0 @@ -// swift-tools-version:5.2 -// The swift-tools-version declares the minimum version of Swift required to build this package. - -import PackageDescription - -let package = Package( - name: "SingleThatPasses", - products: [ - // Products define the executables and libraries produced by a package, and make them visible to other packages. - .library( - name: "SingleThatPasses", - targets: ["SingleThatPasses"]), - ], - dependencies: [ - // Dependencies declare other packages that this package depends on. - // .package(url: /* package url */, from: "1.0.0"), - ], - targets: [ - // Targets are the basic building blocks of a package. A target can define a module or a test suite. - // Targets can depend on other targets in this package, and on products in packages which this package depends on. - .target( - name: "SingleThatPasses", - dependencies: []), - .testTarget( - name: "SingleThatPassesTests", - dependencies: ["SingleThatPasses"]), - ] -) diff --git a/dockerTest/single-test-that-passes/Sources/SingleThatPasses/SingleThatPasses.swift b/dockerTest/single-test-that-passes/Sources/SingleThatPasses/SingleThatPasses.swift deleted file mode 100644 index 8015268..0000000 --- a/dockerTest/single-test-that-passes/Sources/SingleThatPasses/SingleThatPasses.swift +++ /dev/null @@ -1,7 +0,0 @@ -enum TestError: Error { - case testError(String) -} - -func sum(_ x: Int, _ y: Int) -> Int { - return x + y -} diff --git a/dockerTest/single-test-that-passes/Tests/LinuxMain.swift b/dockerTest/single-test-that-passes/Tests/LinuxMain.swift deleted file mode 100644 index c2aee5c..0000000 --- a/dockerTest/single-test-that-passes/Tests/LinuxMain.swift +++ /dev/null @@ -1,6 +0,0 @@ -import SingleThatPassesTests -import XCTest - -var tests = [XCTestCaseEntry]() -tests += SingleThatPassesTests.allTests() -XCTMain(tests) diff --git a/dockerTest/single-test-that-passes/Tests/SingleThatPassesTests/SingleThatPassesTests.swift b/dockerTest/single-test-that-passes/Tests/SingleThatPassesTests/SingleThatPassesTests.swift deleted file mode 100644 index 8a8d431..0000000 --- a/dockerTest/single-test-that-passes/Tests/SingleThatPassesTests/SingleThatPassesTests.swift +++ /dev/null @@ -1,13 +0,0 @@ -import XCTest - -@testable import SingleThatPasses - -final class SingleThatPassesTests: XCTestCase { - func testAdd() { - XCTAssertEqual(sum(2, 3), 5, "2+3 should equal 5") - } - - static var allTests = [ - ("testAdd", testAdd) - ] -} diff --git a/dockerTest/single-test-that-passes/Tests/SingleThatPassesTests/XCTestManifests.swift b/dockerTest/single-test-that-passes/Tests/SingleThatPassesTests/XCTestManifests.swift deleted file mode 100644 index 76f6b7a..0000000 --- a/dockerTest/single-test-that-passes/Tests/SingleThatPassesTests/XCTestManifests.swift +++ /dev/null @@ -1,9 +0,0 @@ -import XCTest - -#if !canImport(ObjectiveC) - public func allTests() -> [XCTestCaseEntry] { - return [ - testCase(SingleThatPassesTests.allTests) - ] - } -#endif diff --git a/dockerTest/single-test-that-passes/expected_results.json b/dockerTest/single-test-that-passes/expected_results.json deleted file mode 100644 index 4472e04..0000000 --- a/dockerTest/single-test-that-passes/expected_results.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "status" : "pass", - "tests" : [ - { - "name" : "SingleThatPassesTests.testAdd", - "status" : "pass" - } - ] -} \ No newline at end of file diff --git a/dockerTest/single-test-that-passes/results.json b/dockerTest/single-test-that-passes/results.json deleted file mode 100644 index 4472e04..0000000 --- a/dockerTest/single-test-that-passes/results.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "status" : "pass", - "tests" : [ - { - "name" : "SingleThatPassesTests.testAdd", - "status" : "pass" - } - ] -} \ No newline at end of file diff --git a/dockerTest/single-test-with-exception/.gitignore b/dockerTest/single-test-with-exception/.gitignore deleted file mode 100644 index 95c4320..0000000 --- a/dockerTest/single-test-with-exception/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -.DS_Store -/.build -/Packages -/*.xcodeproj -xcuserdata/ diff --git a/dockerTest/single-test-with-exception/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/dockerTest/single-test-with-exception/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/dockerTest/single-test-with-exception/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/dockerTest/single-test-with-exception/Package.swift b/dockerTest/single-test-with-exception/Package.swift deleted file mode 100644 index bfe3bc9..0000000 --- a/dockerTest/single-test-with-exception/Package.swift +++ /dev/null @@ -1,28 +0,0 @@ -// swift-tools-version:5.2 -// The swift-tools-version declares the minimum version of Swift required to build this package. - -import PackageDescription - -let package = Package( - name: "SingleWithException", - products: [ - // Products define the executables and libraries produced by a package, and make them visible to other packages. - .library( - name: "SingleWithException", - targets: ["SingleWithException"]), - ], - dependencies: [ - // Dependencies declare other packages that this package depends on. - // .package(url: /* package url */, from: "1.0.0"), - ], - targets: [ - // Targets are the basic building blocks of a package. A target can define a module or a test suite. - // Targets can depend on other targets in this package, and on products in packages which this package depends on. - .target( - name: "SingleWithException", - dependencies: []), - .testTarget( - name: "SingleWithExceptionTests", - dependencies: ["SingleWithException"]), - ] -) diff --git a/dockerTest/single-test-with-exception/Sources/SingleWithException/SingleWithException.swift b/dockerTest/single-test-with-exception/Sources/SingleWithException/SingleWithException.swift deleted file mode 100644 index cb8eaaa..0000000 --- a/dockerTest/single-test-with-exception/Sources/SingleWithException/SingleWithException.swift +++ /dev/null @@ -1,7 +0,0 @@ -enum TestError: Error { - case testError(String) -} - -func sum(_ x: Int, _ y: Int) throws -> Int { - throw TestError.testError("Kaboomtown!") -} diff --git a/dockerTest/single-test-with-exception/Tests/LinuxMain.swift b/dockerTest/single-test-with-exception/Tests/LinuxMain.swift deleted file mode 100644 index 778ae21..0000000 --- a/dockerTest/single-test-with-exception/Tests/LinuxMain.swift +++ /dev/null @@ -1,6 +0,0 @@ -import SingleWithExceptionTests -import XCTest - -var tests = [XCTestCaseEntry]() -tests += SingleWithExceptionTests.allTests() -XCTMain(tests) diff --git a/dockerTest/single-test-with-exception/Tests/SingleWithExceptionTests/SingleWithExceptionTests.swift b/dockerTest/single-test-with-exception/Tests/SingleWithExceptionTests/SingleWithExceptionTests.swift deleted file mode 100644 index 376a9c2..0000000 --- a/dockerTest/single-test-with-exception/Tests/SingleWithExceptionTests/SingleWithExceptionTests.swift +++ /dev/null @@ -1,13 +0,0 @@ -import XCTest - -@testable import SingleWithException - -final class SingleWithExceptionTests: XCTestCase { - func testAdd() { - XCTAssertEqual(try sum(2, 3), 5, "2+3 should equal 5") - } - - static var allTests = [ - ("testAdd", testAdd) - ] -} diff --git a/dockerTest/single-test-with-exception/Tests/SingleWithExceptionTests/XCTestManifests.swift b/dockerTest/single-test-with-exception/Tests/SingleWithExceptionTests/XCTestManifests.swift deleted file mode 100644 index 61fb57b..0000000 --- a/dockerTest/single-test-with-exception/Tests/SingleWithExceptionTests/XCTestManifests.swift +++ /dev/null @@ -1,9 +0,0 @@ -import XCTest - -#if !canImport(ObjectiveC) - public func allTests() -> [XCTestCaseEntry] { - return [ - testCase(SingleWithExceptionTests.allTests) - ] - } -#endif diff --git a/dockerTest/single-test-with-exception/expected_results.json b/dockerTest/single-test-with-exception/expected_results.json deleted file mode 100644 index 7588313..0000000 --- a/dockerTest/single-test-with-exception/expected_results.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "status" : "fail", - "tests" : [ - { - "message" : "\/solution\/single-test-with-exception\/Tests\/SingleWithExceptionTests\/SingleWithExceptionTests.swift:7: error: SingleWithExceptionTests.testAdd : XCTAssertEqual threw error \"testError(\"Kaboomtown!\")\" - 2+3 should equal 5", - "name" : "SingleWithExceptionTests.testAdd", - "status" : "fail" - } - ] -} \ No newline at end of file diff --git a/dockerTest/single-test-with-exception/results.json b/dockerTest/single-test-with-exception/results.json deleted file mode 100644 index 7588313..0000000 --- a/dockerTest/single-test-with-exception/results.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "status" : "fail", - "tests" : [ - { - "message" : "\/solution\/single-test-with-exception\/Tests\/SingleWithExceptionTests\/SingleWithExceptionTests.swift:7: error: SingleWithExceptionTests.testAdd : XCTAssertEqual threw error \"testError(\"Kaboomtown!\")\" - 2+3 should equal 5", - "name" : "SingleWithExceptionTests.testAdd", - "status" : "fail" - } - ] -} \ No newline at end of file From dd04c749cbe3a415cd0848197877f8853df186ed Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 16 Apr 2021 13:27:37 +0200 Subject: [PATCH 06/13] Update CI workflow --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ .github/workflows/main.yml | 31 ------------------------------- 2 files changed, 20 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..dd74479 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + build: + name: Tests + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # 2.3.4 + + - name: Run Tests in Docker + run: bin/run-tests-in-docker.sh diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 9599840..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -name: CI - -on: - pull_request: - branches: - - master - paths-ignore: - - '.gitignore' - - 'LICENSE' - - '**.md' - push: - branches: - - master - paths-ignore: - - '.gitignore' - - 'LICENSE' - - '**.md' - -jobs: - build: - name: Test Runner - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - - name: Build Docker Image - run: docker build -f Dockerfile -t generic-test-runner . - - - name: Run Tests - run: docker run -w "/opt/test-runner" --entrypoint "bin/run-all.sh" generic-test-runner From 338a3191e334e35ce435de626d66ef16e6d1e01b Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 16 Apr 2021 13:28:56 +0200 Subject: [PATCH 07/13] Remove unneeded comments --- bin/run-tests.sh | 9 --------- 1 file changed, 9 deletions(-) diff --git a/bin/run-tests.sh b/bin/run-tests.sh index ac7c9f2..4184021 100755 --- a/bin/run-tests.sh +++ b/bin/run-tests.sh @@ -22,15 +22,6 @@ for test_dir in tests/*; do bin/run.sh "${test_dir_name}" "${test_dir_path}" "${test_dir_path}" - # OPTIONAL: Normalize the results file - # If the results.json file contains information that changes between - # different test runs (e.g. timing information or paths), you should normalize - # the results file to allow the diff comparison below to work as expected - # sed -i -E \ - # -e 's/Elapsed time: [0-9]+\.[0-9]+ seconds//g' \ - # -e "s~${test_dir_path}~/solution~g" \ - # "${results_file_path}" - echo "${test_dir_name}: comparing results.json to expected_results.json" diff "${results_file_path}" "${expected_results_file_path}" From 692727e5e3179c8477639be57a3f27e318cd31dd Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 16 Apr 2021 13:41:07 +0200 Subject: [PATCH 08/13] Fix input directory in runner --- bin/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/run.sh b/bin/run.sh index a266d07..391b426 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -31,6 +31,6 @@ mkdir -p "${output_dir}" echo "${slug}: testing..." # Run the tests for the provided implementation file -RUNALL=true ./bin/TestRunner --slug "${slug}" --solution-directory "${input_dir}/${slug}" --output-directory "${output_dir}" --swift-location $(which swift) --build-directory "/tmp/" +RUNALL=true ./bin/TestRunner --slug "${slug}" --solution-directory "${input_dir}" --output-directory "${output_dir}" --swift-location $(which swift) --build-directory "/tmp/" echo "${slug}: done" From 7d5d27f77b7afdb8f03cd267e110e4ed07c8e594 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 16 Apr 2021 13:44:55 +0200 Subject: [PATCH 09/13] Use correct naming of files --- tests/multiple-tests-all-pass/Package.swift | 12 ++--- .../MultipleTestsAllPass.swift} | 0 .../Tests/LinuxMain.swift | 4 +- .../MultipleTestsAllPassTests.swift} | 4 +- .../XCTestManifests.swift | 2 +- .../expected_results.json | 30 ++++++------ .../Package.swift | 12 ++--- .../MultipleTestsMultipleFails.swift} | 0 .../Tests/LinuxMain.swift | 4 +- .../MultipleTestsMultipleFailsTests.swift} | 4 +- .../XCTestManifests.swift | 2 +- .../expected_results.json | 22 ++++----- .../multiple-tests-single-fail/Package.swift | 12 ++--- .../MultipleTestsSingleFail.swift} | 0 .../Tests/LinuxMain.swift | 4 +- .../MultipleTestsSingleFailTests.swift} | 4 +- .../XCTestManifests.swift | 2 +- .../expected_results.json | 46 +++++++++---------- .../Package.swift | 12 ++--- .../MultipleTestsWithException.swift} | 0 .../Tests/LinuxMain.swift | 4 +- .../MultipleTestsWithExceptionTests.swift} | 4 +- .../XCTestManifests.swift | 9 ++++ .../expected_results.json | 24 +++++----- tests/single-test-that-fails/Package.swift | 12 ++--- .../SingleTestThatFails.swift} | 0 .../Tests/LinuxMain.swift | 4 +- .../SingleTestThatFailsTests.swift} | 4 +- .../XCTestManifests.swift | 2 +- .../expected_results.json | 12 ++--- tests/single-test-that-passes/Package.swift | 12 ++--- .../SingleTestThatPasses.swift} | 0 .../Tests/LinuxMain.swift | 4 +- .../SingleTestThatPassesTests.swift} | 4 +- .../XCTestManifests.swift | 2 +- .../expected_results.json | 10 ++-- .../single-test-with-exception/Package.swift | 12 ++--- .../SingleTestWithException.swift} | 0 .../Tests/LinuxMain.swift | 4 +- .../SingleTestWithExceptionTests.swift} | 4 +- .../XCTestManifests.swift | 2 +- .../XCTestManifests.swift | 9 ---- .../expected_results.json | 12 ++--- 43 files changed, 163 insertions(+), 163 deletions(-) rename tests/multiple-tests-all-pass/Sources/{MultipleAllPass/MultipleAllPass.swift => MultipleTestsAllPass/MultipleTestsAllPass.swift} (100%) rename tests/multiple-tests-all-pass/Tests/{MultipleAllPassTests/MultipleAllPassTests.swift => MultipleTestsAllPassTests/MultipleTestsAllPassTests.swift} (88%) rename tests/multiple-tests-all-pass/Tests/{MultipleAllPassTests => MultipleTestsAllPassTests}/XCTestManifests.swift (74%) rename tests/multiple-tests-multiple-fails/Sources/{MultipleMultipleFails/MultipleMultipleFails.swift => MultipleTestsMultipleFails/MultipleTestsMultipleFails.swift} (100%) rename tests/multiple-tests-multiple-fails/Tests/{MultipleMultipleFailsTests/MultipleMultipleFailsTests.swift => MultipleTestsMultipleFailsTests/MultipleTestsMultipleFailsTests.swift} (75%) rename tests/multiple-tests-multiple-fails/Tests/{MultipleMultipleFailsTests => MultipleTestsMultipleFailsTests}/XCTestManifests.swift (67%) rename tests/multiple-tests-single-fail/Sources/{MultipleSingleFail/MultipleSingleFail.swift => MultipleTestsSingleFail/MultipleTestsSingleFail.swift} (100%) rename tests/multiple-tests-single-fail/Tests/{MultipleSingleFailTests/MultipleSingleFailTests.swift => MultipleTestsSingleFailTests/MultipleTestsSingleFailTests.swift} (93%) rename tests/multiple-tests-single-fail/Tests/{MultipleSingleFailTests => MultipleTestsSingleFailTests}/XCTestManifests.swift (74%) rename tests/multiple-tests-with-exception/Sources/{MultipleWithException/MultipleWithException.swift => MultipleTestsWithException/MultipleTestsWithException.swift} (100%) rename tests/multiple-tests-with-exception/Tests/{MultipleWithExceptionTests/MultipleWithExceptionTests.swift => MultipleTestsWithExceptionTests/MultipleTestsWithExceptionTests.swift} (80%) create mode 100644 tests/multiple-tests-with-exception/Tests/MultipleTestsWithExceptionTests/XCTestManifests.swift rename tests/single-test-that-fails/Sources/{SingleThatFails/SingleThatFails.swift => SingleTestThatFails/SingleTestThatFails.swift} (100%) rename tests/single-test-that-fails/Tests/{SingleThatFailsTests/SingleThatFailsTests.swift => SingleTestThatFailsTests/SingleTestThatFailsTests.swift} (63%) rename tests/{single-test-that-passes/Tests/SingleThatPassesTests => single-test-that-fails/Tests/SingleTestThatFailsTests}/XCTestManifests.swift (70%) rename tests/single-test-that-passes/Sources/{SingleThatPasses/SingleThatPasses.swift => SingleTestThatPasses/SingleTestThatPasses.swift} (100%) rename tests/single-test-that-passes/Tests/{SingleThatPassesTests/SingleThatPassesTests.swift => SingleTestThatPassesTests/SingleTestThatPassesTests.swift} (62%) rename tests/{single-test-that-fails/Tests/SingleThatFailsTests => single-test-that-passes/Tests/SingleTestThatPassesTests}/XCTestManifests.swift (70%) rename tests/single-test-with-exception/Sources/{SingleWithException/SingleWithException.swift => SingleTestWithException/SingleTestWithException.swift} (100%) rename tests/single-test-with-exception/Tests/{SingleWithExceptionTests/SingleWithExceptionTests.swift => SingleTestWithExceptionTests/SingleTestWithExceptionTests.swift} (61%) rename tests/{multiple-tests-with-exception/Tests/MultipleWithExceptionTests => single-test-with-exception/Tests/SingleTestWithExceptionTests}/XCTestManifests.swift (68%) delete mode 100644 tests/single-test-with-exception/Tests/SingleWithExceptionTests/XCTestManifests.swift diff --git a/tests/multiple-tests-all-pass/Package.swift b/tests/multiple-tests-all-pass/Package.swift index 8fdada5..775f117 100644 --- a/tests/multiple-tests-all-pass/Package.swift +++ b/tests/multiple-tests-all-pass/Package.swift @@ -4,12 +4,12 @@ import PackageDescription let package = Package( - name: "MultipleAllPass", + name: "MultipleTestsAllPass", products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. .library( - name: "MultipleAllPass", - targets: ["MultipleAllPass"]), + name: "MultipleTestsAllPass", + targets: ["MultipleTestsAllPass"]), ], dependencies: [ // Dependencies declare other packages that this package depends on. @@ -19,10 +19,10 @@ let package = Package( // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages which this package depends on. .target( - name: "MultipleAllPass", + name: "MultipleTestsAllPass", dependencies: []), .testTarget( - name: "MultipleAllPassTests", - dependencies: ["MultipleAllPass"]), + name: "MultipleTestsAllPassTests", + dependencies: ["MultipleTestsAllPass"]), ] ) diff --git a/tests/multiple-tests-all-pass/Sources/MultipleAllPass/MultipleAllPass.swift b/tests/multiple-tests-all-pass/Sources/MultipleTestsAllPass/MultipleTestsAllPass.swift similarity index 100% rename from tests/multiple-tests-all-pass/Sources/MultipleAllPass/MultipleAllPass.swift rename to tests/multiple-tests-all-pass/Sources/MultipleTestsAllPass/MultipleTestsAllPass.swift diff --git a/tests/multiple-tests-all-pass/Tests/LinuxMain.swift b/tests/multiple-tests-all-pass/Tests/LinuxMain.swift index 00e0fb4..e6d9117 100644 --- a/tests/multiple-tests-all-pass/Tests/LinuxMain.swift +++ b/tests/multiple-tests-all-pass/Tests/LinuxMain.swift @@ -1,7 +1,7 @@ import XCTest -import MultipleAllPassTests +import MultipleTestsAllPassTests var tests = [XCTestCaseEntry]() -tests += MultipleAllPassTests.allTests() +tests += MultipleTestsAllPassTests.allTests() XCTMain(tests) diff --git a/tests/multiple-tests-all-pass/Tests/MultipleAllPassTests/MultipleAllPassTests.swift b/tests/multiple-tests-all-pass/Tests/MultipleTestsAllPassTests/MultipleTestsAllPassTests.swift similarity index 88% rename from tests/multiple-tests-all-pass/Tests/MultipleAllPassTests/MultipleAllPassTests.swift rename to tests/multiple-tests-all-pass/Tests/MultipleTestsAllPassTests/MultipleTestsAllPassTests.swift index ef57fa5..c9e8047 100644 --- a/tests/multiple-tests-all-pass/Tests/MultipleAllPassTests/MultipleAllPassTests.swift +++ b/tests/multiple-tests-all-pass/Tests/MultipleTestsAllPassTests/MultipleTestsAllPassTests.swift @@ -1,8 +1,8 @@ import XCTest -@testable import MultipleAllPass +@testable import MultipleTestsAllPass -final class MultipleAllPassTests: XCTestCase { +final class MultipleTestsAllPassTests: XCTestCase { func testAdd() { XCTAssertEqual(sum(2, 3), 5, "2+3 should equal 5") } diff --git a/tests/multiple-tests-all-pass/Tests/MultipleAllPassTests/XCTestManifests.swift b/tests/multiple-tests-all-pass/Tests/MultipleTestsAllPassTests/XCTestManifests.swift similarity index 74% rename from tests/multiple-tests-all-pass/Tests/MultipleAllPassTests/XCTestManifests.swift rename to tests/multiple-tests-all-pass/Tests/MultipleTestsAllPassTests/XCTestManifests.swift index e83b6c1..cb3998c 100644 --- a/tests/multiple-tests-all-pass/Tests/MultipleAllPassTests/XCTestManifests.swift +++ b/tests/multiple-tests-all-pass/Tests/MultipleTestsAllPassTests/XCTestManifests.swift @@ -3,7 +3,7 @@ import XCTest #if !canImport(ObjectiveC) public func allTests() -> [XCTestCaseEntry] { return [ - testCase(MultipleAllPassTests.allTests), + testCase(MultipleTestsAllPassTests.allTests), testCase(SecondSuite.allTests), ] } diff --git a/tests/multiple-tests-all-pass/expected_results.json b/tests/multiple-tests-all-pass/expected_results.json index d814f79..e720f6a 100644 --- a/tests/multiple-tests-all-pass/expected_results.json +++ b/tests/multiple-tests-all-pass/expected_results.json @@ -1,29 +1,29 @@ { - "status" : "pass", - "tests" : [ + "status": "pass", + "tests": [ { - "name" : "MultipleAllPassTests.testAdd", - "status" : "pass" + "name": "MultipleTestsAllPassTests.testAdd", + "status": "pass" }, { - "name" : "MultipleAllPassTests.testSub", - "status" : "pass" + "name": "MultipleTestsAllPassTests.testSub", + "status": "pass" }, { - "name" : "MultipleAllPassTests.testMul", - "status" : "pass" + "name": "MultipleTestsAllPassTests.testMul", + "status": "pass" }, { - "name" : "SecondSuite.testAdd", - "status" : "pass" + "name": "SecondSuite.testAdd", + "status": "pass" }, { - "name" : "SecondSuite.testSub", - "status" : "pass" + "name": "SecondSuite.testSub", + "status": "pass" }, { - "name" : "SecondSuite.testMul", - "status" : "pass" + "name": "SecondSuite.testMul", + "status": "pass" } ] -} \ No newline at end of file +} diff --git a/tests/multiple-tests-multiple-fails/Package.swift b/tests/multiple-tests-multiple-fails/Package.swift index c1fe92b..1a52df0 100644 --- a/tests/multiple-tests-multiple-fails/Package.swift +++ b/tests/multiple-tests-multiple-fails/Package.swift @@ -4,12 +4,12 @@ import PackageDescription let package = Package( - name: "MultipleMultipleFails", + name: "MultipleTestsMultipleFails", products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. .library( - name: "MultipleMultipleFails", - targets: ["MultipleMultipleFails"]), + name: "MultipleTestsMultipleFails", + targets: ["MultipleTestsMultipleFails"]), ], dependencies: [ // Dependencies declare other packages that this package depends on. @@ -19,10 +19,10 @@ let package = Package( // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages which this package depends on. .target( - name: "MultipleMultipleFails", + name: "MultipleTestsMultipleFails", dependencies: []), .testTarget( - name: "MultipleMultipleFailsTests", - dependencies: ["MultipleMultipleFails"]), + name: "MultipleTestsMultipleFailsTests", + dependencies: ["MultipleTestsMultipleFails"]), ] ) diff --git a/tests/multiple-tests-multiple-fails/Sources/MultipleMultipleFails/MultipleMultipleFails.swift b/tests/multiple-tests-multiple-fails/Sources/MultipleTestsMultipleFails/MultipleTestsMultipleFails.swift similarity index 100% rename from tests/multiple-tests-multiple-fails/Sources/MultipleMultipleFails/MultipleMultipleFails.swift rename to tests/multiple-tests-multiple-fails/Sources/MultipleTestsMultipleFails/MultipleTestsMultipleFails.swift diff --git a/tests/multiple-tests-multiple-fails/Tests/LinuxMain.swift b/tests/multiple-tests-multiple-fails/Tests/LinuxMain.swift index 73e684b..8ab085a 100644 --- a/tests/multiple-tests-multiple-fails/Tests/LinuxMain.swift +++ b/tests/multiple-tests-multiple-fails/Tests/LinuxMain.swift @@ -1,6 +1,6 @@ -import MultipleMultipleFailsTests +import MultipleTestsMultipleFailsTests import XCTest var tests = [XCTestCaseEntry]() -tests += MultipleMultipleFailsTests.allTests() +tests += MultipleTestsMultipleFailsTests.allTests() XCTMain(tests) diff --git a/tests/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/MultipleMultipleFailsTests.swift b/tests/multiple-tests-multiple-fails/Tests/MultipleTestsMultipleFailsTests/MultipleTestsMultipleFailsTests.swift similarity index 75% rename from tests/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/MultipleMultipleFailsTests.swift rename to tests/multiple-tests-multiple-fails/Tests/MultipleTestsMultipleFailsTests/MultipleTestsMultipleFailsTests.swift index a737f27..20bcb2a 100644 --- a/tests/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/MultipleMultipleFailsTests.swift +++ b/tests/multiple-tests-multiple-fails/Tests/MultipleTestsMultipleFailsTests/MultipleTestsMultipleFailsTests.swift @@ -1,8 +1,8 @@ import XCTest -@testable import MultipleMultipleFails +@testable import MultipleTestsMultipleFails -final class MultipleMultipleFailsTests: XCTestCase { +final class MultipleTestsMultipleFailsTests: XCTestCase { func testAdd() { XCTAssertEqual(sum(2, 3), 5, "2+3 should equal 5") } diff --git a/tests/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/XCTestManifests.swift b/tests/multiple-tests-multiple-fails/Tests/MultipleTestsMultipleFailsTests/XCTestManifests.swift similarity index 67% rename from tests/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/XCTestManifests.swift rename to tests/multiple-tests-multiple-fails/Tests/MultipleTestsMultipleFailsTests/XCTestManifests.swift index 1bde348..5e0e8d1 100644 --- a/tests/multiple-tests-multiple-fails/Tests/MultipleMultipleFailsTests/XCTestManifests.swift +++ b/tests/multiple-tests-multiple-fails/Tests/MultipleTestsMultipleFailsTests/XCTestManifests.swift @@ -3,7 +3,7 @@ import XCTest #if !canImport(ObjectiveC) public func allTests() -> [XCTestCaseEntry] { return [ - testCase(MultipleMultipleFailsTests.allTests) + testCase(MultipleTestsMultipleFailsTests.allTests) ] } #endif diff --git a/tests/multiple-tests-multiple-fails/expected_results.json b/tests/multiple-tests-multiple-fails/expected_results.json index 1c3d3b9..cac6586 100644 --- a/tests/multiple-tests-multiple-fails/expected_results.json +++ b/tests/multiple-tests-multiple-fails/expected_results.json @@ -1,19 +1,19 @@ { - "status" : "fail", - "tests" : [ + "status": "fail", + "tests": [ { - "message" : "\/home\/wdn\/dev\/exercism\/swift-test-runner\/test\/multiple-tests-multiple-fails\/Tests\/MultipleMultipleFailsTests\/MultipleMultipleFailsTests.swift:7: error: MultipleMultipleFailsTests.testAdd : XCTAssertEqual failed: (\"-1\") is not equal to (\"5\") - 2+3 should equal 5", - "name" : "MultipleMultipleFailsTests.testAdd", - "status" : "fail" + "message": "/home/wdn/dev/exercism/swift-test-runner/test/multiple-tests-multiple-fails/Tests/MultipleTestsMultipleFailsTests/MultipleTestsMultipleFailsTests.swift:7: error: MultipleTestsMultipleFailsTests.testAdd : XCTAssertEqual failed: (\"-1\") is not equal to (\"5\") - 2+3 should equal 5", + "name": "MultipleTestsMultipleFailsTests.testAdd", + "status": "fail" }, { - "message" : "\/home\/wdn\/dev\/exercism\/swift-test-runner\/test\/multiple-tests-multiple-fails\/Tests\/MultipleMultipleFailsTests\/MultipleMultipleFailsTests.swift:11: error: MultipleMultipleFailsTests.testSub : XCTAssertEqual failed: (\"5\") is not equal to (\"-1\") - ", - "name" : "MultipleMultipleFailsTests.testSub", - "status" : "fail" + "message": "/home/wdn/dev/exercism/swift-test-runner/test/multiple-tests-multiple-fails/Tests/MultipleTestsMultipleFailsTests/MultipleTestsMultipleFailsTests.swift:11: error: MultipleTestsMultipleFailsTests.testSub : XCTAssertEqual failed: (\"5\") is not equal to (\"-1\") - ", + "name": "MultipleTestsMultipleFailsTests.testSub", + "status": "fail" }, { - "name" : "MultipleMultipleFailsTests.testMul", - "status" : "pass" + "name": "MultipleTestsMultipleFailsTests.testMul", + "status": "pass" } ] -} \ No newline at end of file +} diff --git a/tests/multiple-tests-single-fail/Package.swift b/tests/multiple-tests-single-fail/Package.swift index e310a14..4651b6d 100644 --- a/tests/multiple-tests-single-fail/Package.swift +++ b/tests/multiple-tests-single-fail/Package.swift @@ -4,12 +4,12 @@ import PackageDescription let package = Package( - name: "MultipleSingleFail", + name: "MultipleTestsSingleFail", products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. .library( - name: "MultipleSingleFail", - targets: ["MultipleSingleFail"]), + name: "MultipleTestsSingleFail", + targets: ["MultipleTestsSingleFail"]), ], dependencies: [ // Dependencies declare other packages that this package depends on. @@ -19,10 +19,10 @@ let package = Package( // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages which this package depends on. .target( - name: "MultipleSingleFail", + name: "MultipleTestsSingleFail", dependencies: []), .testTarget( - name: "MultipleSingleFailTests", - dependencies: ["MultipleSingleFail"]), + name: "MultipleTestsSingleFailTests", + dependencies: ["MultipleTestsSingleFail"]), ] ) diff --git a/tests/multiple-tests-single-fail/Sources/MultipleSingleFail/MultipleSingleFail.swift b/tests/multiple-tests-single-fail/Sources/MultipleTestsSingleFail/MultipleTestsSingleFail.swift similarity index 100% rename from tests/multiple-tests-single-fail/Sources/MultipleSingleFail/MultipleSingleFail.swift rename to tests/multiple-tests-single-fail/Sources/MultipleTestsSingleFail/MultipleTestsSingleFail.swift diff --git a/tests/multiple-tests-single-fail/Tests/LinuxMain.swift b/tests/multiple-tests-single-fail/Tests/LinuxMain.swift index 5380f37..ce25265 100644 --- a/tests/multiple-tests-single-fail/Tests/LinuxMain.swift +++ b/tests/multiple-tests-single-fail/Tests/LinuxMain.swift @@ -1,6 +1,6 @@ -import MultipleSingleFailTests +import MultipleTestsSingleFailTests import XCTest var tests = [XCTestCaseEntry]() -tests += MultipleSingleFailTests.allTests() +tests += MultipleTestsSingleFailTests.allTests() XCTMain(tests) diff --git a/tests/multiple-tests-single-fail/Tests/MultipleSingleFailTests/MultipleSingleFailTests.swift b/tests/multiple-tests-single-fail/Tests/MultipleTestsSingleFailTests/MultipleTestsSingleFailTests.swift similarity index 93% rename from tests/multiple-tests-single-fail/Tests/MultipleSingleFailTests/MultipleSingleFailTests.swift rename to tests/multiple-tests-single-fail/Tests/MultipleTestsSingleFailTests/MultipleTestsSingleFailTests.swift index 7895664..67071d2 100644 --- a/tests/multiple-tests-single-fail/Tests/MultipleSingleFailTests/MultipleSingleFailTests.swift +++ b/tests/multiple-tests-single-fail/Tests/MultipleTestsSingleFailTests/MultipleTestsSingleFailTests.swift @@ -1,8 +1,8 @@ import XCTest -@testable import MultipleSingleFail +@testable import MultipleTestsSingleFail -final class MultipleSingleFailTests: XCTestCase { +final class MultipleTestsSingleFailTests: XCTestCase { let runAll = Bool(ProcessInfo.processInfo.environment["RUNALL", default: "false"]) ?? false func testAdd() { diff --git a/tests/multiple-tests-single-fail/Tests/MultipleSingleFailTests/XCTestManifests.swift b/tests/multiple-tests-single-fail/Tests/MultipleTestsSingleFailTests/XCTestManifests.swift similarity index 74% rename from tests/multiple-tests-single-fail/Tests/MultipleSingleFailTests/XCTestManifests.swift rename to tests/multiple-tests-single-fail/Tests/MultipleTestsSingleFailTests/XCTestManifests.swift index 4f72e30..4a0b6d6 100644 --- a/tests/multiple-tests-single-fail/Tests/MultipleSingleFailTests/XCTestManifests.swift +++ b/tests/multiple-tests-single-fail/Tests/MultipleTestsSingleFailTests/XCTestManifests.swift @@ -3,7 +3,7 @@ import XCTest #if !canImport(ObjectiveC) public func allTests() -> [XCTestCaseEntry] { return [ - testCase(MultipleSingleFailTests.allTests), + testCase(MultipleTestsSingleFailTests.allTests), testCase(SecondSuite.allTests), ] } diff --git a/tests/multiple-tests-single-fail/expected_results.json b/tests/multiple-tests-single-fail/expected_results.json index 0055ece..6ab835f 100644 --- a/tests/multiple-tests-single-fail/expected_results.json +++ b/tests/multiple-tests-single-fail/expected_results.json @@ -1,37 +1,37 @@ { - "status" : "fail", - "tests" : [ + "status": "fail", + "tests": [ { - "message" : "\/home\/wdn\/dev\/exercism\/swift-test-runner\/test\/multiple-tests-single-fail\/Tests\/MultipleSingleFailTests\/MultipleSingleFailTests.swift:9: error: MultipleSingleFailTests.testAdd : XCTAssertEqual failed: (\"0\") is not equal to (\"5\") - 2+3 should equal 5", - "name" : "MultipleSingleFailTests.testAdd", - "output" : "yabba…", - "status" : "fail" + "message": "/home/wdn/dev/exercism/swift-test-runner/test/multiple-tests-single-fail/Tests/MultipleTestsSingleFailTests/MultipleTestsSingleFailTests.swift:9: error: MultipleTestsSingleFailTests.testAdd : XCTAssertEqual failed: (\"0\") is not equal to (\"5\") - 2+3 should equal 5", + "name": "MultipleTestsSingleFailTests.testAdd", + "output": "yabba…", + "status": "fail" }, { - "name" : "MultipleSingleFailTests.testSub", - "output" : "dabba…", - "status" : "pass" + "name": "MultipleTestsSingleFailTests.testSub", + "output": "dabba…", + "status": "pass" }, { - "name" : "MultipleSingleFailTests.testMul", - "output" : "Benedick's speech is 674 character's long.\nI will not be sworn but love may transform me to an oyster,\nbut I’ll take my oath on it, till he have made an oyster of me,\nhe shall never make me such a fool. One woman is fair, yet\nI am well; another is wise, yet I am well; another virtuous,\n25yet I am well; but till all graces be in one woman, one\nwoman shall not come in my grace. Rich she shall be, that’s\ncertain; wise, or I’ll none; virtuous, or I’ll never cheapen\nher; fair, or I’ll ever look on h…", - "status" : "pass" + "name": "MultipleTestsSingleFailTests.testMul", + "output": "Benedick's speech is 674 character's long.\nI will not be sworn but love may transform me to an oyster,\nbut I’ll take my oath on it, till he have made an oyster of me,\nhe shall never make me such a fool. One woman is fair, yet\nI am well; another is wise, yet I am well; another virtuous,\n25yet I am well; but till all graces be in one woman, one\nwoman shall not come in my grace. Rich she shall be, that’s\ncertain; wise, or I’ll none; virtuous, or I’ll never cheapen\nher; fair, or I’ll ever look on h…", + "status": "pass" }, { - "message" : "\/home\/wdn\/dev\/exercism\/swift-test-runner\/test\/multiple-tests-single-fail\/Tests\/MultipleSingleFailTests\/MultipleSingleFailTests.swift:34: error: SecondSuite.testAdd : XCTAssertEqual failed: (\"0\") is not equal to (\"25\") - 12+13 should equal 25", - "name" : "SecondSuite.testAdd", - "output" : "yabba…", - "status" : "fail" + "message": "/home/wdn/dev/exercism/swift-test-runner/test/multiple-tests-single-fail/Tests/MultipleTestsSingleFailTests/MultipleTestsSingleFailTests.swift:34: error: SecondSuite.testAdd : XCTAssertEqual failed: (\"0\") is not equal to (\"25\") - 12+13 should equal 25", + "name": "SecondSuite.testAdd", + "output": "yabba…", + "status": "fail" }, { - "name" : "SecondSuite.testSub", - "output" : "dabba…", - "status" : "pass" + "name": "SecondSuite.testSub", + "output": "dabba…", + "status": "pass" }, { - "name" : "SecondSuite.testMul", - "output" : "Benedick's speech is 674 character's long.\nI will not be sworn but love may transform me to an oyster,\nbut I’ll take my oath on it, till he have made an oyster of me,\nhe shall never make me such a fool. One woman is fair, yet\nI am well; another is wise, yet I am well; another virtuous,\n25yet I am well; but till all graces be in one woman, one\nwoman shall not come in my grace. Rich she shall be, that’s\ncertain; wise, or I’ll none; virtuous, or I’ll never cheapen\nher; fair, or I’ll ever look on h…", - "status" : "pass" + "name": "SecondSuite.testMul", + "output": "Benedick's speech is 674 character's long.\nI will not be sworn but love may transform me to an oyster,\nbut I’ll take my oath on it, till he have made an oyster of me,\nhe shall never make me such a fool. One woman is fair, yet\nI am well; another is wise, yet I am well; another virtuous,\n25yet I am well; but till all graces be in one woman, one\nwoman shall not come in my grace. Rich she shall be, that’s\ncertain; wise, or I’ll none; virtuous, or I’ll never cheapen\nher; fair, or I’ll ever look on h…", + "status": "pass" } ] -} \ No newline at end of file +} diff --git a/tests/multiple-tests-with-exception/Package.swift b/tests/multiple-tests-with-exception/Package.swift index 501b2b9..c126fbb 100644 --- a/tests/multiple-tests-with-exception/Package.swift +++ b/tests/multiple-tests-with-exception/Package.swift @@ -4,12 +4,12 @@ import PackageDescription let package = Package( - name: "MultipleWithException", + name: "MultipleTestsWithException", products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. .library( - name: "MultipleWithException", - targets: ["MultipleWithException"]) + name: "MultipleTestsWithException", + targets: ["MultipleTestsWithException"]) ], dependencies: [ // Dependencies declare other packages that this package depends on. @@ -19,10 +19,10 @@ let package = Package( // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages which this package depends on. .target( - name: "MultipleWithException", + name: "MultipleTestsWithException", dependencies: []), .testTarget( - name: "MultipleWithExceptionTests", - dependencies: ["MultipleWithException"]), + name: "MultipleTestsWithExceptionTests", + dependencies: ["MultipleTestsWithException"]), ] ) diff --git a/tests/multiple-tests-with-exception/Sources/MultipleWithException/MultipleWithException.swift b/tests/multiple-tests-with-exception/Sources/MultipleTestsWithException/MultipleTestsWithException.swift similarity index 100% rename from tests/multiple-tests-with-exception/Sources/MultipleWithException/MultipleWithException.swift rename to tests/multiple-tests-with-exception/Sources/MultipleTestsWithException/MultipleTestsWithException.swift diff --git a/tests/multiple-tests-with-exception/Tests/LinuxMain.swift b/tests/multiple-tests-with-exception/Tests/LinuxMain.swift index 23dbd17..a5492f6 100644 --- a/tests/multiple-tests-with-exception/Tests/LinuxMain.swift +++ b/tests/multiple-tests-with-exception/Tests/LinuxMain.swift @@ -1,6 +1,6 @@ -import MultipleWithExceptionTests +import MultipleTestsWithExceptionTests import XCTest var tests = [XCTestCaseEntry]() -tests += MultipleWithExceptionTests.allTests() +tests += MultipleTestsWithExceptionTests.allTests() XCTMain(tests) diff --git a/tests/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/MultipleWithExceptionTests.swift b/tests/multiple-tests-with-exception/Tests/MultipleTestsWithExceptionTests/MultipleTestsWithExceptionTests.swift similarity index 80% rename from tests/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/MultipleWithExceptionTests.swift rename to tests/multiple-tests-with-exception/Tests/MultipleTestsWithExceptionTests/MultipleTestsWithExceptionTests.swift index 98a6b84..2774166 100644 --- a/tests/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/MultipleWithExceptionTests.swift +++ b/tests/multiple-tests-with-exception/Tests/MultipleTestsWithExceptionTests/MultipleTestsWithExceptionTests.swift @@ -1,8 +1,8 @@ import XCTest -@testable import MultipleWithException +@testable import MultipleTestsWithException -final class MultipleWithExceptionTests: XCTestCase { +final class MultipleTestsWithExceptionTests: XCTestCase { func testAdd() { XCTAssertEqual(sum(2, 3), 5, "2+3 should equal 5") } diff --git a/tests/multiple-tests-with-exception/Tests/MultipleTestsWithExceptionTests/XCTestManifests.swift b/tests/multiple-tests-with-exception/Tests/MultipleTestsWithExceptionTests/XCTestManifests.swift new file mode 100644 index 0000000..9926250 --- /dev/null +++ b/tests/multiple-tests-with-exception/Tests/MultipleTestsWithExceptionTests/XCTestManifests.swift @@ -0,0 +1,9 @@ +import XCTest + +#if !canImport(ObjectiveC) + public func allTests() -> [XCTestCaseEntry] { + return [ + testCase(MultipleTestsWithExceptionTests.allTests) + ] + } +#endif diff --git a/tests/multiple-tests-with-exception/expected_results.json b/tests/multiple-tests-with-exception/expected_results.json index 5c61440..6dd796a 100644 --- a/tests/multiple-tests-with-exception/expected_results.json +++ b/tests/multiple-tests-with-exception/expected_results.json @@ -1,22 +1,22 @@ { - "status" : "fail", - "tests" : [ + "status": "fail", + "tests": [ { - "name" : "MultipleWithExceptionTests.testAdd", - "status" : "pass" + "name": "MultipleTestsWithExceptionTests.testAdd", + "status": "pass" }, { - "name" : "MultipleWithExceptionTests.testSub", - "status" : "pass" + "name": "MultipleTestsWithExceptionTests.testSub", + "status": "pass" }, { - "name" : "MultipleWithExceptionTests.testMul", - "status" : "pass" + "name": "MultipleTestsWithExceptionTests.testMul", + "status": "pass" }, { - "message" : "\/home\/wdn\/dev\/exercism\/swift-test-runner\/test\/multiple-tests-with-exception\/Tests\/MultipleWithExceptionTests\/MultipleWithExceptionTests.swift:19: error: MultipleWithExceptionTests.testThrow : XCTAssertEqual threw error \"testError(\"Oh noes! Div by zeroes!!!\")\" - ", - "name" : "MultipleWithExceptionTests.testThrow", - "status" : "fail" + "message": "/home/wdn/dev/exercism/swift-test-runner/test/multiple-tests-with-exception/Tests/MultipleTestsWithExceptionTests/MultipleTestsWithExceptionTests.swift:19: error: MultipleTestsWithExceptionTests.testThrow : XCTAssertEqual threw error \"testError(\"Oh noes! Div by zeroes!!!\")\" - ", + "name": "MultipleTestsWithExceptionTests.testThrow", + "status": "fail" } ] -} \ No newline at end of file +} diff --git a/tests/single-test-that-fails/Package.swift b/tests/single-test-that-fails/Package.swift index ec316d6..e9bf88f 100644 --- a/tests/single-test-that-fails/Package.swift +++ b/tests/single-test-that-fails/Package.swift @@ -4,12 +4,12 @@ import PackageDescription let package = Package( - name: "SingleThatFails", + name: "SingleTestThatFails", products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. .library( - name: "SingleThatFails", - targets: ["SingleThatFails"]), + name: "SingleTestThatFails", + targets: ["SingleTestThatFails"]), ], dependencies: [ // Dependencies declare other packages that this package depends on. @@ -19,10 +19,10 @@ let package = Package( // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages which this package depends on. .target( - name: "SingleThatFails", + name: "SingleTestThatFails", dependencies: []), .testTarget( - name: "SingleThatFailsTests", - dependencies: ["SingleThatFails"]), + name: "SingleTestThatFailsTests", + dependencies: ["SingleTestThatFails"]), ] ) diff --git a/tests/single-test-that-fails/Sources/SingleThatFails/SingleThatFails.swift b/tests/single-test-that-fails/Sources/SingleTestThatFails/SingleTestThatFails.swift similarity index 100% rename from tests/single-test-that-fails/Sources/SingleThatFails/SingleThatFails.swift rename to tests/single-test-that-fails/Sources/SingleTestThatFails/SingleTestThatFails.swift diff --git a/tests/single-test-that-fails/Tests/LinuxMain.swift b/tests/single-test-that-fails/Tests/LinuxMain.swift index cb1beda..4d279bc 100644 --- a/tests/single-test-that-fails/Tests/LinuxMain.swift +++ b/tests/single-test-that-fails/Tests/LinuxMain.swift @@ -1,6 +1,6 @@ -import SingleThatFailsTests +import SingleTestThatFailsTests import XCTest var tests = [XCTestCaseEntry]() -tests += SingleThatFailsTests.allTests() +tests += SingleTestThatFailsTests.allTests() XCTMain(tests) diff --git a/tests/single-test-that-fails/Tests/SingleThatFailsTests/SingleThatFailsTests.swift b/tests/single-test-that-fails/Tests/SingleTestThatFailsTests/SingleTestThatFailsTests.swift similarity index 63% rename from tests/single-test-that-fails/Tests/SingleThatFailsTests/SingleThatFailsTests.swift rename to tests/single-test-that-fails/Tests/SingleTestThatFailsTests/SingleTestThatFailsTests.swift index d456db7..9882958 100644 --- a/tests/single-test-that-fails/Tests/SingleThatFailsTests/SingleThatFailsTests.swift +++ b/tests/single-test-that-fails/Tests/SingleTestThatFailsTests/SingleTestThatFailsTests.swift @@ -1,8 +1,8 @@ import XCTest -@testable import SingleThatFails +@testable import SingleTestThatFails -final class SingleThatFailsTests: XCTestCase { +final class SingleTestThatFailsTests: XCTestCase { func testAdd() { XCTAssertEqual(sum(2, 3), 5, "2+3 should equal 5") } diff --git a/tests/single-test-that-passes/Tests/SingleThatPassesTests/XCTestManifests.swift b/tests/single-test-that-fails/Tests/SingleTestThatFailsTests/XCTestManifests.swift similarity index 70% rename from tests/single-test-that-passes/Tests/SingleThatPassesTests/XCTestManifests.swift rename to tests/single-test-that-fails/Tests/SingleTestThatFailsTests/XCTestManifests.swift index 76f6b7a..425c116 100644 --- a/tests/single-test-that-passes/Tests/SingleThatPassesTests/XCTestManifests.swift +++ b/tests/single-test-that-fails/Tests/SingleTestThatFailsTests/XCTestManifests.swift @@ -3,7 +3,7 @@ import XCTest #if !canImport(ObjectiveC) public func allTests() -> [XCTestCaseEntry] { return [ - testCase(SingleThatPassesTests.allTests) + testCase(SingleTestThatFailsTests.allTests) ] } #endif diff --git a/tests/single-test-that-fails/expected_results.json b/tests/single-test-that-fails/expected_results.json index 939bd57..bc016ef 100644 --- a/tests/single-test-that-fails/expected_results.json +++ b/tests/single-test-that-fails/expected_results.json @@ -1,10 +1,10 @@ { - "status" : "fail", - "tests" : [ + "status": "fail", + "tests": [ { - "message" : "\/home\/wdn\/dev\/exercism\/swift-test-runner\/test\/single-test-that-fails\/Tests\/SingleThatFailsTests\/SingleThatFailsTests.swift:7: error: SingleThatFailsTests.testAdd : XCTAssertEqual failed: (\"-1\") is not equal to (\"5\") - 2+3 should equal 5", - "name" : "SingleThatFailsTests.testAdd", - "status" : "fail" + "message": "/home/wdn/dev/exercism/swift-test-runner/test/single-test-that-fails/Tests/SingleTestThatFailsTests/SingleTestThatFailsTests.swift:7: error: SingleTestThatFailsTests.testAdd : XCTAssertEqual failed: (\"-1\") is not equal to (\"5\") - 2+3 should equal 5", + "name": "SingleTestThatFailsTests.testAdd", + "status": "fail" } ] -} \ No newline at end of file +} diff --git a/tests/single-test-that-passes/Package.swift b/tests/single-test-that-passes/Package.swift index 6c54388..b2d3e43 100644 --- a/tests/single-test-that-passes/Package.swift +++ b/tests/single-test-that-passes/Package.swift @@ -4,12 +4,12 @@ import PackageDescription let package = Package( - name: "SingleThatPasses", + name: "SingleTestThatPasses", products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. .library( - name: "SingleThatPasses", - targets: ["SingleThatPasses"]), + name: "SingleTestThatPasses", + targets: ["SingleTestThatPasses"]), ], dependencies: [ // Dependencies declare other packages that this package depends on. @@ -19,10 +19,10 @@ let package = Package( // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages which this package depends on. .target( - name: "SingleThatPasses", + name: "SingleTestThatPasses", dependencies: []), .testTarget( - name: "SingleThatPassesTests", - dependencies: ["SingleThatPasses"]), + name: "SingleTestThatPassesTests", + dependencies: ["SingleTestThatPasses"]), ] ) diff --git a/tests/single-test-that-passes/Sources/SingleThatPasses/SingleThatPasses.swift b/tests/single-test-that-passes/Sources/SingleTestThatPasses/SingleTestThatPasses.swift similarity index 100% rename from tests/single-test-that-passes/Sources/SingleThatPasses/SingleThatPasses.swift rename to tests/single-test-that-passes/Sources/SingleTestThatPasses/SingleTestThatPasses.swift diff --git a/tests/single-test-that-passes/Tests/LinuxMain.swift b/tests/single-test-that-passes/Tests/LinuxMain.swift index c2aee5c..916e248 100644 --- a/tests/single-test-that-passes/Tests/LinuxMain.swift +++ b/tests/single-test-that-passes/Tests/LinuxMain.swift @@ -1,6 +1,6 @@ -import SingleThatPassesTests +import SingleTestThatPassesTests import XCTest var tests = [XCTestCaseEntry]() -tests += SingleThatPassesTests.allTests() +tests += SingleTestThatPassesTests.allTests() XCTMain(tests) diff --git a/tests/single-test-that-passes/Tests/SingleThatPassesTests/SingleThatPassesTests.swift b/tests/single-test-that-passes/Tests/SingleTestThatPassesTests/SingleTestThatPassesTests.swift similarity index 62% rename from tests/single-test-that-passes/Tests/SingleThatPassesTests/SingleThatPassesTests.swift rename to tests/single-test-that-passes/Tests/SingleTestThatPassesTests/SingleTestThatPassesTests.swift index 8a8d431..13e26eb 100644 --- a/tests/single-test-that-passes/Tests/SingleThatPassesTests/SingleThatPassesTests.swift +++ b/tests/single-test-that-passes/Tests/SingleTestThatPassesTests/SingleTestThatPassesTests.swift @@ -1,8 +1,8 @@ import XCTest -@testable import SingleThatPasses +@testable import SingleTestThatPasses -final class SingleThatPassesTests: XCTestCase { +final class SingleTestThatPassesTests: XCTestCase { func testAdd() { XCTAssertEqual(sum(2, 3), 5, "2+3 should equal 5") } diff --git a/tests/single-test-that-fails/Tests/SingleThatFailsTests/XCTestManifests.swift b/tests/single-test-that-passes/Tests/SingleTestThatPassesTests/XCTestManifests.swift similarity index 70% rename from tests/single-test-that-fails/Tests/SingleThatFailsTests/XCTestManifests.swift rename to tests/single-test-that-passes/Tests/SingleTestThatPassesTests/XCTestManifests.swift index d35899b..09dab25 100644 --- a/tests/single-test-that-fails/Tests/SingleThatFailsTests/XCTestManifests.swift +++ b/tests/single-test-that-passes/Tests/SingleTestThatPassesTests/XCTestManifests.swift @@ -3,7 +3,7 @@ import XCTest #if !canImport(ObjectiveC) public func allTests() -> [XCTestCaseEntry] { return [ - testCase(SingleThatFailsTests.allTests) + testCase(SingleTestThatPassesTests.allTests) ] } #endif diff --git a/tests/single-test-that-passes/expected_results.json b/tests/single-test-that-passes/expected_results.json index 4472e04..2227a83 100644 --- a/tests/single-test-that-passes/expected_results.json +++ b/tests/single-test-that-passes/expected_results.json @@ -1,9 +1,9 @@ { - "status" : "pass", - "tests" : [ + "status": "pass", + "tests": [ { - "name" : "SingleThatPassesTests.testAdd", - "status" : "pass" + "name": "SingleTestThatPassesTests.testAdd", + "status": "pass" } ] -} \ No newline at end of file +} diff --git a/tests/single-test-with-exception/Package.swift b/tests/single-test-with-exception/Package.swift index bfe3bc9..3262ff1 100644 --- a/tests/single-test-with-exception/Package.swift +++ b/tests/single-test-with-exception/Package.swift @@ -4,12 +4,12 @@ import PackageDescription let package = Package( - name: "SingleWithException", + name: "SingleTestWithException", products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. .library( - name: "SingleWithException", - targets: ["SingleWithException"]), + name: "SingleTestWithException", + targets: ["SingleTestWithException"]), ], dependencies: [ // Dependencies declare other packages that this package depends on. @@ -19,10 +19,10 @@ let package = Package( // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages which this package depends on. .target( - name: "SingleWithException", + name: "SingleTestWithException", dependencies: []), .testTarget( - name: "SingleWithExceptionTests", - dependencies: ["SingleWithException"]), + name: "SingleTestWithExceptionTests", + dependencies: ["SingleTestWithException"]), ] ) diff --git a/tests/single-test-with-exception/Sources/SingleWithException/SingleWithException.swift b/tests/single-test-with-exception/Sources/SingleTestWithException/SingleTestWithException.swift similarity index 100% rename from tests/single-test-with-exception/Sources/SingleWithException/SingleWithException.swift rename to tests/single-test-with-exception/Sources/SingleTestWithException/SingleTestWithException.swift diff --git a/tests/single-test-with-exception/Tests/LinuxMain.swift b/tests/single-test-with-exception/Tests/LinuxMain.swift index 778ae21..0ce37a8 100644 --- a/tests/single-test-with-exception/Tests/LinuxMain.swift +++ b/tests/single-test-with-exception/Tests/LinuxMain.swift @@ -1,6 +1,6 @@ -import SingleWithExceptionTests +import SingleTestWithExceptionTests import XCTest var tests = [XCTestCaseEntry]() -tests += SingleWithExceptionTests.allTests() +tests += SingleTestWithExceptionTests.allTests() XCTMain(tests) diff --git a/tests/single-test-with-exception/Tests/SingleWithExceptionTests/SingleWithExceptionTests.swift b/tests/single-test-with-exception/Tests/SingleTestWithExceptionTests/SingleTestWithExceptionTests.swift similarity index 61% rename from tests/single-test-with-exception/Tests/SingleWithExceptionTests/SingleWithExceptionTests.swift rename to tests/single-test-with-exception/Tests/SingleTestWithExceptionTests/SingleTestWithExceptionTests.swift index 376a9c2..8b19aeb 100644 --- a/tests/single-test-with-exception/Tests/SingleWithExceptionTests/SingleWithExceptionTests.swift +++ b/tests/single-test-with-exception/Tests/SingleTestWithExceptionTests/SingleTestWithExceptionTests.swift @@ -1,8 +1,8 @@ import XCTest -@testable import SingleWithException +@testable import SingleTestWithException -final class SingleWithExceptionTests: XCTestCase { +final class SingleTestWithExceptionTests: XCTestCase { func testAdd() { XCTAssertEqual(try sum(2, 3), 5, "2+3 should equal 5") } diff --git a/tests/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/XCTestManifests.swift b/tests/single-test-with-exception/Tests/SingleTestWithExceptionTests/XCTestManifests.swift similarity index 68% rename from tests/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/XCTestManifests.swift rename to tests/single-test-with-exception/Tests/SingleTestWithExceptionTests/XCTestManifests.swift index cbab108..86df0f1 100644 --- a/tests/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/XCTestManifests.swift +++ b/tests/single-test-with-exception/Tests/SingleTestWithExceptionTests/XCTestManifests.swift @@ -3,7 +3,7 @@ import XCTest #if !canImport(ObjectiveC) public func allTests() -> [XCTestCaseEntry] { return [ - testCase(MultipleWithExceptionTests.allTests) + testCase(SingleTestWithExceptionTests.allTests) ] } #endif diff --git a/tests/single-test-with-exception/Tests/SingleWithExceptionTests/XCTestManifests.swift b/tests/single-test-with-exception/Tests/SingleWithExceptionTests/XCTestManifests.swift deleted file mode 100644 index 61fb57b..0000000 --- a/tests/single-test-with-exception/Tests/SingleWithExceptionTests/XCTestManifests.swift +++ /dev/null @@ -1,9 +0,0 @@ -import XCTest - -#if !canImport(ObjectiveC) - public func allTests() -> [XCTestCaseEntry] { - return [ - testCase(SingleWithExceptionTests.allTests) - ] - } -#endif diff --git a/tests/single-test-with-exception/expected_results.json b/tests/single-test-with-exception/expected_results.json index 3200ae4..59cbf62 100644 --- a/tests/single-test-with-exception/expected_results.json +++ b/tests/single-test-with-exception/expected_results.json @@ -1,10 +1,10 @@ { - "status" : "fail", - "tests" : [ + "status": "fail", + "tests": [ { - "message" : "\/home\/wdn\/dev\/exercism\/swift-test-runner\/test\/single-test-with-exception\/Tests\/SingleWithExceptionTests\/SingleWithExceptionTests.swift:7: error: SingleWithExceptionTests.testAdd : XCTAssertEqual threw error \"testError(\"Kaboomtown!\")\" - 2+3 should equal 5", - "name" : "SingleWithExceptionTests.testAdd", - "status" : "fail" + "message": "/home/wdn/dev/exercism/swift-test-runner/test/single-test-with-exception/Tests/SingleTestWithExceptionTests/SingleTestWithExceptionTests.swift:7: error: SingleTestWithExceptionTests.testAdd : XCTAssertEqual threw error \"testError(\"Kaboomtown!\")\" - 2+3 should equal 5", + "name": "SingleTestWithExceptionTests.testAdd", + "status": "fail" } ] -} \ No newline at end of file +} From 2d76393a4c67463c57e8ebacb11327e3e58f79c6 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 16 Apr 2021 13:49:46 +0200 Subject: [PATCH 10/13] Remove unneeded comment --- src/testrunner/Sources/TestRunner/main.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testrunner/Sources/TestRunner/main.swift b/src/testrunner/Sources/TestRunner/main.swift index a46e9b9..5003ad2 100644 --- a/src/testrunner/Sources/TestRunner/main.swift +++ b/src/testrunner/Sources/TestRunner/main.swift @@ -67,11 +67,11 @@ let process = Process() #if os(macOS) var testFileRoot = options.solutionDirectory process.launchPath = options.swiftLocation - process.currentDirectoryPath = testFileRoot// + options.slug + process.currentDirectoryPath = testFileRoot #else var testFileRoot = URL(fileURLWithPath: options.solutionDirectory) process.executableURL = URL(fileURLWithPath: options.swiftLocation) - process.currentDirectoryURL = testFileRoot//.appendingPathComponent(options.slug) + process.currentDirectoryURL = testFileRoot #endif process.arguments = ["test", "--build-path", tempDir.path] From 6d810eb7d5ea184ebc7eeb2d2f38976786d8ca11 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 16 Apr 2021 13:58:22 +0200 Subject: [PATCH 11/13] Simplify run --- bin/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/run.sh b/bin/run.sh index 391b426..aa543d2 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -31,6 +31,6 @@ mkdir -p "${output_dir}" echo "${slug}: testing..." # Run the tests for the provided implementation file -RUNALL=true ./bin/TestRunner --slug "${slug}" --solution-directory "${input_dir}" --output-directory "${output_dir}" --swift-location $(which swift) --build-directory "/tmp/" +RUNALL=true ./bin/TestRunner --slug "${slug}" --solution-directory "${input_dir}" --output-directory "${output_dir}" --swift-location $(which swift) --build-directory "/tmp" echo "${slug}: done" From 58a6e54b57db1178926f4de3fd8149e9ef45b3ed Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 16 Apr 2021 14:12:43 +0200 Subject: [PATCH 12/13] Upgrade to swift 5.3 --- src/testrunner/Package.swift | 2 +- tests/compile-error/Package.swift | 2 +- tests/multiple-tests-all-pass/Package.swift | 2 +- tests/multiple-tests-multiple-fails/Package.swift | 2 +- tests/multiple-tests-single-fail/Package.swift | 2 +- tests/multiple-tests-with-exception/Package.swift | 2 +- tests/single-test-that-fails/Package.swift | 2 +- tests/single-test-that-passes/Package.swift | 2 +- tests/single-test-with-exception/Package.swift | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/testrunner/Package.swift b/src/testrunner/Package.swift index f7953b4..800d733 100644 --- a/src/testrunner/Package.swift +++ b/src/testrunner/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.2 +// swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription diff --git a/tests/compile-error/Package.swift b/tests/compile-error/Package.swift index b0183f0..1a275ee 100644 --- a/tests/compile-error/Package.swift +++ b/tests/compile-error/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.2 +// swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription diff --git a/tests/multiple-tests-all-pass/Package.swift b/tests/multiple-tests-all-pass/Package.swift index 775f117..d219472 100644 --- a/tests/multiple-tests-all-pass/Package.swift +++ b/tests/multiple-tests-all-pass/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.2 +// swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription diff --git a/tests/multiple-tests-multiple-fails/Package.swift b/tests/multiple-tests-multiple-fails/Package.swift index 1a52df0..6636eca 100644 --- a/tests/multiple-tests-multiple-fails/Package.swift +++ b/tests/multiple-tests-multiple-fails/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.2 +// swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription diff --git a/tests/multiple-tests-single-fail/Package.swift b/tests/multiple-tests-single-fail/Package.swift index 4651b6d..2236076 100644 --- a/tests/multiple-tests-single-fail/Package.swift +++ b/tests/multiple-tests-single-fail/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.2 +// swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription diff --git a/tests/multiple-tests-with-exception/Package.swift b/tests/multiple-tests-with-exception/Package.swift index c126fbb..b18e7e8 100644 --- a/tests/multiple-tests-with-exception/Package.swift +++ b/tests/multiple-tests-with-exception/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.2 +// swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription diff --git a/tests/single-test-that-fails/Package.swift b/tests/single-test-that-fails/Package.swift index e9bf88f..be97e84 100644 --- a/tests/single-test-that-fails/Package.swift +++ b/tests/single-test-that-fails/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.2 +// swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription diff --git a/tests/single-test-that-passes/Package.swift b/tests/single-test-that-passes/Package.swift index b2d3e43..8ca6adb 100644 --- a/tests/single-test-that-passes/Package.swift +++ b/tests/single-test-that-passes/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.2 +// swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription diff --git a/tests/single-test-with-exception/Package.swift b/tests/single-test-with-exception/Package.swift index 3262ff1..ce51030 100644 --- a/tests/single-test-with-exception/Package.swift +++ b/tests/single-test-with-exception/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.2 +// swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription From 9f019e94f23b2a4cc1b40b55afbc7d539df0f937 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 16 Apr 2021 14:13:44 +0200 Subject: [PATCH 13/13] Pin version in Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ea396a2..eac3673 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM swift:latest AS builder +FROM swift:5.3.3-bionic AS builder COPY src/testrunner ./ RUN swift --version RUN swift build --configuration release -FROM swift:latest +FROM swift:5.3.3-bionic WORKDIR /opt/test-runner/ COPY bin/ bin/ COPY --from=builder /.build/release/TestRunner bin/