-
Notifications
You must be signed in to change notification settings - Fork 83
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
pytest-profiling not generating SVG file #93
Comments
I have exactly the same issue "The syntax of the command is incorrect." on Windows 7 with graphviz properly installed (since the commandlines below work). Here is the workaround that I currently use. I assume that you have installed graphviz and added its bin folder to the path (a simple way is to use gprof2dot -f pstats prof/combined.prof > prof/tmp
dot -Tsvg -o prof/combined.svg prof/tmp That generates the svg file. It would however be great if this could be done automatically, I'll have a look and propose a PR |
Diagnosis attempt: current version uses This ends up building the following command: "IN='C:\\...\\tests\\servicetests\\prof\\combined.prof'; gprof2dot -f pstats $IN |\n{ OUT='C:\\...\\tests\\servicetests\\prof\\combined.svg'; dot -Tsvg -o $OUT; }" This is therefore not valid on windows targets. Suggested remedy: use |
…e of pipes and using a temporary file instead. Also improved the terminal message at the end depending on the result of this operation. Fixes man-group#93.
Fixed SVG file generation on windows (#93)
I still see this issue, did the fix make it into 1.7.0? |
I don't think so, see #162 |
solution worked |
OS version: Windows 10
Python Version: 3.6.5
pytest version: 3.7.3
pytest-profiling version: 1.3.0
Executing
pytest --profile
works fine for me, but when I use thepytest --profile-svg
I have the following outputAnd the combined.svg file is not generated.
The text was updated successfully, but these errors were encountered: