CleanCut / green

Green is a clean, colorful, fast python test runner.
MIT License
785 stars 75 forks source link

Re-run tests on file save? #246

Closed vck3000 closed 2 years ago

vck3000 commented 3 years ago

Hey guys,

Loving this library!

Coming from NodeJS's Jest testing framework, a feature I've sorely missed is auto-rerunning the tests on file save. I couldn't find any information in green's README, so I was wondering if this had been considered before. From what I've seen, I haven't found a Python testing framework that supports this feature!

I could try to write up a PR for it if this feature is approved :).

Edit: Currently I'm using entr to mimic this behaviour. I use find -name "*.py" | entr -c green -vv.

CleanCut commented 3 years ago

Hi, thanks for you kind words!

I am not planning on implementing a feature like this since, as you demonstrated, it's pretty straight forward to do externally. If you would like to write up a PR, I'd be happy to review it and accept it if it's straightforward. Note that it would have to work on macOS, Linux, and Windows.

CleanCut commented 2 years ago

I'm going to go ahead and close this issue in favor of continuing the conversation on your PR #249

vck3000 commented 2 years ago

Yeap, sorry. This has been on my mind and I have been wanting to do it. I'll get to this soon! Thank you.

CleanCut commented 2 years ago

No worries, there's no rush. 😄