Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7865443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:05:18+00:00 2026-06-03T00:05:18+00:00

I have just set up CloverPHP into my Jenkins job. I am using PHPUnit

  • 0

I have just set up CloverPHP into my Jenkins job.

I am using PHPUnit to generate the clover report and it seems to all be working apart from the coverage report which is showing the file

/usr/share/php/SymfonyComponents/YAML/sfYamlInline.php 

as part of the report. I’m not sure where this is coming from, my guess is that PHPUnit or XDebug is including it. Obviously this is not part of my own code base so I am not interested in it. It is affecting the overall metrics produced by my project.
Is there a way of excluding this file from the report?

Many thanks,
ns

Edit

The answer is to use a phpunit xml configuration file which can contain a filter blacklist.
I will answer my question properly in 6 hours (stackoverflow is making me wait 8 hours before answering my question!)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:05:19+00:00Added an answer on June 3, 2026 at 12:05 am

    After some googling I found that the answer is to create a configuration file for phpunit, where you can exclude specific files or directories from the code coverage report.

    “The < filter > element and its children can be used to configure the blacklist and whitelist for the code coverage reporting.”

    <filter>
      <blacklist>
        <directory suffix=".php">/path/to/files</directory>
        <file>/path/to/file</file>
        <exclude>
          <directory suffix=".php">/path/to/files</directory>
          <file>/path/to/file</file>
        </exclude>
          </blacklist>
      <whitelist addUncoveredFilesFromWhitelist="true">
        <directory suffix=".php">/path/to/files</directory>
        <file>/path/to/file</file>
        <exclude>
          <directory suffix=".php">/path/to/files</directory>
          <file>/path/to/file</file>
        </exclude>
      </whitelist>
    </filter>
    

    Then call PHPUnit using the flag:

    phpunit -c config.xml
    

    More information on the configuration file can be found here:

    http://www.phpunit.de/manual/current/en/appendixes.configuration.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a CRON job php script that I just set up not too
I have just set up file uploads to Amazon S3 using Rails 3 and
I have just set up my first Jenkins slave. I run the build, and
I have just set up a wi-fi network at home. I have all my
I have just integrated AdWhirl into my app. I have the AdWhirl view set
I'm new to using Subversion and have just set up the following - SVN
We have just set up TeamCity to build all of our projects and we
Im using subversion via Coda on a Mac, and I have just set up
I have just set up cruise control.net on our build server, and I am
I have just set up ruby in Aptana studio and am getting the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.