/sfAtoumPlugin

atoum plugin for symfony 1.4

Primary LanguagePHP

sfAtoumPlugin

##Install

Install sfAtoumPlugin as a git submodule

git submodule add git://github.com/agallou/sfAtoumPlugin.git plugins/sfAtoumPlugin

Get atoum bundle with the plugin

cd plugins/sfAtoumPlugin && git submodule update --init && cd ../../

Add the plugin in your ProjectConfiguration file

  if (sfConfig::get('sf_environment') != 'prod')
  {
    $this->enablePlugins('sfAtoumPlugin');
  }

##Launch tests

php symfony atoum:test

You can pass a configuration file (see here for how to write the configuration file : https://github.com/mageekguy/atoum/wiki/atoum-et-Jenkins-(ou-Hudson) ) via the -c option :

php symfony atoum:test -c config/atoum/hudson.php

All atoum options are available :

 ./symfony help atoum:test
Usage:
 symfony atoum:test [-c|--configuration-file[="..."]] [-p|--php[="..."]] [-d|--default-report-title[="..."]] [-s|--score-file[="..."]] [-m|--max-children-number[="..."]] [-n|--no-code-coverage] [--test-it] [test-file-or-dir1] ... [test-file-or-dirN]

Arguments:
 test-file-or-dir        path to test files or folders

Options:
 --configuration-file    (-c) config file
 --php                   (-p) path to php binary
 --default-report-title  (-d) Define default report title
 --score-file            (-s) Save score in <file>
 --max-children-number   (-m) Maximum number of sub-processus which will be run simultaneously
 --no-code-coverage      (-n) disable code coverage
 --test-it               execute all atoum unit tests

##Atoum

Atoum repository and documentation are available here :

https://github.com/mageekguy/atoum