Skip to content
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

Relative path error #23

Closed
GoogleCodeExporter opened this issue Mar 16, 2015 · 1 comment
Closed

Relative path error #23

GoogleCodeExporter opened this issue Mar 16, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

1. create a simple project with 100% cover and a \test\ directory for the tests
2. create a cover.bat in \test\ to run CodeCoverage.exe 
3. run the cover.bat 

My project is 100% cover and when I run the codeCoverage in the project 
directory all is OK, when I run in \test\ directory my result is 0% code 
coverage
I Tried the following cover.bat :
CodeCoverage -m "..\project1.map" -e "..\project1.exe" -u "..\Unit1"

CodeCoverage -m "C:\CodeCoverage\project1.map" -e 
"C:\CodeCoverage\project1.exe" -u "C:\CodeCoverage\Unit1"

Environnement : D7, XP, CC 0.5

Original issue reported on code.google.com by Phil.Pr...@gmail.com on 19 Nov 2011 at 10:53

Attachments:

@GoogleCodeExporter
Copy link
Author

I think there might some confusion to the commandline parameters. 

The "-u" specifies the unit(s) to cover. In most (all?) cases there should not 
be any path associated with them.

The "-sd" or "-sp" allows you specify directories to where the unit(s) that 
coverage has been request are situated.

If you have a batch file in the \test\ directory with the following contents in 
it, it will work correctly:

CodeCoverage -m "..\project1.map" -e "..\project1.exe" -u "Unit1" -sd "..\"

Original comment by ring....@gmail.com on 28 Dec 2011 at 10:36

  • Changed state: WontFix
  • Added labels: Type-Other, Priority-Low
  • Removed labels: Type-Defect, Priority-Medium

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

No branches or pull requests

1 participant