Skip to content

Commit a225228

Browse files
authored
Duplicating the XUnit tests for RSpec API (#45)
* Duplicating the XUnit tests for RSpec API * Fix xunit-syntax-error typo * Add whitespace to insure redeployment
1 parent 8341499 commit a225228

File tree

69 files changed

+394
-113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+394
-113
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN apt-get update \
1515
&& rm -rf /var/lib/apt/lists/* \
1616
# Remove 30MB of icons that are not necessary
1717
&& rm -rf /usr/share/icons
18-
18+
1919
WORKDIR /opt/test-runner
2020
COPY bin/run.sh bin/run.sh
2121
ENTRYPOINT ["/opt/test-runner/bin/run.sh"]

bin/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ cp -r "${solution_dir}/." "${tmp_dir}"
3838
cd "${tmp_dir}"
3939

4040
jq -r '.files.test[]' .meta/config.json | while read -r test_file; do
41-
sed -i 's/test.skip/test/g' "${test_file}"
41+
sed -i -E 's/(test|it).skip/\1/g' "${test_file}"
4242
done
4343

4444
test_output=$(arturo tester.art 2>&1)

tests/all-fail/expected_results.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/empty-file/expected_results.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/panic-fails/expected_results.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/partial-fail/expected_results.json

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"authors": [
3+
"erikschierboom"
4+
],
5+
"files": {
6+
"solution": [
7+
"src/rspec-partial-fail.art"
8+
],
9+
"test": [
10+
"tests/test-rspec-partial-fail.art"
11+
],
12+
"example": [
13+
".meta/src/example.art"
14+
],
15+
"invalidator": [
16+
"tester.art"
17+
]
18+
},
19+
"blurb": "Determine whether a given year is a leap year.",
20+
"source": "CodeRanch Cattle Drive, Assignment 3",
21+
"source_url": "https://coderanch.com/t/718816/Leap"
22+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"version": 1,
3+
"status": "fail",
4+
"message": "\n===== tests/test-rspec-partial-fail.art =====\n\nDescription: Leap \n \n \u001b[0;33m✅ - assert that a year not divisible by 4 is a common year\u001b[0m\n \u001b[0;32m✅: false? false\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 4 and not divisible by 100 is a leap year\u001b[0m\n \u001b[0;31m❌: true? false\u001b[0m\n\n\n\n===== Statistics =====\n\n ⏏️ TOTAL: 2 assertions\n✅ PASSED: 1 assertions\n⏩ SKIPPED: 0 assertions\n❌ FAILED: 1 assertions\n\n===== ========== =====\n\n\n\u001b[0;31m══╡ \u001b[1;31mProgram Error\u001b[0;31m ╞═════════════════════════════════════════════════ <script> ══\u001b[0m\n\n Some tests have been failed!"
5+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
isLeap?: function [year][
2+
false
3+
]
File renamed without changes.

0 commit comments

Comments
 (0)