mavak / trucov

True coverage tool for C / C++
1 stars 1 forks source link

-o option should do output file for dot, render, status, and list. #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. trucov list -o file.txt
2. trucov dot -o dump.dot
3. trucov render -o dump.svg
4. trucov status -o brief.txt

What is the expected output? What do you see instead?
See those commands output to those files.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by millerlyte87@gmail.com on 8 Oct 2009 at 1:48

GoogleCodeExporter commented 9 years ago
This is only implemented for dot and render. We've scratched this feature for 
list
and status ( the user should just use io redirection ).

Functional Tests are passing for this feature on all commands:
dot
graph
dot_report
graph_report
report
all_report

Original comment by millerlyte87@gmail.com on 8 Oct 2009 at 5:09

GoogleCodeExporter commented 9 years ago
This worked for trucov dot -o cov.dot

But running trucov graph -o cov.svg is giving me errors such as:
william@ubuntu:~/Desktop/trucov/sample_projects/simple_tests/Switch$ trucov 
graph -o
test.svg
Parsing gcno and gcda files ..
Rendering test.svg
Error: 
/home/william/Desktop/trucov/sample_projects/simple_tests/Switch/test.svg:1:
syntax error near line 1
context:  >>> roke <<< :black;" d="M139,-552C133,-552 127,-546 127,-540"/>
Warning: 
/home/william/Desktop/trucov/sample_projects/simple_tests/Switch/test.svg:1:
ambiguous "-552C" splits into two names: "-552" and "C"
Warning: 
/home/william/Desktop/trucov/sample_projects/simple_tests/Switch/test.svg:1:
string ran past end of line

Original comment by william....@gmail.com on 19 Oct 2009 at 3:01

GoogleCodeExporter commented 9 years ago
hopefully that will do it.

check:
-o test => test.svg
-o test.svg => test.svg

Original comment by millerlyte87@gmail.com on 19 Oct 2009 at 11:48

GoogleCodeExporter commented 9 years ago

Original comment by william....@gmail.com on 20 Oct 2009 at 2:16