How to setup Bamboo to work with codeception?
Asked Answered
A

1

9

I have been trying to get Bamboo working with codeception tests. I am using codeception to test my code in a symfony project.

After some research I found an article on how to setup Jenkins with codeception.

Once read I figured out that I should use Ant to run the codeception commands that run the tests.

The problem is I don't really know where to put everything. This article explains all the fields for a new Ant task but nothing seem to work.

Can someone please help me?

Aparri answered 31/10, 2013 at 12:36 Comment(0)
E
6

In case anyone else comes across this, this is how I have gotten codeception working in bamboo.

In Admin > Server Capabilities. Add a new executable for Codeception with the path /usr/local/bin/codecept.

In your job, create a new task of type Command. Set the executable as Codeception. The arguments should be run --xml (and any others you need).

Next, create another task with the type of JUnit Parser. Set the custom results directory to tests/_log/*.xml.

This works perfectly for me.

Additional: If you do not have admin rights to the server, set the command executable as PHP and add ./vendor/bin/codecept run --xml as the arguments.

Emitter answered 3/7, 2014 at 13:43 Comment(2)
I am trying to follow the above instruction but facing some difficulties. 1) The way to setup executables is changed and mentioned in confluence.atlassian.com/bamboo/… 2) I am not sure about the path /usr/local/bin/codecept. I installed codeception on my root folder as described on codeception.com/quickstart and so didnt find any folder named codecept under /usr/local/bin/. 3) The job creation is also not clear. So can you please add some more description?Participial
FYI, Installed codeception on my root folder which is /var/atlassian/www/.Participial

© 2022 - 2024 — McMap. All rights reserved.