Skip to content

Run mamba tests with python setup.py test? #135

@MatthewRalston

Description

@MatthewRalston

Hi everyone,
Love this package, thank you...

Uh I had a quick question about how to run mamba tests with python setup.py test. This could be a simpler question about setup.py more than anything else, but maybe other users could find this useful in the issues, so here goes.

I've been referencing the following Stackoverflow post, which suggests that developers use the following to let setup.py automatically run the test suite during setup. It's using unittest to automatically discover tests, and it seems heavily married to that framework.

setup.py

...
test_suite='tests',
...

Other unit testing frameworks provide suggestions, like pytest, which suggests using a setup.cfg to alias the test runner.

I tried looking at the mamba setup.py to see if you're using your own framework to test your framework. I'm guessing there's a right way to do this, and you're in a better position to provide a recommendation here.

EDIT1: typo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions