Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alt-romes committed Dec 5, 2023
1 parent c327a18 commit 43dde53
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packages: pkg-a
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Test.Cabal.Prelude

main = cabalTest $ do
cabal "test" ["--enable-coverage"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Lib where

lib = "lib"
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
cabal-version: 3.0

name: pkg-a
version: 0.1
build-type: Simple
category: Test
maintainer: Joe
synopsis: Test input
description: Test input
license: BSD-3-Clause

library
build-depends: base
default-language: Haskell2010
exposed-modules: Lib
hs-source-dirs: .

test-suite testing
type: exitcode-stdio-1.0
build-depends: base, pkg-a
main-is: Main.hs
hs-source-dirs: test

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Lib
main = putStrLn lib

0 comments on commit 43dde53

Please sign in to comment.