Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to require integration tests in my bitbucket repo?

Deleted user January 5, 2021

We have a small java project which is sometimes run from Maven, sometimes using the IDE's run configurations...

I'd like for each contributor in our repo to not be able to merge code into master that did not pass our simple integration tests.

It doesn't sound like something BitBucket supports but I hope to be pleasantly surprised?
Maybe some test class/tag can be configured in BitBucket and bitbucket runs it and makes sure everything is passing, before allowing a pull request?
Or something like this...

Interested to hear also from the community, what kind of process or "best practice" you have to do this, ideally something automated, because if people are allowed to forget running integration tests then the whole idea is kinda broken :)

Thanks

1 answer

0 votes
Joao Sgreccia
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 11, 2021

Hi @[deleted] ,

I think this is what you are looking for.

https://bitbucket.org/blog/protect-your-master-branch-with-merge-checks

Just let me know if I can help you with something else

Cheers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events