New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser does not show source code #38

Closed
ramunsk opened this Issue Dec 8, 2010 · 9 comments

Comments

Projects
None yet
3 participants
@ramunsk

ramunsk commented Dec 8, 2010

After running coverage tests on .NET 4.0 assembly from browser class tree show coverage report, but when trying to analyze each method no source is shown.

@sawilde

This comment has been minimized.

Show comment
Hide comment
@sawilde

sawilde Dec 8, 2010

Owner

What does the coverage report look like? Does it contain line number information?

The more information you give the easier it will be to help you.

Owner

sawilde commented Dec 8, 2010

What does the coverage report look like? Does it contain line number information?

The more information you give the easier it will be to help you.

1 similar comment
@sawilde

This comment has been minimized.

Show comment
Hide comment
@sawilde

sawilde Dec 8, 2010

Owner

What does the coverage report look like? Does it contain line number information?

The more information you give the easier it will be to help you.

Owner

sawilde commented Dec 8, 2010

What does the coverage report look like? Does it contain line number information?

The more information you give the easier it will be to help you.

@ramunsk

This comment has been minimized.

Show comment
Hide comment
@ramunsk

ramunsk Dec 8, 2010

No, no line numbers, nothing. The at the top right corner shows some info - Block #, Block length, Visit count and Have source (witch is always no)

I'd be glad to paste some xml here, but I don't know what part of it would b usefull (~10K lines total).

I used VWD 2010, xUnit as test framework/runner. MVC 3 RC project.

What info could I provide more?

Thanks

ramunsk commented Dec 8, 2010

No, no line numbers, nothing. The at the top right corner shows some info - Block #, Block length, Visit count and Have source (witch is always no)

I'd be glad to paste some xml here, but I don't know what part of it would b usefull (~10K lines total).

I used VWD 2010, xUnit as test framework/runner. MVC 3 RC project.

What info could I provide more?

Thanks

@ramunsk

This comment has been minimized.

Show comment
Hide comment
@ramunsk

ramunsk Dec 8, 2010

Sorry, my bad...didn't mean to close it...

ramunsk commented Dec 8, 2010

Sorry, my bad...didn't mean to close it...

@sawilde

This comment has been minimized.

Show comment
Hide comment
@sawilde

sawilde Dec 8, 2010

Owner

Do you have PDB files alongside the executable when it is running?

Owner

sawilde commented Dec 8, 2010

Do you have PDB files alongside the executable when it is running?

@ramunsk

This comment has been minimized.

Show comment
Hide comment
@ramunsk

ramunsk Dec 8, 2010

Yes, they are there, unless I should somehow point their location

ramunsk commented Dec 8, 2010

Yes, they are there, unless I should somehow point their location

@sawilde

This comment has been minimized.

Show comment
Hide comment
@sawilde

sawilde Dec 8, 2010

Owner

re-opened the issue

What sort of PDB is it? Are you Release or Debug? By default Release and Debug have different types of PDB - Full PDBs best. Alternatively can you package the assets and make them available to download so I can test locally. You can send me a direct message rather than via the Issue system.

Owner

sawilde commented Dec 8, 2010

re-opened the issue

What sort of PDB is it? Are you Release or Debug? By default Release and Debug have different types of PDB - Full PDBs best. Alternatively can you package the assets and make them available to download so I can test locally. You can send me a direct message rather than via the Issue system.

@ramunsk

This comment has been minimized.

Show comment
Hide comment
@ramunsk

ramunsk Dec 9, 2010

SOLUTION TO MY PROBLEM

It appears that xUnit (and NUnit also) does a shadow copy of assembly by default, but does not shadow-copy PDB files. As soon as I added "/noshadow" to --target-args parameter (this was passed to xunit.console.exe), PartCover.Browser started to show me source code in coverage.

Thanks sawilde for your help
Good luck with a so needed tool

ramunsk commented Dec 9, 2010

SOLUTION TO MY PROBLEM

It appears that xUnit (and NUnit also) does a shadow copy of assembly by default, but does not shadow-copy PDB files. As soon as I added "/noshadow" to --target-args parameter (this was passed to xunit.console.exe), PartCover.Browser started to show me source code in coverage.

Thanks sawilde for your help
Good luck with a so needed tool

@jeycee

This comment has been minimized.

Show comment
Hide comment
@jeycee

jeycee Dec 29, 2010

I had the same problem - also fixed by adding /noshadow. Thanks!

jeycee commented Dec 29, 2010

I had the same problem - also fixed by adding /noshadow. Thanks!

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment