From: Trevor Woerner <twoerner@gmail.com>
To: yocto-patches@lists.yoctoproject.org
Subject: [wic][PATCH v2 0/9] tests: standalone test-suite framework plus the first unit test
Date: Tue, 30 Jun 2026 12:06:03 -0400 [thread overview]
Message-ID: <20260630160612.1005451-1-twoerner@gmail.com> (raw)
v1 sent the whole test suite as a single 6000-line commit that leaned on
xfail markers to record the bugs it found. Review feedback was that this
is not reviewable: the request was for a series of small commits where
each test lands green next to the source fix that makes it pass, with no
xfails and no failing tests at any commit boundary.
This v2 is that rework. Rather than resend the entire suite at once, it
establishes the test framework and a single representative test so the
structure and conventions can be reviewed first. Later functions will
follow as their own per-function commits once this base is agreed.
The series contains:
- the suite skeleton (pyproject test config, layout, .gitignore,
README Testing section);
- the conftest session banner;
- the run-tests.sh wrapper, with optional coverage and ruff linting
added in their own commits;
- the suite docs (overview README and authoring guide) and the one
ruff per-file-ignore the sys.path bootstrap needs;
- the first unit test, tests/unit/test_bb_utils, which tests
mkdirhier() and carries the one-line errno-import fix the test
exposes, so the suite is green.
The whole suite is green at every commit (zero failures, zero xfails)
and tests/run-tests.sh --lint-tests is clean throughout.
Trevor Woerner (9):
tests: add the standalone test-suite skeleton
tests: add a session banner via conftest.py
tests: add the run-tests.sh wrapper
tests: add optional coverage reporting to run-tests.sh
tests: add ruff linting to run-tests.sh
tests/docs: add the suite overview README
tests/docs: add the test-authoring guide
tests: ignore E402 in the test tree for the sys.path bootstrap
tests/unit/test_bb_utils: test mkdirhier() and fix its missing errno
import
.gitignore | 10 +++
README.md | 15 ++++
pyproject.toml | 30 +++++++
src/wic/bb/utils.py | 1 +
tests/conftest.py | 38 +++++++++
tests/docs/README.md | 61 ++++++++++++++
tests/docs/authoring.md | 124 ++++++++++++++++++++++++++++
tests/docs/linting.md | 59 +++++++++++++
tests/run-tests.sh | 159 ++++++++++++++++++++++++++++++++++++
tests/unit/.gitkeep | 0
tests/unit/test_bb_utils.py | 126 ++++++++++++++++++++++++++++
11 files changed, 623 insertions(+)
create mode 100644 tests/conftest.py
create mode 100644 tests/docs/README.md
create mode 100644 tests/docs/authoring.md
create mode 100644 tests/docs/linting.md
create mode 100755 tests/run-tests.sh
create mode 100644 tests/unit/.gitkeep
create mode 100644 tests/unit/test_bb_utils.py
--
2.50.0.173.g8b6f19ccfc3a
next reply other threads:[~2026-06-30 16:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 16:06 Trevor Woerner [this message]
2026-06-30 16:06 ` [wic][PATCH v2 1/9] tests: add the standalone test-suite skeleton Trevor Woerner
2026-06-30 16:06 ` [wic][PATCH v2 2/9] tests: add a session banner via conftest.py Trevor Woerner
2026-06-30 16:06 ` [wic][PATCH v2 3/9] tests: add the run-tests.sh wrapper Trevor Woerner
2026-06-30 16:06 ` [wic][PATCH v2 4/9] tests: add optional coverage reporting to run-tests.sh Trevor Woerner
2026-06-30 16:06 ` [wic][PATCH v2 5/9] tests: add ruff linting " Trevor Woerner
2026-06-30 16:06 ` [wic][PATCH v2 6/9] tests/docs: add the suite overview README Trevor Woerner
2026-06-30 16:06 ` [wic][PATCH v2 7/9] tests/docs: add the test-authoring guide Trevor Woerner
2026-06-30 16:06 ` [wic][PATCH v2 8/9] tests: ignore E402 in the test tree for the sys.path bootstrap Trevor Woerner
2026-06-30 16:06 ` [wic][PATCH v2 9/9] tests/unit/test_bb_utils: test mkdirhier() and fix its missing errno import Trevor Woerner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260630160612.1005451-1-twoerner@gmail.com \
--to=twoerner@gmail.com \
--cc=yocto-patches@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.