[ 
https://issues.apache.org/jira/browse/SPARK-7721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14551240#comment-14551240
 ] 

Josh Rosen commented on SPARK-7721:
-----------------------------------

If we just want to be able to view the coverage reports for individual builds, 
we can probably hook {{coverage.py}} into the build and rig it so that each 
Python process + test run logs its coverage data to a separate file.  Given 
these files, I think it's possible to have {{coverage.py}} generate a combined 
coverage report.  Maybe we could attach / serve these combined HTML reports 
from Jenkins.

If we want to be able to compare coverage across builds, we could look into 
setting up an integration with Coveralls (coveralls.io), but we might run into 
issues with being unable to obtain the right GitHub permissions from Apache.  
We could also investigate Sonar.

> Generate test coverage report from Python
> -----------------------------------------
>
>                 Key: SPARK-7721
>                 URL: https://issues.apache.org/jira/browse/SPARK-7721
>             Project: Spark
>          Issue Type: Test
>          Components: PySpark, Tests
>            Reporter: Reynold Xin
>
> Would be great to have test coverage report for Python. Compared with Scala, 
> it is tricker to understand the coverage without coverage reports in Python 
> because we employ both docstring tests and unit tests in test files. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to