anapaulagomes / pytest-picked

Run the tests related to the changed files (according to Git) 🤓
MIT License
368 stars 16 forks source link

Add a way to change the default parent branch #148

Closed mikicz closed 1 year ago

mikicz commented 1 year ago

Hi, love the package, it's super useful!

I do have one feature proposal - at my org we've migrated all our repositories to use main as the primary branch (as opposed to master), meaning that by default using --mode=branch doesn't work, one has to always specify --parent-branch=main, which gets a bit old. I would love if there was a way to permanently set the default parent branch, maybe through an environment variable or configuration in pytest.ini or similar?

Thanks

anapaulagomes commented 1 year ago

Hi @mikicz! Thank you for your message and sorry for taking so long. I couldn't reply you before.

So, I totally agree. Currently, I'm taking the dust out of the project, and making main as the default branch will be the next issue up. :)

anapaulagomes commented 1 year ago

For general information: plugins' configuration can be done using the adopts section in pytest's configuration file. https://docs.pytest.org/en/stable/reference/customize.html