Skip to content

Commit

Permalink
Improve default config file templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
mageekguy committed May 31, 2013
1 parent 80bfd60 commit 64d1d5d
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 65 deletions.
73 changes: 30 additions & 43 deletions resources/configurations/runner/atoum.php.dist
@@ -1,50 +1,37 @@
<?php

// THIS FILE WAS AUTO GENERATED BY ATOUM.
//
// Config
// This file will automatically be included before EACH run.
//
// Use this file to:
// - configure atoum
// - or anything that needs to be done before EACH run.
//
// More information on documentation:
// [en] http://docs.atoum.org/en/chapter3.html#Configuration-files
// [fr] http://docs.atoum.org/fr/chapter3.html#Fichier-de-configuration
/*
This file will automatically be included before EACH run.

Use it to configure atoum or anything that needs to be done before EACH run.

More information on documentation:
[en] http://docs.atoum.org/en/chapter3.html#Configuration-files
[fr] http://docs.atoum.org/fr/chapter3.html#Fichier-de-configuration
*/

use \mageekguy\atoum;

$report = $script->addDefaultReport();

///////////
// LOGOS //
///////////
//
// /*
// This will add the atoum logo before each run
// */
// $cliReport->addField(new atoum\report\fields\runner\atoum\logo());
//
// /*
// This will add a green or red logo after each run depending on its status
// */
// $cliReport->addField(new atoum\report\fields\runner\result\logo());

//////////////
// COVERAGE //
//////////////
//
// /*
// Please replace in next line:
// - "Project Name" by your project name
// - /path/to/destination/directory by your destination directory path for html files.
// */
// $coverageField = new atoum\report\fields\runner\coverage\html('Project Name', '/path/to/destination/directory');
//
// /*
// Please replace in next line http://url/of/web/site by the root url of your code coverage web site.
// */
// $coverageField->setRootUrl('http://url/of/web/site');
//
// $report->addField($coverageField);
/*
LOGO

// This will add the atoum logo before each run.
$report->addField(new atoum\report\fields\runner\atoum\logo());

// This will add a green or red logo after each run depending on its status.
$report->addField(new atoum\report\fields\runner\result\logo());
*/

/*
CODE COVERAGE SETUP

// Please replace in next line "Project Name" by your project name and "/path/to/destination/directory" by your destination directory path for html files.
$coverageField = new atoum\report\fields\runner\coverage\html('Project Name', '/path/to/destination/directory');

// Please replace in next line http://url/of/web/site by the root url of your code coverage web site.
$coverageField->setRootUrl('http://url/of/web/site');

$report->addField($coverageField);
*/
37 changes: 15 additions & 22 deletions resources/configurations/runner/bootstrap.php.dist
@@ -1,25 +1,18 @@
<?php

// THIS FILE WAS AUTO GENERATED BY ATOUM.
//
// Bootstrap
// This file will automatically be included before EACH test.
//
// Use this file to:
// - initialize the tested code,
// - add autoloader,
// - require mandatory file,
// - or anything that needs to be done before EACH test.
//
// More information on documentation:
// [en] http://docs.atoum.org/en/chapter3.html#Bootstrap-file
// [fr] http://docs.atoum.org/fr/chapter3.html#Fichier-de-bootstrap
/*
This file will automatically be included before EACH test if -bf/--bootstrap-file argument is not used.

////////////////
// AUTOLOADER //
////////////////
//
// /*
// Composer
// */
// require __DIR__ . '/vendor/autoload.php';
Use it to initialize the tested code, add autoloader, require mandatory file, or anything that needs to be done before EACH test.

More information on documentation:
[en] http://docs.atoum.org/en/chapter3.html#Bootstrap-file
[fr] http://docs.atoum.org/fr/chapter3.html#Fichier-de-bootstrap
*/

/*
AUTOLOADER

// composer
require __DIR__ . '/vendor/autoload.php';
*/

0 comments on commit 64d1d5d

Please sign in to comment.