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

QA enhancements in PEAR 1.4
Hi,

I just wanted to let all you QA types know that PEAR 1.4.0a9 includes a
new option to the run-tests command that allows the running of all
installed .phpt tests in a package with

pear run-tests -p Packagename.

For instance, you can pear run-tests -p XML_Parser.  If your system is
like mine, all of the tests will fail :), but it will locate and run them.

This will be invaluable for testing the first stable release of a
package that provides unit tests.

Greg

Report this thread to moderator Post Follow-up to this message
Old Post
Greg Beaver
03-26-05 08:56 PM


Re: QA enhancements in PEAR 1.4
Greg Beaver wrote:
> I just wanted to let all you QA types know that PEAR 1.4.0a9 includes a
> new option to the run-tests command that allows the running of all
> installed .phpt tests in a package with
>
> pear run-tests -p Packagename.
>
> For instance, you can pear run-tests -p XML_Parser.  If your system is
> like mine, all of the tests will fail :), but it will locate and run them.
>
> This will be invaluable for testing the first stable release of a
> package that provides unit tests.

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.

regards,
Lukas

Report this thread to moderator Post Follow-up to this message
Old Post
Lukas Smith
03-26-05 08:56 PM


Re: QA enhancements in PEAR 1.4
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.

The best way to do this is for someone to take a look at
PEAR/Command/Package.php and grok the doRunTests() method.

What someone/you need to do is provide a class like PEAR/RunTest.php
that understands how to read PHPUnit files, runs the tests, and
retrieves the results of a test, and returns PASS FAIL or SKIP just like
RunTest.php.

Then, a simple option can be used to run those tests as PHPUnit tests.

First things first:

1) it is OK to decide that all packages with PHPUnit tests must provide
some config file that tells the tester which files to read from
2) anything else goes as long as the doRunTests() command can work with
minor modification

Greg

Report this thread to moderator Post Follow-up to this message
Old Post
Greg Beaver
03-28-05 01:55 AM


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:52 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.