Topic
1 reply Latest Post - ‏2012-04-20T06:54:51Z by SystemAdmin
s1m
s1m
1 Post
ACCEPTED ANSWER

Pinned topic How to run code coverage on a dll (VC ++ )

‏2012-04-20T06:26:35Z |
Hi All,

I am using purifyplus for the code coverage.
For .exe I was able to run purify, pure coverage and quantify and get the coverage details. But when I am using .dll instead .exe. It throws the error as " The file C:\***\.dll is a dll. Please choose a program" . Can you please help me with the steps how to run a dll with purifyplus.

It's urgent... please reply with the steps ASAP.

Regards,
S1M
Updated on 2012-04-20T06:54:51Z at 2012-04-20T06:54:51Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    2948 Posts
    ACCEPTED ANSWER

    Re: How to run code coverage on a dll (VC ++ )

    ‏2012-04-20T06:54:51Z  in response to s1m
    Hi s1m,

    To collect code information for just the DLL, you need to use the
    SELECTIVE INSTRUMENTATION feature in PureCoverage:

    1. Start PureCoverage
    2. On the RUN PROGRAM dialog, select the executable which calls
    the DLL, but do NOT click RUN.
    3. Click SETTINGS...
    4. Under "Modules to instrument", choose SELECTED MODULES.
    5. Click CONFIGURE...
    6. On the "Module Coverage (Selective)" tab, click on the "ADD"
    button in the top right.
    7. Select your DLL and click OPEN.
    8. Specify the COVERAGE type.
    9. Click OK.

    Now, PureCoverage will only collect coverage data for the DLL.
    Don