You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Executing all CLIMADA unit tests takes between 4 to 5 minutes. I was wondering if we could reduce that a bit. The advantage would be that testing CLIMADA against multiple versions of Python would be more feasible, which in turn would make upgrading to new Python versions easier (see #596).
I executed the unit tests with duration reports and these are the tests that take the most time:
Looking at these numbers, I think it might be feasible to reduce the overall runtime of the unit tests by about 1 min. Options for reducing the run time include:
Moving tests to the integration tests
Reducing the amount of data to be loaded (e.g., self-made exemplary data instead of "real-world data")
"Simplifying" tests (quotation marks because it is also unclear to me how each test could be simplified)
The text was updated successfully, but these errors were encountered:
Executing all CLIMADA unit tests takes between 4 to 5 minutes. I was wondering if we could reduce that a bit. The advantage would be that testing CLIMADA against multiple versions of Python would be more feasible, which in turn would make upgrading to new Python versions easier (see #596).
I executed the unit tests with duration reports and these are the tests that take the most time:
Unit Test Durations
How to replicate this on your machine:
conda activate climada_env conda install pytest pytest-subtests cd climada_python pytest --durations=0 --durations-min=1 climada/engine/ climada/entity/ climada/hazard/ climada/util/
Looking at these numbers, I think it might be feasible to reduce the overall runtime of the unit tests by about 1 min. Options for reducing the run time include:
The text was updated successfully, but these errors were encountered: