How to measure the code coverage when testing the tensorflow

17 views
Skip to first unread message

Yongqiang TIAN

unread,
Jan 7, 2021, 4:19:10 AMJan 7
to SIG Build
Hi,

I want to measure the code coverage (python and c++) when running the tensorlfow's tests. Is there any convenient way to do so? Or I should do it by myself: add flags to the compiler and use lcov to calculate the coverage?

Thanks. 

Yongqiang TIAN

unread,
Jan 7, 2021, 4:30:28 AMJan 7
to SIG Build, Yongqiang TIAN
Actually, I can't find the documentation to run all the tests. I appreciate it if you can tell me. 

Victor. 

Austin Anderson

unread,
Jan 12, 2021, 4:12:18 PMJan 12
to SIG Build, yqti...@gmail.com
You can find the test scripts that we run to verify releases here: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/tools/ci_build/rel

 Unfortunately, we don't use any external code coverage tools as far as I know, so coverage testing would have to be implemented manually.

Yongqiang TIAN

unread,
Jan 13, 2021, 3:08:35 AMJan 13
to SIG Build, Austin Anderson, Yongqiang TIAN
Hi Austin,

Thanks for your help. I will take a look. 

Best, 
Victor. 

Reply all
Reply to author
Forward
0 new messages