Skip to content

Add instructions to run tests locally - #1792

Draft
santisoler wants to merge 1 commit into
mainfrom
pytest-instructions
Draft

santisoler wants to merge 1 commit into
mainfrom
pytest-instructions

Conversation

@santisoler

Copy link
Copy Markdown
Member

Summary

Include instructions on how to run tests locally using pytest to the Contributor guide.

PR Checklist

  • If this is a work in progress PR, set as a Draft PR
  • Linted my code according to the style guides.
  • Added tests to verify changes to the code.
  • Added necessary documentation to any new functions/classes following the
    expect style.
  • Marked as ready for review (if this is was a draft PR), and converted
    to a Pull Request
  • Tagged @simpeg/simpeg-developers when ready for review.

Reference issue

Fix #1340

What does this implement/fix?

Additional information

Include instructions on how to run tests locally using `pytest` to the
Contributor guide.
@codecov

codecov Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.75%. Comparing base (0a002be) to head (2422168).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1792      +/-   ##
==========================================
- Coverage   81.75%   81.75%   -0.01%     
==========================================
  Files         425      425              
  Lines       55773    55773              
  Branches     5298     5298              
==========================================
- Hits        45600    45595       -5     
- Misses       8761     8763       +2     
- Partials     1412     1415       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@santisoler santisoler added this to the 0.26.0 milestone Sep 8, 2026
@santisoler

Copy link
Copy Markdown
Member Author

The recommended line to run test will lead to failure because dask tests are also being triggered. That means the simpeg.dask module will be imported and some classes will get overwritten methods that will make some tests to fail.

@santisoler santisoler removed this from the 0.26.0 milestone Sep 24, 2026
@santisoler santisoler added this to the 0.27.0 milestone Oct 6, 2026
Comment on lines +41 to +42
where ``-v`` stands for the ``--verbose`` option, that will make ``pytest`` to show more information regarding the tests.
By adding the ``--cov`` and the ``--cov-conf`` options, we can also get a coverage report after running the tests locally.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the prose says --cov-conf but the command right above uses --cov-config, and pytest-cov 7.1 rejects the short one (unrecognized arguments: --cov-conf), so I'd match it. also dropped the "to" in "make pytest to show".

Suggested change
where ``-v`` stands for the ``--verbose`` option, that will make ``pytest`` to show more information regarding the tests.
By adding the ``--cov`` and the ``--cov-conf`` options, we can also get a coverage report after running the tests locally.
where ``-v`` stands for the ``--verbose`` option, that will make ``pytest`` show more information regarding the tests.
By adding the ``--cov`` and the ``--cov-config`` options, we can also get a coverage report after running the tests locally.

@santisoler
santisoler marked this pull request as draft October 13, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DOC: Extend instructions on how to run tests locally with pytest

2 participants