Skip to content

Stop tests from skipping silently, and fix the Windows test PATH - #29

Merged
dav-og merged 3 commits into
devfrom
test/no-silent-skips
Dec 4, 2026
Merged

dav-og merged 3 commits into
devfrom
test/no-silent-skips

Conversation

@dav-og

@dav-og dav-og commented Dec 3, 2026

Copy link
Copy Markdown
Member

Two defects in the test infrastructure.

Silent skips. test_demo_features.py exited with 0 when pytest skipped some
of its tests, so the MHKiT writer tests were left out wherever MHKiT is not
installed, including continuous integration. Run as a script, it now returns
the skip code when any test was skipped, and the Chrono jobs install MHKiT
from data/demos/run_seastack/features/requirements.txt.

Windows test PATH. The environment of the C++ unit tests was set as
"PATH=

;;...", which CMake reads as a list of entries, so PATH
became the first directory alone. The DLL directories are now put in front
of the PATH of the test run.

Without MHKiT installed, a local ctest run now shows
test_demo_features_python as skipped instead of passed.

test_demo_features.py exited with 0 when pytest skipped some of its tests,
so the MHKiT writer tests were left out without a trace wherever MHKiT is not
installed, including continuous integration. Run as a script, it now returns
the skip code when any test was skipped. The Chrono jobs install MHKiT from
the requirements file of the demo feature tools, so all of its tests run.
The test environment was set as "PATH=<dir>;<dir>;...", which CMake reads as
a list of entries, so PATH became the first directory alone. The directories
are now put in front of the PATH of the test run (CMake 3.22 and newer); for
CMake 3.21 the separators are escaped so that the value stays one entry.
The step that deletes the report sources ran whenever both Chrono jobs had
passed, also when the PDF job itself had failed or been cancelled. A re-run
of the PDF job then had nothing to convert. The sources are now deleted only
after the reports were converted and uploaded.

The steps that install Ubuntu packages get a limit of 10 minutes. In one run
two of them hung until the 30-minute limit of their jobs; they normally take
under two minutes.
@dav-og
dav-og marked this pull request as ready for review December 4, 2026 09:46
@dav-og
dav-og merged commit 0d1b380 into dev Dec 4, 2026
8 checks passed
@dav-og
dav-og deleted the test/no-silent-skips branch December 4, 2026 09:47
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.

1 participant