Tracking: Test generator MVP
@mk-mxp ci sta già lavorando.
Dal 23/2/2024.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Test generator MVP to use after configlet generate for practice exercises:
- #638 Integrate POC test generator into new directory
contrib/generator, so it is not installed in CI - #638 Add a parameter to choose the exercise by slug
- #638 Use local
configletcached problem specification repository as information source - #663 Do not do anything, if exercise has no canonical-data (there are some)
- #663 Use
/exercises/practice/${slug}/.meta/config.json>files>testand check that there is only one entry - #638 Write tests to already created
/exercises/practice/${slug} - #638 Have test class skeleton
- #663 Have test class DocBlock with "PHP track rules"
- #638 Have testdox with description
- #638 Have UUID in DocBlock
- #638 Have all tests marked incomplete
- #663 Have
$input,$expected - #663 Have
$subject = new ${PascalSlug};,$actual = $subject->${property}($input);andassertSame($expected, $actual); - #663 Handle unknown data, so the user can act on it
- #663 Handle nested groups of tests
- Bonus: Add composer script to handle exercise generation from scratch. The problem is handling the
slugrequired for exercise generation. That requires some additional scripting, so that only those commands get the slug that need it and the others do not fail. - #663 adds unit tests, but no integration tests
Bonus: Add golden tests for test generation of some exercises - #663 handles unknow data instead
Bonus: Add JSON validation using theconfigletscheme (if that exists), else at least field existance and character sets - Bonus: Add PHP CodeSniffer (with rules for test-generator only) and more static analysis
Not MVP:
- Producing production ready tests
- scenarios
- Reimplementation
- Ignoring tests marked with
include = falseintests.toml
Open questions:
- Should it be a single command app or do we want to add more commands like
update-exercise(or so)? - Should we use another code producer library like
laminas/laminas-code?
- Lingua principale
- PHP
- Stelle
- 167
- Fork
- 150
- Merge medio
- 1g 18h
- PR unite (30g)
- 7
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun 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 exercism/php
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
-
Re-design `allergies`Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Discussion: Test generator designForse di nuovo libera @mk-mxp l’ha presa 372 giorni fa e non c’è nessuna pull request aperta. Aperta
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
Tutte le issue di exercism/php
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
L: java:gradle L: java:maven L: ruby:bundler T: bug 🐞
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
dependabot/dependabot-core#16547 ·
I maintainer di solito rispondono entro 1 giorno
-
cloning objets from planningAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
glpi-project/glpi#25922 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Automattic/safe-publish#726 ·
I maintainer di solito rispondono entro 1 giorno
-
Translation TwigBridge
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
symfony/symfony-docs#23308 ·
I maintainer di solito rispondono entro 3 giorni