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

pytest with randomly via tox #28

Merged
merged 5 commits into from
Sep 15, 2023

Commits on Sep 12, 2023

  1. gitignore: don't care about __pycache__ dirs

    When running python interpreter directly, it may create __pycache__
    sub-directories. Ignore those.
    
    Signed-off-by: Shachar Sharon <ssharon@ibm.com>
    Shachar Sharon committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    87f11fb View commit details
    Browse the repository at this point in the history
  2. pytest: have top-level conftest.py

    Have top-level 'conftest.py' for pytest's fixtures [1], to allow sharing
    fixtures across multiple files. Begin with an empty file and content as
    needed.
    
    [1] https://docs.pytest.org/en/7.4.x/reference/fixtures.html
    
    Signed-off-by: Shachar Sharon <ssharon@ibm.com>
    Shachar Sharon committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    e60ff4c View commit details
    Browse the repository at this point in the history
  3. tox: pytest via tox-env using randomly

    Use tox to run pytests with all its dependencies. In particular
    configure tox to run pytest using pytest-randomly[1] to have better
    control on random seed and allow reproducing tests seed.
    
    Signed-off-by: Shachar Sharon <ssharon@ibm.com>
    Shachar Sharon committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    48d97e1 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. makefile: run pytests via tox

    Prefer tox with all its glory over raw shell command. Use top-level
    Makefile as an easy wrapper over tox. Assuming tox is already installed
    on local-host/local-user.
    
    Signed-off-by: Shachar Sharon <ssharon@ibm.com>
    Shachar Sharon committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    f9780c6 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. Configuration menu
    Copy the full SHA
    b18c4ae View commit details
    Browse the repository at this point in the history