Definition Integrationstest
Closed this issue · 3 comments
hvwaldow commented
- Mit Ben: Input / Output für Testlauf definieren
JensKrumsieck commented
The PlantGro.OUT is the file BL bases his Plots on
https://github.com/fairagro/uc6_csmTools/blob/4a2d4fe9c2cefebd36d1335ed9932022f77a768f/inst/extdata/lte_seehausen/2_sim/PlantGro.OUT
So i think comparing the computed values with the ones from the linked version would make up a good first integration test :)
JensKrumsieck commented
Benjamins Repo now contains a CI Pipeline doing a full etl pipeline run and an integration test with some checks on the PlantGro.OUT File. The test checks each of the ~63k values in this file respecting its magnitude.
- Test: https://github.com/fairagro/uc6_csmTools/blob/feature/package_management/tests/testthat/test_pipeline_integration.R
- Pipeline: https://github.com/fairagro/uc6_csmTools/blob/feature/package_management/.github/workflows/ci.yml
- Run: https://github.com/fairagro/uc6_csmTools/actions/runs/10178776651/job/28153091016
Found this interesting tool to test GitHub Actions locally: https://github.com/nektos/act
JensKrumsieck commented
The test now is also a separated workflow step. So the workflow is testing itself