You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #1425osbuild grew support for stage unit tests. These are quick tests that ensure either files, or subprocess calls are performed with the correct arguments and to test schema validation of these stages.
This has been implemented for a few stages but it would be nice to expand on this. You can run the stage tests with pytest -k stages/test in a source checkout or a specific stage unit test with pytest -k stages/test/test_erofs.py.
Here's a list of stages and if they are currently unit tested. If you're adding unit tests to a stage take a look at what current stage unit tests do or previous pull requests (linked below) and mention in this issue that work on it is ongoing.
In #1425
osbuild
grew support for stage unit tests. These are quick tests that ensure either files, or subprocess calls are performed with the correct arguments and to test schema validation of these stages.This has been implemented for a few stages but it would be nice to expand on this. You can run the stage tests with
pytest -k stages/test
in a source checkout or a specific stage unit test withpytest -k stages/test/test_erofs.py
.Here's a list of stages and if they are currently unit tested. If you're adding unit tests to a stage take a look at what current stage unit tests do or previous pull requests (linked below) and mention in this issue that work on it is ongoing.
The text was updated successfully, but these errors were encountered: