diff --git a/.gitignore b/.gitignore index 5ee9fbf..14e6df7 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,6 @@ doc/api/ # JetBrains IDEs .idea/ + +# Directory created by w_test_tools to hold test reports +test-reports/ \ No newline at end of file diff --git a/run_tests.sh b/run_tests.sh new file mode 100755 index 0000000..69087f2 --- /dev/null +++ b/run_tests.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -ex + +RESULT=0 + +filename="test-reports/test_output" + +dart pub get + +dart test --file-reporter=json:$filename.json || RESULT=1 + +dart pub global run w_test_tools:xunit_parser -j "$filename.json" -t "$filename.xml" + +rm "$filename.json" + +exit $RESULT \ No newline at end of file diff --git a/skynet.yaml b/skynet.yaml new file mode 100644 index 0000000..78aa3ef --- /dev/null +++ b/skynet.yaml @@ -0,0 +1,12 @@ +name: unit-tests +description: Unit tests +contact: 'Frontend Frameworks Architecture / #support-frontend-architecture' +image: drydock.workiva.net/workiva/dart_unit_test_image:1 +size: large +timeout: 600 + +artifacts: /testing/test-reports +test-reports: /testing/test-reports + +scripts: + - /testing/run_tests.sh \ No newline at end of file