Bamboo CI Server - how to configure PHPUnit testing
NickName:Przemysław Kojac Ask DateTime:2014-10-12T17:08:11

Bamboo CI Server - how to configure PHPUnit testing

i would like to set up Bamboo CI Server. I've created two stages:

  • Stage 1: "Code checkout" with code checkout.
  • Stage 2: "PHPunit" with testing via phpunit.

Stage 1 is OK, but on stage 2 I have an error. In Build Log I have:

Starting task 'PHPUnit Testing' of type 'com.atlassian.bamboo.plugins.php:task.builder.phpunit'
12-paź-2014 10:45:49    
Beginning to execute external process for build 'CCP - CI - Unit Testing Build - Default Job #4 (CCPCI-UTB-JOB1-4)'
... running command line:
/usr/local/bin/phpunit --log-junit test-reports/phpunit.xml --coverage-html test-reports/coverage/html --bootstrap /var/www/html/ccp/core/tests/bootstrap.php --no-configuration /var/www/html/ccp/core/tests
... in: /home/bamboo/bamboo_home/xml-data/build-dir/CCPCI-UTB-JOB1
12-paź-2014 10:45:49    X-Powered-By: PHP/5.5.11
12-paź-2014 10:45:49    Content-type: text/html
12-paź-2014 10:45:49    
12-paź-2014 10:45:49    Failing task since text 'OK' was not found in last 250 log entries
12-paź-2014 10:45:49    Parsing test results...
12-paź-2014 10:45:49    Finished task 'PHPUnit Testing' 

If in server terminal I execute phpunit command (/usr/local/bin/phpunit --log-junit test-reports/phpunit.xml --coverage-html test-reports/coverage/html --bootstrap /var/www/html/ccp/core/tests/bootstrap.php --no-configuration /var/www/html/ccp/core/tests), everything is correct (there is OK response).

What's wrong with this?

On the overview screen of build there are two errors:

  1. (Job results summary) No failed tests found, a possible compilation error occurred.
  2. (Error summary) Could not find test result reports in the /home/bamboo/bamboo_home/xml-data/build-dir/CCPCI-UTB-JOB1 directory.

I would be grateful for any help.

Copyright Notice:Content Author:「Przemysław Kojac」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/26323524/bamboo-ci-server-how-to-configure-phpunit-testing

More about “Bamboo CI Server - how to configure PHPUnit testing” related questions

Bamboo CI Server - how to configure PHPUnit testing

i would like to set up Bamboo CI Server. I've created two stages: Stage 1: "Code checkout" with code checkout. Stage 2: "PHPunit" with testing via phpunit. Stage 1 is OK, but on stage 2 I have an...

Show Detail

Running GUI Testing on bamboo agent as service

There is a way to run CI of GUI testing in bamboo agent as service on windows server? I don't think it is possible, just run the bamboo agent as a proccess. I am using puppeteer as libray to run th...

Show Detail

Bamboo and Web UI Testing

We have a node.js project that we are building with Atlassian Bamboo. We are doing CI/CD, or that's the plan. We are using Mocha to do Unit/API testing. But I didn't see anything in the task types ...

Show Detail

How to setup phpUnit in Atlassian Bamboo?

I am new to Atlassian Bamboo. I have my code on Atlassian Stash Repository, and I want to run PhpUnit test on my code using Bamboo plan. I have go through documentation but I am not able to create ...

Show Detail

Gitlab CI : ./bin/phpunit: No such file or directory

I try to understand how to use Gitlab CI in a laravel project with PHPUnit. As written in the documentation of Laravel, I have added the PHPUnit-bridge with composer require --dev symfony/phpunit-b...

Show Detail

What to make testing automation using Bamboo server

So far we have been doing manual testing, now We are trying to make testing automation in our Organization. We would like to use bamboo server with Selenium cucumber to achieve this. We have deve...

Show Detail

How to debug MSTest while building on Bamboo CI?

I like to debug MSTests written in C# when these MSTests run as part of build on Bamboo CI (Continuous Integration) as these tests are running OK on my local machine but fails intermittently on Bam...

Show Detail

Not able to configure Allure reports with Bamboo with allure for bamboo plugin

Could you please guide me about integration of Allure with Bamboo. I am trying with below versions to integrate: Atlassian Bamboo version: 5.9.10 Allure for Bamboo: Version 1.7.0 • Bamboo Server...

Show Detail

Setting up Protractor e2e tests with Bamboo CI

We use Protractor to automate our angular app and now need to run those protractor tests from a Bamboo CI server. I'm new to Bamboo and was wondering if anybody could either show me how to or poi...

Show Detail

Is there anyway build php-fpm website on Bamboo CI?

I am new to php-fpm and Bamboo server(atlassian), I have to integrate php-fpm website on bamboo Continuous Integration and Continuous deploy . How can i build php-fpm website on Bamboo CI?

Show Detail