|
From: SourceForge.net <no...@so...> - 2011-07-08 06:17:35
|
Feature Requests item #3358247, was opened at 2011-07-08 15:15 Message generated for change (Settings changed) made by iteman You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=3358247&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Unit test framework Group: None Status: Open >Priority: 9 Private: No Submitted By: iteman (iteman) Assigned to: Nobody/Anonymous (nobody) Summary: Providing a way to get the test cases in a TestSuite object Initial Comment: We've developed a CLI tool (Stagehand_TestRunner) and an Eclipse plugin (MakeGood) for continuous testing. They work fine with SimpleTest 1.0.1. Now we are working on SimpleTest 1.1, but our tools fail to work with it since the test cases in a TestSuite object is not provided to external objects. SimpleTest 1.1alpha3: class TestSuite { private $label; private $test_cases; SimpleTest 1.0.1: class TestSuite { var $_label; var $_test_cases; Our Code: // For more information, please see https://github.com/piece/stagehand-testrunner/blob/master/src/Stagehand/TestRunner/TestSuite/SimpleTestTestSuite.php#L60 class Stagehand_TestRunner_TestSuite_SimpleTestTestSuite extends TestSuite { /** * @var Stagehand_TestRunner_Config */ protected $config; /** * @return integer */ public function countTests() { $testCount = 0; foreach ($this->_test_cases as $testCase) { $testCount += $this->countTestsInTestCase($testCase); } return $testCount; } We want to provide a way to get the test cases such as follows: * Providing a getter method (e.g. getTestCases()) * Or changing the visibility of the $test_cases field to protected ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=3358247&group_id=76550 |