|
From: Peter S. <cab...@gm...> - 2012-01-17 18:48:53
|
Hi,
Another solution which I found was much better in the long run as it didn't
rely on plugins was to run the tests as an external command. The output
goes into the console.
Downside is no colors and you can't click on things to be taken to the
line. But upside simple and always going to work.
Pete
irc: cabbiepete
On 18 January 2012 05:00, Markus Zwickl <ma...@mz...> wrote:
> Hi,
>
> i wanted to do some unit tests with SimpleTest in Eclipse.
>
> I'm using the Eclipse/PDT bundle from Zend. The installation of the plugin
> was ok.
>
> I tried to do my first testcase like this:
>
> require_once("simpletest/unit_tester.php");
> require_once("simpletest/reporter.php");
>
> include '../Ergebnis.php';
>
> class ErgebnisTest extends UnitTestCase {
> function test_all(){
> $erg = new Ergebnis(0, "14.01.2012", 1, "LG", 362, 12.9);
>
> $this->assertEqual(0,$erg->id, "Vergleich ID");
> }
> }
>
> $test = new ErgebnisTest("ET");
> $test->run(new HtmlReporter());
>
> When I want to run this test as SimpleTest testcase ("Run As SimpleTest"),
> nothing happens. When I run this test as PHP script ("Run As PHP Script"),
> in the view "Browser Output" only the headline "ET" appears.
>
> Can anyone help me to solve the problem?
>
> Thanks.
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Simpletest-support mailing list
> Sim...@li...
> https://lists.sourceforge.net/lists/listinfo/simpletest-support
>
|