-
Notifications
You must be signed in to change notification settings - Fork 30
Add python and cython file coverage #238
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
Add python and cython file coverage #238
Conversation
@vlad-perevezentsev Can you give me the full command of how you include the source files? I tried your steps by modifying Step 3 to |
@diptorupd [run] And compile your Cython modules with line tracing support. This can be done by putting the following two comment lines at the top of the modules that you want to trace: That's a double opt-in. The first line instructs Cython to generate verbose line tracing code (and thus increase the size of the resulting C/C++ file), and the second line enables this code at C compile time, which will most likely slow down your program. You can also configure both settings globally in your setup.py script. All the flags for the coverage command can be added to the .coveragerc file. |
coverage
package (temporary solutions).dpctl
.htmlcov
folder will appear in the root folder of the project.htmlcov/index.html
to view the report in HTML format.