Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

tests: Factor out common helper functions to separate Python module.#18313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
dpgeorge wants to merge1 commit intomicropython:master
base:master
Choose a base branch
Loading
fromdpgeorge:tests-factor-out-common-helpers

Conversation

@dpgeorge
Copy link
Member

Summary

The test runners have evolved over time and become more and more complex. In particulartests/run-tests.py is rather large now. The test runners also duplicate some functionality amongst themselves.

The grand idea is to consolidate them, factor code and eliminate duplication. To start that process, this PR just factors out the helper functions fromrun-tests.py into a newtest_utils.py file, and uses that new module in all test runners.

There should be no function change here.

Testing

Tested locally, running all test runners on the unix port and a board.

Will also be tested by CI.

Trade-offs and Alternatives

Open to suggestions for the name of the helper module (currentlytest_utils.py).

@dpgeorgedpgeorge added the testsRelates to tests/ directory in source labelOct 22, 2025
@codecov
Copy link

codecovbot commentedOct 22, 2025
edited
Loading

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.39%. Comparing base (2082a4d) to head (3928f3e).

Additional details and impacted files
@@           Coverage Diff           @@##           master   #18313   +/-   ##=======================================  Coverage   98.39%   98.39%           =======================================  Files         171      171             Lines       22290    22290           =======================================  Hits        21933    21933             Misses        357      357

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dpgeorgedpgeorgeforce-pushed thetests-factor-out-common-helpers branch 2 times, most recently from1b16b20 to9dbdb81CompareOctober 22, 2025 07:28
The test runners have evolved over time and become more and more complex.In particular `tests/run-tests.py` is rather large now.  The test runnersalso duplicate some functionality amongst themselves.As a start to improving this situation, this commit factors out the helperfunctions from `run-tests.py` into a new `test_utils.py` file, and usesthat new module in all test runners.There should be no functional change here.Signed-off-by: Damien George <damien@micropython.org>
@dpgeorgedpgeorgeforce-pushed thetests-factor-out-common-helpers branch from9dbdb81 to3928f3eCompareOctober 22, 2025 07:37
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

testsRelates to tests/ directory in source

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@dpgeorge

[8]ページ先頭

©2009-2025 Movatter.jp