Upgrade to version 3 spec
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- ruby
- Domain
- testing-qa, tooling
Research direction
Read the linked version 3 test runner interface specification, especially the task_id section, then inspect how this runner produces results.json and how exercises expose instructions.md and .meta/config.json. Done means each applicable test can be associated with its instructions.md task number and the output follows the version 3 format.
Written by the indexing model from the issue text.
Description
If possible, this test runner should be updated to version 3 of the test runner interface specification. In version 3, one additional feature is enabled: the ability to link individual tests to tasks. This allows the website to show which tests belong to which tasks.
The way tests are linked to tasks is via an (optional) task_id field (see the specification), which is an integer that matches the number of the task as defined in the exercise's instructions.md file (note: the instructions start at index 1).
This is an example of a test in the results.json file:
{
"name": "Expected oven time in minutes",
"status": "pass",
"task_id": 1,
"test_code": "Assert.Equal(40, Lasagna.ExpectedMinutesInOven());"
}
You are completely free in how to implement this. Some options are:
- Add metadata to a test that the test runner can then discover while running the tests (e.g. an attribute or annotation)
- Define a test name/task id mapping (e.g. in the exercise's
.meta/config.jsonfile) - Any other option you can think of...
Let me know if there are any questions.
- Dominant language
- Ruby
- Stars
- 6
- Forks
- 12
- Avg merge
- 2h 8m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from exercism/ruby-test-runner
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
exercism/ruby-test-runner#59 · 8 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
exercism/ruby-test-runner#46 · 16 comments ·
All issues in exercism/ruby-test-runner
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
TheOdinProject/curriculum#31408 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
notch8/utk_knapsack#148 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Homebrew/homebrew-cask#288729 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100