[GHC] #15776: Untested modules excluded from hpc coverage report

GHC ghc-devs at haskell.org
Thu Oct 18 19:41:10 UTC 2018


#15776: Untested modules excluded from hpc coverage report
-------------------------------------+-------------------------------------
           Reporter:  ramirez7       |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Code Coverage  |           Version:  8.4.3
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 If I add a new module to my project without adding testing and then
 generate a code coverage report, there is no mention of the new module in
 the report.

 I believe the correct behavior is for the module to be included with it
 being 0% covered (w/corresponding highlighted source)

 I posted some details here:
 https://www.reddit.com/r/haskell/comments/9mjwr6/how_to_get_hpc_to_include_fullyuncovered_modules/

 As a workaround, I could probably use the hpc library to add 0% coverage
 for all modules to tix files. But that feels hacky.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15776>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list