1

I have PHPUnit 3.6 and I have configured my phpunit.xml to generate a xml log but it doesn't generate xml log. The coverage report is generated correctly. I am doing anything wrong?

<logging>
    <log type="coverage-html" target="./log/coverage" title="Name of Project"
  charset="UTF-8" yui="true" highlight="true"
  lowUpperBound="35" highLowerBound="70"/>
    <log type="coverage-clover" target="./log/clover.xml"/>
    <log type="junit" target="./log/junit.xml" logIncompleteSkipped="false"/>
</logging>
3
  • This works for me on 3.6.9. How are you running your tests? Command-line? IDE? Commented Jan 31, 2012 at 23:22
  • Ohh It works from command line. I guess the problem may be in netbeans...What could be wrong to netbeans? Commented Feb 1, 2012 at 0:38
  • @DavidHarkness Maybe add this as the answer? :) Commented Feb 1, 2012 at 17:40

1 Answer 1

2

Make sure you point NetBeans to your project's bootstrap.php and phpunit.xml files.

  1. Right-click the project in the Projects tab.
  2. Select Properties.
  3. Select PHPUnit in the list on the left.
  4. Check Use Bootstrap and type or browse to bootstrap.php.
  5. Check Use XML Configuration and type or browse to phpunit.xml.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.