سؤال

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?

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top