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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

bamboo integration with .NET/Specflow tests

Hello all,

i need some help or point me to the right documents which can help me to run some specflow tests on bamboo server.

 

Regards

1 answer

Hello @shab2908 ,

I think that you might have found an answer to your problem, but just in case:

The dotnet compiler is smart enough to know that Specflow is a test framework and you can use it directly with this command:

dotnet test

If you have problems with it, there's the way Visual Studio offers you:

When you use Specflow with VisualStudio, you have a script file called "runtests.cmd" in your project. When you open it, you can see the commands used to compile and run your tests. If you're not sure of which command you want to use, you can directly execute this script.

In case you're lost in this script, those are the commands called in my case (I just removed the commands that check if there are errors due to a wrong configuration with the PATH):

#build the project
MSBuild.exe "yourProject.csproj"
#go in the packages to use Specflow
cd ..\packages\SpecRun.Runner.*\tools\net45
#execute the tests
SpecRun.exe run --baseFolder "%~dp0\bin\Debug" --log "specrun.log" %2 %3 %4 %5

And here's the Specflow doc to use the test in cmd line:

https://specflow.org/getting-started/#ExecuteAgain

Hope it helps,

Best Regards,

Marc

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

587 views 1 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you