nestorsalceda / mamba

The definitive testing tool for Python. Born under the banner of Behavior Driven Development (BDD).
http://nestorsalceda.github.io/mamba
MIT License
518 stars 65 forks source link

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

Open MatthewRalston opened 5 years ago

MatthewRalston commented 5 years ago

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