Closed GoogleCodeExporter closed 9 years ago
command line interface is the option to provide necessary parameters.
Just in case:
http://lifehacker.com/5633909/who-needs-a-mouse-learn-to-use-the-command-line-fo
r-almost-anything ;)
Thanks for using Delphi Code Coverage!
Original comment by linards....@gmail.com
on 3 Dec 2012 at 11:15
[deleted comment]
I'm using command line, I'm using windows, and do you even tried to run an
application with parameter like "ApServer.exe teste /start -u RPCServer.pas
-xml -html", i need to start the application ApServer.exe with this two
parameters "teste /start", so how do I do?
Try to run at least one test before post the first link that google returns....
;)
Original comment by luchini....@gmail.com
on 3 Dec 2012 at 11:39
[deleted comment]
What is ApServer.exe ?! Renamed CodeCoverage.exe ... ?
I am using it daily on Delphi XE2 / Delphi 5 32bit daily and this issue w/o any
real-wolrd test-case ... but plain assumption that params are not read into
executabe using winapi cmd interface just do not make any sense ... ;)
Original comment by linards....@gmail.com
on 3 Dec 2012 at 1:09
Please providee coverage targeted *.pas files, executable uou are using (
ApServer.exe ) ... and I will take a look using the pramas you have inputted
here. ;)
Plus ; If the sha1sum will not match ... I assume this is invlaid bug report as
there is no prove the executable even relys to this project.
Thank you for understanding.
Original comment by linards....@gmail.com
on 3 Dec 2012 at 1:11
ApServer is the application that I'm trying to test, and to it starts, it needs
two parameters "ApServer.exe [instanceName] /[start|install]", so the complete
line what I'm trying to execute is:
CodeCoverage.exe -e "ApServer.exe teste /start" -m ApServer.map -u
RPCServer.pas -xml -html
or
CodeCoverage.exe -e ApServer.exe teste /start -m ApServer.map -u RPCServer.pas
-xml -html
And the output is:
The configuration was incomplete due to the following error:
The executable file ApServer.exe teste /start does not exist. Current dir is
D:\ApScripter31202\Application\Bin
... You probaly wana see my current directory, so there's:
D:\ApScripter31202\Application\Bin>dir
O volume na unidade D é Hda2
O Número de Série do Volume é 46E0-F183
Pasta de D:\ApScripter31202\Application\Bin
20/11/2012 17:37 <DIR> .
20/11/2012 17:37 <DIR> ..
15/11/2012 14:51 122.650.051 ApServer.exe
15/11/2012 15:44 1.268 ApServer.exe - Atalho.lnk
15/11/2012 14:51 45.407.252 ApServer.map
27/08/2012 23:31 5.568.364 CodeCoverage.exe
4 arquivo(s) 173.626.935 bytes
2 pasta(s) 111.700.709.376 bytes disponíveis
D:\ApScripter31202\Application\Bin>
If you need more details, please let me know! :)
Original comment by luchini....@gmail.com
on 3 Dec 2012 at 1:20
I cann't provide you the source files, but I've created this sample (attached)
for you, as you can see below, it has the same issue. If you fix this issue,
please keep in mind that others applications can have "n" parameters... :)
"C:\Users\lluchini\Desktop\sample>CodeCoverage.exe -m Project2.map -e
Project2.exe -u SampleCoverUnit.pas -xml -html
Started ok
Creating class info for SampleCoverUnit class SampleCoverUnit
After having processed debug events
Source dir:
Output dir:
After having reported
C:\Users\lluchini\Desktop\sample>CodeCoverage.exe -m Project2.map -e
Project2.exe teste -u SampleCoverUnit.pas -xml -html
Exception parsing the command line:Unexpected switch:teste
Usage:CodeCoverage.exe [switches]
List of switches:"
Some days ago, I tried to retrieve the source code following instruction from
"http://code.google.com/p/delphi-code-coverage/source/checkout" but I was not
able to do that, I'm new to GIT, maybe if you tell me how clone the source,
maybe I can fix this bug for you.
Thks! ;)
Original comment by luchini....@gmail.com
on 3 Dec 2012 at 1:42
Attachments:
It seems you are not reading the documentation carefully in the projects main
page :)
The correct CMD line shoud be like this:
CodeCoverage.exe -e ApServer.exe -a teste start -m ApServer.map -u
RPCServer.pas -xml -html
Refer to this parameter:
| -a Param Param2 | Parameters to pass on to the application that shall be
checked for code coverage. ^ is an escape character |
Original comment by linards....@gmail.com
on 3 Dec 2012 at 6:06
Thanks,
I'm sorry by the inconvenience, I just don't know how I didin't see it before,
it is on the documentation main page and on the return at the prompt.
Once again, sorry by waste your time. :x
Att.
Leonardo Luchini
Original comment by luchini....@gmail.com
on 3 Dec 2012 at 7:21
As wee all /code junkies/ say - Shit happens... ;)
Original comment by linards....@gmail.com
on 4 Dec 2012 at 8:45
Original comment by linards....@gmail.com
on 4 Dec 2012 at 8:46
I've ran the tests last night, and the delphi-code-coverage handled very well,
much better (faster and using less memory) than other paid solutions.
I would like to thanks by the solution provided. I can't send you money (right
now... ;)) but if you need an extra hand to keep it running, you can count on
me. :)
Thanks again!
Original comment by luchini....@gmail.com
on 4 Dec 2012 at 9:29
Original issue reported on code.google.com by
luchini....@gmail.com
on 27 Nov 2012 at 9:49