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

Commits on Aug 31, 2023

  1. tox.ini: move pytest first, before style checkers

    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>
    marc-hb committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    7ea6d35 View commit details
    Browse the repository at this point in the history
  2. README.rst: add pytest examples and mention tox limitations

    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>
    marc-hb committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    d9bb084 View commit details
    Browse the repository at this point in the history