So it whould be the "phpunit" maven plugin then.
If it has a skip param and it doesn't work - file a bug ticket. If it
doesn't have a skip param - file an enhancement ticket. In both cases a
patch would increase the likelihood of this getting fixed quickly.

However, why aren't you just removing the test cases? You're writing the
archetype, so you should be in control of that.

/Anders

On Wed, Apr 6, 2011 at 12:12, Charles Williams <[email protected]> wrote:

> Anders,
>
> Here is the info I posted to the phpmaven google group:
>
> am currently working on a new archetype for wordpress projects and am
> wanting to disable phpunit tests. adding <skip>true</skip> in the
> configuration of the test phase doesn't seem to do the trick. I still
> get the following error.
>
> chuck@Militia:~/test2/wordpress31$ mvn package
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Wordpress 3.1 project
> [INFO]    task-segment: [package]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [plugin:descriptor {execution: default-descriptor}]
> [INFO] [resources:resources {execution: default-resources}]
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory /home/chuck/test2/
> wordpress31/src/main/resources
> [INFO] [php:php-validate {execution: default-php-validate}]
> [INFO] [resources:testResources {execution: default-testResources}]
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory /home/chuck/test2/
> wordpress31/src/test/resources
> [INFO] [php:phpunit {execution: default-phpunit}]
> [INFO] Surefire report directory: /home/chuck/test2/wordpress31/target/
> surefire-reports
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> [ERROR] Testcase: apptest.php fails.
> [ERROR] See log: /home/chuck/test2/wordpress31/target/surefire-reports/
> apptest.txt
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> PHP Warning:  require_once(PHPUnit/TextUI/TestRunner.php): failed to
> open stream: No such file or directory in /home/chuck/test2/
> wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php on line 5PHP Fatal
> error:  require_once(): Failed opening required 'PHPUnit/TextUI/
> TestRunner.php' (include_path=':/home/chuck/test2/wordpress31/src/main/
> php:/home/chuck/test2/wordpress31//src/test/php:/home/chuck/test2/
> wordpress31/target/phpinc:/home/chuck/test2/wordpress31/src/test/php/
> net/itadmins:/home/chuck/test2/wordpress31/target/test-classes:/home/
> chuck/test2/wordpress31/target/classes:') in /home/chuck/test2/
> wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php on line 5 in
> File:
>  /home/chuck/test2/wordpress31/src/test/php/net/itadmins/apptest.php
> Command:
>  php -d include_path=":/home/chuck/test2/wordpress31/src/main/php:/
> home/chuck/test2/wordpress31//src/test/php:/home/chuck/test2/
> wordpress31/target/phpinc:/home/chuck/test2/wordpress31/src/test/php/
> net/itadmins:/home/chuck/test2/wordpress31/target/test-classes:/home/
> chuck/test2/wordpress31/target/classes:" "/home/chuck/test2/
> wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php" "/home/chuck/test2/
> wordpress31/src/test/php/net/itadmins/apptest.php" "/home/chuck/test2/
> wordpress31/target/surefire-reports/apptest.xml"+
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Wed Apr 06 11:53:28 CEST 2011
> [INFO] Final Memory: 17M/189M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
>
> On 04/06/2011 11:08 AM, Anders Hammar wrote:
>
>> WHat plugin is that?
>>
>> /Anders
>>
>> On Wed, Apr 6, 2011 at 10:43, Charles Williams<[email protected]>
>>  wrote:
>>
>>  that's the problem. I have found a few examples but none of them work.
>>> even
>>> <skip>true</skip>  in the<configuration>  block for the plugin has no
>>> effect.
>>>
>>>
>>> On 04/06/2011 10:37 AM, Anders Hammar wrote:
>>>
>>>  Just remove the unit tests?
>>>>
>>>> And to clarify a maven topic wrt your subject, you cannot disable a
>>>> phase.
>>>> However, you can disable a plugin bound to a phase, which could also be
>>>> the
>>>> solution to your questions (although simply remove the tests would be
>>>> better
>>>> I think as it would then allow for the user to add tests should he/she
>>>> like
>>>> to).
>>>>
>>>> /Anders
>>>> On Wed, Apr 6, 2011 at 09:28, Charles Williams<[email protected]>
>>>>  wrote:
>>>>
>>>>  hey all,
>>>>
>>>>> am currently working on a new archetype for wordpress projects in
>>>>> phpmaven.
>>>>> but am not in need of the PHPUnit tests and would like to disable them.
>>>>> How
>>>>> would I best go about it?
>>>>>
>>>>> thanks,
>>>>> Chuck
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [email protected]
>>>>> For additional commands, e-mail: [email protected]
>>>>>
>>>>>
>>>>>
>>>>>  ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>>
>

Reply via email to