Questa immagine avvia i test di codeception in background. Per farlo รจ necessario che sia installato codeception e robo attraverso composer.
<?php
/**
* This is project's console commands configuration for Robo task runner.
*
* @see http://robo.li/
*/
class RoboFile extends \Robo\Tasks
{
/**
* Watcha i file
*/
public function watch()
{
$this->taskWatch()
->monitor('composer.json', function () {
$this->codecept();
})->monitor('src', function () {
$this->codecept();
})->monitor('tests/unit', function () {
$this->codecept();
})->run();
}
/**
* Avvia i test di codeception
*/
public function codecept()
{
$this->taskCodecept()
->suite('unit')
->env('dev')
//->group('admin')
->coverage()
#->xml()
#->html()
->run();
}
}
paths:
tests: tests
output: test-reports/
data: tests/_data
support: tests/_support
envs: tests/_envs
actor_suffix: Tester
extensions:
enabled:
- Codeception\Extension\RunFailed
coverage:
enabled: true
include:
- src/*
La cartella di output DEVE essere impostata su test-reports/ altrimenti bitbucket non vede i report.
codeception:
image: "brumbrum/php-codeception"
volumes:
- .:/data:z
environment:
- quelle che servono
env_file:
- se serve
Content type
Image
Digest
Size
315.3 MB
Last updated
over 5 years ago
docker pull brumbrum/php-codeception