Skip to content
Snippets Groups Projects
Commit ca48036d authored by Anne Philipp's avatar Anne Philipp
Browse files

update docu for devs about testing

parent 79bc9b94
No related branches found
No related tags found
No related merge requests found
File added
Abhängigkeiten: Abhängigkeiten:
---------------
pytest pytest
pytest-cov (https://pypi.org/project/pytest-cov/ ; https://pytest-cov.readthedocs.io/en/latest/) pytest-cov (https://pypi.org/project/pytest-cov/ ; https://pytest-cov.readthedocs.io/en/latest/)
coverage coverage
mock
Markers für testzusammenstellun:
(für die tests muss ein aktuelles certificate eingerichtet sein!)
---------------------------------
msuser_pw
gateway (für diese Variante müssen kurzfristig die Umgebungsvariablen ECUID und ECGID für den User gesetzt werden!)
#Grundsätzlicher Befehl die Coverage des Testens zu überprüfen #Grundsätzlicher Befehl die Coverage des Testens zu überprüfen
pytest --cov=PATH_TO_PROJECT_SRC PATH_TO_TEST_SRC pytest --cov=PATH_TO_PROJECT_SRC PATH_TO_TEST_SRC
......
File added
_____________________________________________________________________________________________
Metrics:
________
Code Metrics:
Performance Metrics:
_____________________________________________________________________________________________
Testcases:
__________
- unit tests of each function
- Compare the parameter lists passed to the mars requests! (Regression)
- Complete installation test with local sample webapi request before sending email
- test imports of gribapi, eccodes, webapi
- test the types of parameters after controlfile /args reading and the checks
- test complete extractions of a specific selection of cases -> are they fully extracted?
* all final files in destination dir?
* contains each file the specified parameter?
* compare numerically....field per field?
* plot comparison? manually
_____________________________________________________________________________________________
\ No newline at end of file
Datensets: od, ei, ea, cera
(je nach verfügbarkeit eta / gauss / omega )
- jeweils: minimal grid (zb 1d, 1°), global, über Datumsgrenze
- jeweils: grob/high resolution soweit möglich
- jeweils pro Datenstream!!!
- verschiedene zeitliche Auflösung
- public vs memberstate access
-
- realistisches Datenset: OP, 0.1°, 60-137 , 20°N - 90°N, -180° - + 180°, jeweils eta und gauss
Testdatensätze:
- ERA5
- full resolution vs minimal resolution, testgrid
- 1h / 3h / 6h
- public vs member state
- eta
- CERA
- full resolution vs minimal resolution, testgrid
- 3h / 6h
- public vs member state
- eta
- ERA-Interim
- full resolution vs minimal resolution, testgrid
- 3h / 6h
- public vs member state
- gauss
- Operational
- full resolution vs minimal resolution
- area: e.g. atm challenge2016 transition over 180°, europe, testgrid
- basetime 00/12
- maxstep > 24
- type: AN/FC/CF/CV/PF
- 1h/3h/6h
- eta vs gauss
-
mars_requests:
all controlfiles from old and new to be compared!
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment