trident-job / delphi-code-coverage

Automatically exported from code.google.com/p/delphi-code-coverage
0 stars 0 forks source link

Error 404 when trying to show the coverage of an unit #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Created a project (myproject.dpr) in c:\my_project folder
2. Created a project test (my_project_test.dpr) in c:\my_project folder
3. The sources units are in c:\my_project\source folder
4. The sources (for the tests) are in c:\my_project\test folder
5. The source code for the my_project_test.dpr is similar to:

program MyProjectTest;
uses
   unit1 in 'source\unit1.pas',
   unit2 in 'source\unit2.pas',
   etc.... 

6. Execute the CodeCoverage and the report will be generated in Hudson/Jenkins 
(Continuos Integration). The command used to generate the report is similar to:

CodeCoverage -m my_project_test.map -e my_project_test.exe -od report\coverage 
-uf units-to-coverage.txt

The contents for the "units-to-coverage.txt" are similar to:

unit1
unit2
unit3
etc...

What is the expected output? What do you see instead?

The link (in coverage report - Jenkins) for the unit1 is displayed as 
"source\unit1" and when I click in it occurs an error: 404. This error does not 
occur when the files (uni1.pas, unit2.pas, etc) are in the same directory as 
the my_projet_test.dpr

What version of the product are you using? On what operating system?

- Delphi 7
- Windows Vista
- CodeCoverage 0.5

Thank you

Clayton

Original issue reported on code.google.com by bone...@esss.com.br on 9 Jan 2012 at 11:34

GoogleCodeExporter commented 9 years ago
Have you tried using the -sd or -spf command line options to include the source 
directory?

Original comment by ring....@gmail.com on 11 Jan 2012 at 7:52

GoogleCodeExporter commented 9 years ago
Yes, I tried the -sd and -spf but the problem still occurs. The command line 
used by me is similar to:

CodeCoverage -m my_project_test.map -e my_project_test.exe -od report\coverage 
-uf units-to-coverage.txt -sd source

Note that I use the "-sd source"

Clayton

Original comment by bone...@esss.com.br on 11 Jan 2012 at 11:31

GoogleCodeExporter commented 9 years ago
Other information about the problem:

The error does NOT occur in Firefox 8

The error occurs with 16 Chrome, IE 9 and Safari 5.1

Thank you

Original comment by clayton....@gmail.com on 14 Jan 2012 at 7:52

GoogleCodeExporter commented 9 years ago
I discovered the following about the problem that occurs in Chrome or IE, for 
the path. When the URL is:

http://localhost:9090/job/CoverageBuilder/lastBuild/emma/UBaseUnitsToBuilder/sou
rce/UBaseUnitsToBuilder.pas

The problem appears, but if I replaced the  "source\" by 'source%5c', the 
problem does not occur in Chrome or IE. For example:

http://localhost:9090/job/CoverageBuilder/lastBuild/emma/UBaseUnitsToBuilder/sou
rce%5cUBaseUnitsToBuilder.pas

Thank you

Original comment by vanessad...@msn.com on 15 Jan 2012 at 11:57

GoogleCodeExporter commented 9 years ago
Does the '%5c' also work for FireFox 8?

What happens if you use '/'? Does it work for all browsers?

Original comment by ring....@gmail.com on 20 Jan 2012 at 7:35

GoogleCodeExporter commented 9 years ago

Original comment by ring....@gmail.com on 13 Feb 2012 at 12:14