Testing and QA

PHP Unit in Netbeans for Moodle

 
 
Picture of Manuri Perera
PHP Unit in Netbeans for Moodle
 

Hello,

I'm doing my first project with PHP and Moodle. I'm using Netbeans IDE. I need to use PHPUnit for testing. I have installed PHPUnit and it is working.

But the problem is I can not create test cases for my plugin for Moodle. I created a new project, made var/www/moodle the source directory and opened moodle in Netbeans. Now my problems is how to create test cases. When I right click on my plugin file->tools->create PHPUnit tests, it asks for a directory for tests of my project. What should I choose there ? PHPUnit test cases were not created whatever the directory I chose.

 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: PHP Unit in Netbeans for Moodle
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

Don't use the silly IDE wizard to create the test. Just create the file manually, for example by copying an existing test file and editing it.

 
Average of ratings:Useful (1)
Picture of Manuri Perera
Re: PHP Unit in Netbeans for Moodle
 

Okay Tim. Thank you. I will do it manually.

 

 
Average of ratings: -