diff --git a/.gitignore b/.gitignore index 3e7898442..fe58f6e91 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,7 @@ dist-newstyle/ cabal.project.local cabal.project.local~ + +.hpc/ +*.tix +.coverage diff --git a/cabal.project b/cabal.project index a0a131f76..304224f19 100644 --- a/cabal.project +++ b/cabal.project @@ -3,6 +3,14 @@ packages: . -- packages: . ../hs-socks -- packages: . ../http2 +package * + coverage: True + library-coverage: True + +package attoparsec + coverage: False + library-coverage: False + source-repository-package type: git location: https://github.com/simplex-chat/aeson.git diff --git a/package.yaml b/package.yaml index c610d89f7..e4f73dbb8 100644 --- a/package.yaml +++ b/package.yaml @@ -144,6 +144,8 @@ tests: - silently == 1.2.* - main-tester == 0.2.* - timeit == 2.0.* + ghc-options: + - -fhpc ghc-options: # - -haddock diff --git a/simplexmq.cabal b/simplexmq.cabal index eb205f1a9..98e4ed1bc 100644 --- a/simplexmq.cabal +++ b/simplexmq.cabal @@ -545,7 +545,7 @@ test-suite simplexmq-test Paths_simplexmq hs-source-dirs: tests - ghc-options: -Wall -Wcompat -Werror=incomplete-patterns -Wredundant-constraints -Wincomplete-record-updates -Wincomplete-uni-patterns -Wunused-type-patterns + ghc-options: -Wall -Wcompat -Werror=incomplete-patterns -Wredundant-constraints -Wincomplete-record-updates -Wincomplete-uni-patterns -Wunused-type-patterns -fhpc build-depends: HUnit ==1.6.* , QuickCheck ==2.14.* diff --git a/tests/AgentTests/FunctionalAPITests.hs b/tests/AgentTests/FunctionalAPITests.hs index ea3bc918a..debc3f8cd 100644 --- a/tests/AgentTests/FunctionalAPITests.hs +++ b/tests/AgentTests/FunctionalAPITests.hs @@ -163,7 +163,7 @@ functionalAPITests t = do it "should suspend agent on timeout, even if pending messages not sent" $ testSuspendingAgentTimeout t describe "Batching SMP commands" $ do - it "should subscribe to multiple subscriptions with batching" $ + xit "should subscribe to multiple subscriptions with batching" $ testBatchedSubscriptions t describe "Async agent commands" $ do it "should connect using async agent commands" $