Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend examples to tests #81

Open
katauber opened this issue Jan 25, 2022 · 0 comments
Open

Extend examples to tests #81

katauber opened this issue Jan 25, 2022 · 0 comments

Comments

@katauber
Copy link
Member

Here are some ideas how we can build a test environment on basis of the examples:

  • every file with a link need a result file with the expected output
  • playground can convert a workflow-link to a result-call-link to compare with the expected output
  • this could be a start for a full testsuite, compare discussions in metafacture-fix about use cases and test suites
  • a submenu in the playground with access to all examples and test cases
  • add a target editor with format and green/red light if output and desired target format match
  • button to take over target format (copies output to target editor)
  • complete test links: input, flux, fix, targt data as parameter, process -> red or green light
  • possible to generate HTML-Spec from examples; table with playground links, result calls, target data, red/green status; also for Catmandu

original notes by @fsteeg :

  • zu jeder Link-Datei eine entsprechende Ergebnis-Datei mit dem erwarteten Output;
  • Playground kann aus Share-Link einen Result-Call machen, Ergebnis mit dem erwarteten vergleichen;
  • das können wir zu einer umfassenden Testsuite ausbauen, vgl. Diskussion in metafacture-fix rund um use cases / test suites
  • Im Playground, ev. als Untermenü, kompletter Zugriff auf alle Beispiele / Test Cases, die verklinkbar, ergänzbar für Issues / Tests / etc.
  • Im Playground ev. Editor-Bereich mit Zielformat und grünem Licht wenn Output und Ziel übereinstimmen, man hat ja meistens ein Ziel im Kopf beim transformieren
  • Mit Knopf beim Output zum "Übernehmen als Zielformat" (kopiert aktuelles Output in den Ziel-Editor)
  • Dann komplette Test-Links möglich: input, flux, fix, zieldaten als Parameter, ausführen -> Rot oder Grün
  • Damit generierte HTML-Spec aus den Beispielen möglich: Tabelle mit Playground-Links, Result-Call, Zieldaten, Rot/Grün-Statusbildchen; auch für Catmandu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

2 participants