exercism / exercism/lua-test-runner
Upgrade to version 3 spec
- Lingua principale
- Lua
- Stelle
- 0
- Fork
- 7
- Merge medio
- 9m
- PR unite (30g)
- 1
Descrizione
If possible, this test runner should be updated to version 3 of the [test runner interface specification](https://github.com/exercism/docs/blob/main/building/tooling/test-runners/interface.md). 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, 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:
```json
{
"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:
1. Add metadata to a test that the test runner can then discover while running the tests (e.g. an attribute or annotation)
2. Define a test name/task id mapping (e.g. in the exercise's `.meta/config.json` file)
3. Any other option you can think of...
As this test runner currently implements version 1 of the test runner specification, it might be good to first upgrade to version 2 of the test runner specification before upgrading to version 3.
Let me know if there are any questions.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia leggendo la specifica collegata dell’interfaccia del test runner e verifica come questo test runner Lua implementa attualmente la versione 1. Esamina le istruzioni dell’esercizio instructions.md e il formato di results.json, e valuta se .meta/config.json o i metadati dei test possano rappresentare valori task_id. Il lavoro è completato quando è supportata l’interfaccia della versione 3, in modo che i singoli test possano essere collegati a task numerati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- lua
- Ambito
- tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100