aiidateam / aiida-workgraph

Efficiently design and manage flexible workflows with AiiDA, featuring an interactive GUI, checkpoints, provenance tracking, and remote execution capabilities.
https://aiida-workgraph.readthedocs.io/en/latest/
MIT License
9 stars 5 forks source link

Add rudimentary frontend tests for all functionalities #221

Closed agoscinski closed 4 weeks ago

agoscinski commented 1 month ago

For the frontend and backend tests new profiles are created to separate the effects of workgraph tests from the GUI.

Also only one workgraph is run for the frontend tests to save time.

Implements request in issue #159

TODO:

codecov-commenter commented 4 weeks ago

Codecov Report

Attention: Patch coverage is 24.82270% with 106 lines in your changes missing coverage. Please review.

Project coverage is 79.28%. Comparing base (5937b88) to head (6f54315). Report is 27 commits behind head on main.

Files Patch % Lines
tests/web/frontend/test_frontend.py 16.50% 86 Missing :warning:
tests/web/frontend/conftest.py 37.50% 15 Missing :warning:
tests/web/backend/conftest.py 64.28% 5 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #221 +/- ## ========================================== + Coverage 75.75% 79.28% +3.53% ========================================== Files 70 62 -8 Lines 4615 4413 -202 ========================================== + Hits 3496 3499 +3 + Misses 1119 914 -205 ``` | [Flag](https://app.codecov.io/gh/aiidateam/aiida-workgraph/pull/221/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aiidateam) | Coverage Δ | | |---|---|---| | [python-3.11](https://app.codecov.io/gh/aiidateam/aiida-workgraph/pull/221/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aiidateam) | `79.15% <24.82%> (+3.48%)` | :arrow_up: | | [python-3.12](https://app.codecov.io/gh/aiidateam/aiida-workgraph/pull/221/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aiidateam) | `79.17% <24.82%> (?)` | | | [python-3.9](https://app.codecov.io/gh/aiidateam/aiida-workgraph/pull/221/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aiidateam) | `79.22% <24.82%> (+3.48%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aiidateam#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

agoscinski commented 4 weeks ago

Done. Locally the tests run through.