I really want to start using the tester module but am struggling to get it working. It runs the tests okay in the Fuel modules but I always get an error when I run my own simple test.
This is my test code
class Simple_test extends Tester_base {
public $init = array();
public function __construct()
{
parent::__construct();
}
public function setup()
{
$this->load_sql('widgicorp_test.sql', NULL);
}
public function test_myname(){
$test = 'Dave';
$expected = "Dave";
$this->run($test,$expected,"MyName","Does this work!!");
}
}
I then run it from the command line like so:-
php index.php tester/run Simple_test.php
What I get is nothing...... No results whatsoever. Am I doing something wrong?
Comments
http://docs.getfuelcms.com/modules/generate
php index.php tester/run app Simple_test.php
I've posted a fix:
https://github.com/daylightstudio/FUEL-CMS-Tester-Module/commit/1c6bfbd91ad20bfc344b2d5ee7e0249a8dacef1b