Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [PEAR-QA] Re: QA enhancements in PEAR 1.4
On Mar 26, 2005, at 10:01 AM, Lukas Smith wrote:

> Greg Beaver wrote: 
>
> btw: i never spend any time on this, but maybe someone knows:
> how hard would it be for me to also be able to run my phpunit tests
> this way? .. i have a clitest.php to be able to run the tests form the
> shell.

This might be an annoying way to go about this, but you could always
write little wrapper .phpt's:

--TEST--
test for this feature
--FILE--
<?php
require 'clitest.php';
echo 'tests done';
//this assumes that your tests only output something when an error
occurs
--EXPECT--
tests done

-ryan
--
http://theryanking.com/

Report this thread to moderator Post Follow-up to this message
Old Post
Ryan King
03-27-05 08:57 AM


Re: [PEAR-QA] Re: QA enhancements in PEAR 1.4
Ryan King wrote:
> On Mar 26, 2005, at 10:01 AM, Lukas Smith wrote:
> 
>
>
> This might be an annoying way to go about this, but you could always
> write little wrapper .phpt's:
>
> --TEST--
> test for this feature
> --FILE--
> <?php
> require 'clitest.php';
> echo 'tests done';
> //this assumes that your tests only output something when an error occurs
> --EXPECT--
> tests done

unfortunately this is not the case
also I have multiple tests and it would be nice to be able to pass
information about the number of passed and failed tests to the end
result of the run-tests call as well

regards,
Lukas

Report this thread to moderator Post Follow-up to this message
Old Post
Lukas Smith
03-27-05 01:55 PM


Re: [PEAR-QA] Re: QA enhancements in PEAR 1.4
On Mar 27, 2005, at 12:57 AM, Lukas Smith wrote:

> Ryan King wrote: 
>
> unfortunately this is not the case
> also I have multiple tests and it would be nice to be able to pass
> information about the number of passed and failed tests to the end
> result of the run-tests call as well

I'm talking about having one of these for each test case (which could
be quite annoying, unless you automate it). The idea is that it would
pass as along as your phpunit test didnt' output anything. This would
certainly cover the multiple tests issue, wouldn't it?

-ryan

--
http://theryanking.com/

Report this thread to moderator Post Follow-up to this message
Old Post
Ryan King
03-27-05 01:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP PEAR Questions and Answers archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:53 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.