Skip to content
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

README.rst: add pytest examples and mention tox limitations #682

Merged
merged 2 commits into from
Sep 1, 2023

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Aug 31, 2023

The tox indirection layer is convenient except for the usual problems
caused by too many layers of indirection:

  • Add some examples and show how it is still possible to use important
    pytest features. This is also useful to boost people familiar with
    Python but not with pytest.

  • To stop developers wasting their time trying, document a major
    limitation with the current approach: impossible to run the west
    code in a debugger when it's started from a test.

  • Show how the "printf" alternative can work.

This is required to test code that includes temporary test hacks that
don't pass style checks.

People write ugly code first. Then they make it prettier.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
The tox indirection layer is convenient except for the usual problems
caused by too many layers of indirection:

- Add some examples and show how it is still possible to use important
  pytest features. This is also useful to boost people familiar with
  Python but not with pytest.

- To stop developers wasting their time trying, document a major
  limitation with the current approach: impossible to run the west
  code in a debugger when it's started from a test.

- Show how the "printf" alternative can work.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@mbolivar-ampere mbolivar-ampere merged commit b7e091d into zephyrproject-rtos:main Sep 1, 2023
@marc-hb marc-hb deleted the tox-readme branch September 1, 2023 17:30
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.

2 participants