From f8b4c669063b49acd658b1d85194632b57350e68 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 1 Nov 2008 07:55:48 +0000 Subject: Set up unit test framework. Tweak configuration so that it only runs in command line mode, and expects to put data into test/var. Create a module to wrap it that generates a nice text-only view of the output. --- modules/unit_test/views/kohana_unit_test.php | 169 +++++++++++++++++++++++++++ 1 file changed, 169 insertions(+) create mode 100644 modules/unit_test/views/kohana_unit_test.php (limited to 'modules/unit_test/views') diff --git a/modules/unit_test/views/kohana_unit_test.php b/modules/unit_test/views/kohana_unit_test.php new file mode 100644 index 00000000..82ccf498 --- /dev/null +++ b/modules/unit_test/views/kohana_unit_test.php @@ -0,0 +1,169 @@ + + +
+ + $methods): +text::alternate(); + +?> + + + + + + + + + + + + + + $result): + + // Hide passed tests from report + if ($result === TRUE AND $hide_passed === TRUE) + continue; + + ?> + + + + + + + + + + + + + + + + + + + + + + + + +
+ | + , + , + , + +
+ +
getMessage()) ?>
+ getFile()) ?> ( getLine() ?>) + + getDebug() !== NULL): ?> +
getDebug()), ') ', html::specialchars(var_export($result->getDebug(), TRUE)) ?>
+ + +
+ +
getMessage()) ?>
+ getFile()) ?> ( getLine() ?>) +
+ + + +
-- cgit v1.2.3