[FEATURE] Improve OS test extendability and readability
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- c
- Ambito
- embedded-iot, operating-systems, testing-qa
Direzione di ricerca
Inizia esaminando i moduli OS Test, in particolare aio.c, e il supporto esistente per Unity testing-framework in NuttX. Confronta la struttura attuale dei casi e l'output della console con le convenzioni di Unity. Done dovrebbe significare che la suite OS Test ha una struttura coerente e leggibile per i casi di test e segnala chiaramente i test superati e falliti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
OS Test is the primary testing mechanism for NuttX. It is used on virtually all PRs to check for regressions in kernel code changes, and is also used as a basis for verifying that a new board has successfully gotten NuttX ported and running.
However, the output from OS test is a little cryptic when looking at it for the first time. It is often difficult to determine what tests have been run, what the output means and which tests have even passed/failed. There are many components to OS test, provided by different contributors, and they all have different outputs in the console which lead to more confusion.
It is also difficult to determine what the tests are right away by looking at the code. For instance, the aio.c test file contains a large code block with tests separated by comments that say "Case 1", "Case 2", etc. It requires effort to read and understand, but could be easier.
Describe the solution you'd like
My proposal is that OS Test be re-factored to use the Unity testing framework already supported by NuttX. This is a very lightweight testing framework that provides a structured approach to adding, writing and running test cases, as well as a nice summary output in the console that makes it clear which tests have passed or failed.
Since Unity is lightweight, works well and is supported by NuttX, I think moving to this approach would provide a clearly defined way for devs to add test cases and review the results of running the tests easily. The separated structure of test cases also means it will be easy to look at the test modules like aio.c and determine what tests already exist, what they do and maybe help to identify gaps that could use more tests.
Describe alternatives you've considered
I have considered just re-factoring the tests to have a more unified and structured output in the console, which would improve the ability of judging pass/fail results from logs, but that would require maintaining our own standard and I think it would be more work in the long run. Same for code-structure wise.
Verification
- I have verified before submitting the report.
- Lingua principale
- C
- Stelle
- 474
- Fork
- 807
- Merge medio
- 1g 11h
- PR unite (30g)
- 181
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/nuttx-apps
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
apache/nuttx-apps#4108 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[FEATURE] Shrink getprime runs for OSTestForse già presa @linguini1 l’ha presa 41 giorni fa. ApertaType: Enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
apache/nuttx-apps#3620 · 6 commenti · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 50/100
apache/nuttx-apps#4107 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[TODO] move graphics/input -> input.Forse di nuovo libera @cederom l’ha presa 241 giorni fa e non c’è nessuna pull request aperta. Aperta
apache/nuttx-apps#3436 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Community: Question
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
apache/nuttx-apps#3134 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di apache/nuttx-apps
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
trezor/trezor-firmware#8357 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue kernel
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
JackFurton/who-would-build-a-kernel-in-java#316 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
PE5PVB/TEF6686_ESP32#970 ·
-
bug sev-3
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100