Tester module issues

edited March 2014 in Modules
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

Sign In or Register to comment.