BCDA-APS / mdaviz

Data visualization for mda
https://bcda-aps.github.io/mdaviz/
Other
3 stars 0 forks source link

start unit testing #121

Closed prjemian closed 1 month ago

prjemian commented 2 months ago
prjemian commented 2 months ago

Tests pass in GitHub Actions! Example:

2024-04-24T16:30:25.8141358Z ============================= test session starts ==============================
2024-04-24T16:30:25.8143974Z platform linux -- Python 3.12.3, pytest-8.1.1, pluggy-1.5.0 -- /home/runner/micromamba/envs/anaconda-test-env-py-3.12/bin/python3.12
2024-04-24T16:30:25.8145713Z cachedir: .pytest_cache
2024-04-24T16:30:25.8146671Z PyQt5 5.15.9 -- Qt runtime 5.15.8 -- Qt compiled 5.15.8
2024-04-24T16:30:25.8147886Z rootdir: /home/runner/work/mdaviz/mdaviz
2024-04-24T16:30:25.8148487Z configfile: pyproject.toml
2024-04-24T16:30:25.8149203Z plugins: anyio-4.3.0, xvfb-3.0.0, cov-5.0.0, qt-4.4.0
2024-04-24T16:30:26.1004410Z collecting ... collected 2 items
2024-04-24T16:30:26.1005003Z 
2024-04-24T16:30:26.3600913Z mdaviz/tests/test_aboutdialog.py::test_about_starts PASSED               [ 50%]
2024-04-24T16:30:26.3745424Z mdaviz/tests/test_app.py::test_app_startup PASSED                        [100%]
2024-04-24T16:30:26.3746373Z 
2024-04-24T16:30:26.3746851Z =============================== warnings summary ===============================
2024-04-24T16:30:26.3748884Z ../../../micromamba/envs/anaconda-test-env-py-3.12/lib/python3.12/site-packages/setuptools_scm/git.py:163
2024-04-24T16:30:26.3752455Z   /home/runner/micromamba/envs/anaconda-test-env-py-3.12/lib/python3.12/site-packages/setuptools_scm/git.py:163: UserWarning: "/home/runner/work/mdaviz/mdaviz" is shallow and may cause errors
2024-04-24T16:30:26.3754176Z     warnings.warn(f'"{wd.path}" is shallow and may cause errors')
2024-04-24T16:30:26.3754615Z 
2024-04-24T16:30:26.3755172Z ../../../micromamba/envs/anaconda-test-env-py-3.12/lib/python3.12/site-packages/mda.py:22
2024-04-24T16:30:26.3756635Z   /home/runner/micromamba/envs/anaconda-test-env-py-3.12/lib/python3.12/site-packages/mda.py:22: DeprecationWarning: 'xdrlib' is deprecated and slated for removal in Python 3.13
2024-04-24T16:30:26.3757897Z     import xdrlib as xdr
2024-04-24T16:30:26.3758178Z 
2024-04-24T16:30:26.3758691Z -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
2024-04-24T16:30:26.3759339Z ======================== 2 passed, 2 warnings in 0.56s =========================