how to run sub suites of tests on branches from single git repo

we have a single git repo w/ a number of differing products. we would like to configure bamboo so that when a checkin happens against a branch we can run only a subset of the entire test suite against this branch. ideally, we would like to associate test suites to dirs & run tests based on which dirs were altered. is there a way to do this using bamboo?

2 answers

0 votes

You can achive this on per-branch basis using Plan Branches and Plan variables.

Set up a Plan on your 'master' branch and define the Tasks you need. When defining test suites that should be run use a variable. e.g ${bamboo.testSuites2Run}. Set it to some reasonable default. Use "polling repository for changes" trigger.

Now create Plan Branches for each of your branches. On each Plan Brach define the variable "testSuites2Run" to a value appropriate for branch.

As for running test suites based on content of the commit: this is only possible by creating a plugin

0 votes

You can achive this on per-branch basis using Plan Branches and Plan variables.

Set up a Plan on your 'master' branch and define the Tasks you need. When defining test suites that should be run use a variable. e.g ${bamboo.testSuites2Run}. Set it to some reasonable default. Use "polling repository for changes" trigger.

Now create Plan Branches for each of your branches. On each Plan Brach define the variable "testSuites2Run" to a value appropriate for branch.

As for running test suites based on content of the commit: this is only possible by creating a plugin

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,064 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot