forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Dev/pytest plugin #6
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
PerMac
wants to merge
27
commits into
main
Choose a base branch
from
dev/pytest_plugin
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add initial version of pytest plugin dedicated to run pytest tests in Zephyr project. Co-authored-by: Lukasz Fundakowski <[email protected]> Signed-off-by: Piotr Golyzniak <[email protected]>
Add exemplary shell tests basing on added pytest plugin. Signed-off-by: Piotr Golyzniak <[email protected]>
Change name of pytest plugin to more meaningful one. Signed-off-by: Piotr Golyzniak <[email protected]>
Initial work for pytest-twister-ext plugin. Removed legacy pytest support. Modified Pytest-Harness to generate internal pytest command for hardware-adapter. Modified logic with HarnessImporter, getting harness only once in Runner and passing it to proper Handler. Signed-off-by: Grzegorz Chwierut <[email protected]>
Ported from TwisterV2 logging module. Co-authored-by: Katarzyna Giadla <[email protected]> Signed-off-by: Grzegorz Chwierut <[email protected]>
Integrated QemuAdapter from TwisterV2 Co-authored-by: Lukasz Fundakowski <[email protected]> Signed-off-by: Grzegorz Chwierut <[email protected]>
Integrated SimulatorAdapters from TwisterV2. Co-authored-by: Lukasz Fundakowski <[email protected]> Signed-off-by: Grzegorz Chwierut <[email protected]>
Added sample showing interaction with shell. Signed-off-by: Grzegorz Chwierut <[email protected]>
Some of tests for pytest-twister-ext plugin ported from twisterV2 Co-authored-by: Lukasz Fundakowski <[email protected]> Signed-off-by: Grzegorz Chwierut <[email protected]>
Fix minor typos, add Apache licenses to the files. Signed-off-by: Piotr Golyzniak <[email protected]>
Make else if conditional statement simpler. Signed-off-by: Piotr Golyzniak <[email protected]>
Add possibility to printing pytest output by Twister when it is call with -vv option. Signed-off-by: Piotr Golyzniak <[email protected]>
Remove requirements, which are not used in this plugin version. Signed-off-by: Piotr Golyzniak <[email protected]>
To be able to install plugin in editable mode without egg-link file, I added this pyproject.toml file to indicate to use only setuptools. Signed-off-by: Piotr Golyzniak <[email protected]>
When pytest plugin is not installed, then extend pytest command and export PYTHONPATH during call by Twister. Co-authored-by: Piotr Golyzniak <[email protected]> Signed-off-by: Grzegorz Chwierut <[email protected]>
At this moment only hardware, QEMU and native_posix are handled by pytest plugin so in other cases test should be build only. Signed-off-by: Piotr Golyzniak <[email protected]>
Add integration platforms to exemplary pytest shell sample. Signed-off-by: Piotr Golyzniak <[email protected]>
As per Twister maintainer suggestion, name of plugin was renamed from pytest-twister-ext to pytest-twister-harness. Signed-off-by: Grzegorz Chwierut <[email protected]>
Enforce on users using by default non-installed plugin version when they call it by Twister. If they would like to use them intentionally, then they can use --allow-installed-plugin option. Signed-off-by: Piotr Golyzniak <[email protected]>
Remove requirements.txt files dedicated for pytest plugin to keep only one requirements.txt files dedicated for whole Zephyr project. Signed-off-by: Piotr Golyzniak <[email protected]>
Remove possibility of using additional linters like flake8, isort or mypy to be aligned with Zephyr/Twister coding standard. Signed-off-by: Piotr Golyzniak <[email protected]>
Remove information about possibility of installing pytest plugin by pip. Signed-off-by: Piotr Golyzniak <[email protected]>
This is an initial documentation for integration of twister with pytest plugin. Signed-off-by: Maciej Perkowski <[email protected]>
Was causing compliance issues. This commit will be squashed before the PR is merged Signed-off-by: Maciej Perkowski <[email protected]>
The test was incorrect and is removed. Signed-off-by: Maciej Perkowski <[email protected]>
As suggested in the review. Will be squashed. Signed-off-by: Maciej Perkowski <[email protected]>
Add a stage to twister unit test workflow where tests for pytest-twister-harness are executed. Signed-off-by: Maciej Perkowski <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.