Skip to content
This repository has been archived by the owner on Oct 18, 2019. It is now read-only.

Code coverage unavailable #1

Open
ancarda opened this issue Sep 17, 2018 · 0 comments
Open

Code coverage unavailable #1

ancarda opened this issue Sep 17, 2018 · 0 comments

Comments

@ancarda
Copy link
Owner

ancarda commented Sep 17, 2018

The --coverage flag of stack test doesn't seem to work in this project as I get an error that only one tix file was found.

% git rev-parse HEAD
4d661af3465026bd4dce0fb38fc25efe5d2e1f2f
% rm -rf .stack-work/
% stack test --coverage
hs-e164-0.1.1: configure (lib + test)
Configuring hs-e164-0.1.1...
hs-e164-0.1.1: build (lib + test)
Preprocessing library 'internal' for hs-e164-0.1.1..
Building library 'internal' for hs-e164-0.1.1..
[1 of 3] Compiling Telephony.PSTN.E164.Types ( lib/Telephony/PSTN/E164/Types.hs, .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/internal/Telephony/PSTN/E164/Types.o )
[2 of 3] Compiling Telephony.PSTN.E164.NANP ( lib/Telephony/PSTN/E164/NANP.hs, .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/internal/Telephony/PSTN/E164/NANP.o )
[3 of 3] Compiling Telephony.PSTN.E164 ( lib/Telephony/PSTN/E164.hs, .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/internal/Telephony/PSTN/E164.o )
ignoring (possibly broken) abi-depends field for packages
Preprocessing library for hs-e164-0.1.1..
Building library for hs-e164-0.1.1..
ignoring (possibly broken) abi-depends field for packages
Preprocessing test suite 'test' for hs-e164-0.1.1..
Building test suite 'test' for hs-e164-0.1.1..
[1 of 1] Compiling Main             ( test/Spec.hs, .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/test/test-tmp/Main.o )
Linking .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/test/test ...
hs-e164-0.1.1: copy/register
Installing internal library internal in /home/ancarda/Documents/ancarda/hs-e164/.stack-work/install/x86_64-linux/lts-12.9/8.4.3/lib/x86_64-linux-ghc-8.4.3/hs-e164-0.1.1-Fxdv7ig8jrs7oddVUF98RF-internal
Installing library in /home/ancarda/Documents/ancarda/hs-e164/.stack-work/install/x86_64-linux/lts-12.9/8.4.3/lib/x86_64-linux-ghc-8.4.3/hs-e164-0.1.1-L3HwjdjZMvJHN0n7u5EpjI
Registering library 'internal' for hs-e164-0.1.1..
Registering library for hs-e164-0.1.1..
hs-e164-0.1.1: test (suite: test)
            
Progress 1/2: hs-e164-0.1.1
E164Number
  should parse E.164 numbers
  should support the North American Numbering Plan (+1)
  should convert E164Number to string
  should do DNS mapping of E.164 numbers

Finished in 0.0007 seconds
4 examples, 0 failures
                           
hs-e164-0.1.1: Test suite test passed
Multiple files matching hs-e164-0.1.1-*.conf found in /home/ancarda/Documents/ancarda/hs-e164/.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/package.conf.inplace/. Maybe try 'stack clean' on this package?
Completed 2 action(s).     
Only one tix file found in /home/ancarda/Documents/ancarda/hs-e164/.stack-work/install/x86_64-linux/lts-12.9/8.4.3/hpc/, so not generating a unified coverage report.

An index of the generated HTML coverage reports is available at /home/ancarda/Documents/ancarda/hs-e164/.stack-work/install/x86_64-linux/lts-12.9/8.4.3/hpc/index.html
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant