Adding coverage reporting for tests #279
Merged
Garnix CI / check haskell-project-for-integration-tests [aarch64-darwin]
succeeded
May 23, 2024 in 9s
Run results
Build succeeded
Details
Last 100 lines of logs:
echo ":quit" | cabal --with-compiler=ghc-9.4.8 --repl-options='-fwrite-interface -hisuf ghci_hi' v2-repl lib:test-dev
Build profile: -w ghc-9.4.8 -O1
In order, the following will be built (use -v for more details):
- my-simple-package-0.1.0.0 (lib:test-dev) (ephemeral targets)
Preprocessing library 'test-dev' for my-simple-package-0.1.0.0..
GHCi, version 9.4.8: https://www.haskell.org/ghc/ :? for help
[1 of 3] Compiling MyLib ( src/MyLib.hs, interpreted )
[2 of 3] Compiling MyModule ( src/MyModule.hs, interpreted )
[3 of 3] Compiling TestMain ( test/TestMain.hs, interpreted )
Ok, three modules loaded.
ghci> Leaving GHCi.
cabal --with-compiler=ghc-9.6.5 --ghc-options='-fwrite-interface ' build lib:test-dev
Warning: No remote package servers have been specified. Usually you would have
one specified in the config file.
Resolving dependencies...
Build profile: -w ghc-9.6.5 -O1
In order, the following will be built (use -v for more details):
- my-simple-package-0.1.0.0 (lib:test-dev) (first run)
Configuring library 'test-dev' for my-simple-package-0.1.0.0..
Preprocessing library 'test-dev' for my-simple-package-0.1.0.0..
Building library 'test-dev' for my-simple-package-0.1.0.0..
[1 of 3] Compiling MyLib ( src/MyLib.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.5/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/MyLib.o, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.5/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/MyLib.dyn_o )
[2 of 3] Compiling MyModule ( src/MyModule.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.5/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/MyModule.o, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.5/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/MyModule.dyn_o )
[3 of 3] Compiling TestMain ( test/TestMain.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.5/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/TestMain.o, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.5/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/TestMain.dyn_o )
cabal --with-compiler=ghc-9.6.5 test
Build profile: -w ghc-9.6.5 -O1
In order, the following will be built (use -v for more details):
- my-simple-package-0.1.0.0 (lib:test-dev) (configuration changed)
- my-simple-package-0.1.0.0 (test:test) (first run)
Configuring library 'test-dev' for my-simple-package-0.1.0.0..
Preprocessing library 'test-dev' for my-simple-package-0.1.0.0..
Building library 'test-dev' for my-simple-package-0.1.0.0..
Configuring test suite 'test' for my-simple-package-0.1.0.0..
Preprocessing test suite 'test' for my-simple-package-0.1.0.0..
Building test suite 'test' for my-simple-package-0.1.0.0..
[1 of 1] Compiling Main ( test-main/Main.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.5/my-simple-package-0.1.0.0/t/test/build/test/test-tmp/Main.o )
[2 of 2] Linking /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.5/my-simple-package-0.1.0.0/t/test/build/test/test
Running 1 test suites...
Test suite test: RUNNING...
Test suite test: PASS
Test suite logged to:
/private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.5/my-simple-package-0.1.0.0/t/test/test/my-simple-package-0.1.0.0-test.log
1 of 1 test suites (1 of 1 test cases) passed.
echo ":quit" | cabal --with-compiler=ghc-9.6.5 --repl-options='-fwrite-interface -hisuf ghci_hi' v2-repl lib:test-dev
Build profile: -w ghc-9.6.5 -O1
In order, the following will be built (use -v for more details):
- my-simple-package-0.1.0.0 (lib:test-dev) (ephemeral targets)
Preprocessing library 'test-dev' for my-simple-package-0.1.0.0..
GHCi, version 9.6.5: https://www.haskell.org/ghc/ :? for help
[1 of 3] Compiling MyLib ( src/MyLib.hs, interpreted )
[2 of 3] Compiling MyModule ( src/MyModule.hs, interpreted )
[3 of 3] Compiling TestMain ( test/TestMain.hs, interpreted )
Ok, three modules loaded.
ghci> Leaving GHCi.
cabal --with-compiler=ghc-9.8.2 --ghc-options='-fwrite-interface ' build lib:test-dev
Warning: No remote package servers have been specified. Usually you would have
one specified in the config file.
Resolving dependencies...
Build profile: -w ghc-9.8.2 -O1
In order, the following will be built (use -v for more details):
- my-simple-package-0.1.0.0 (lib:test-dev) (first run)
Configuring library 'test-dev' for my-simple-package-0.1.0.0..
Preprocessing library 'test-dev' for my-simple-package-0.1.0.0..
Building library 'test-dev' for my-simple-package-0.1.0.0..
[1 of 3] Compiling MyLib ( src/MyLib.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.2/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/MyLib.o, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.2/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/MyLib.dyn_o )
[2 of 3] Compiling MyModule ( src/MyModule.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.2/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/MyModule.o, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.2/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/MyModule.dyn_o )
[3 of 3] Compiling TestMain ( test/TestMain.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.2/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/TestMain.o, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.2/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/TestMain.dyn_o )
cabal --with-compiler=ghc-9.8.2 test
Build profile: -w ghc-9.8.2 -O1
In order, the following will be built (use -v for more details):
- my-simple-package-0.1.0.0 (lib:test-dev) (configuration changed)
- my-simple-package-0.1.0.0 (test:test) (first run)
Configuring library 'test-dev' for my-simple-package-0.1.0.0..
Preprocessing library 'test-dev' for my-simple-package-0.1.0.0..
Building library 'test-dev' for my-simple-package-0.1.0.0..
Configuring test suite 'test' for my-simple-package-0.1.0.0..
Preprocessing test suite 'test' for my-simple-package-0.1.0.0..
Building test suite 'test' for my-simple-package-0.1.0.0..
[1 of 1] Compiling Main ( test-main/Main.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.2/my-simple-package-0.1.0.0/t/test/build/test/test-tmp/Main.o )
[2 of 2] Linking /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.2/my-simple-package-0.1.0.0/t/test/build/test/test
Running 1 test suites...
Test suite test: RUNNING...
Test suite test: PASS
Test suite logged to:
/private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.2/my-simple-package-0.1.0.0/t/test/test/my-simple-package-0.1.0.0-test.log
1 of 1 test suites (1 of 1 test cases) passed.
echo ":quit" | cabal --with-compiler=ghc-9.8.2 --repl-options='-fwrite-interface -hisuf ghci_hi' v2-repl lib:test-dev
Build profile: -w ghc-9.8.2 -O1
In order, the following will be built (use -v for more details):
- my-simple-package-0.1.0.0 (lib:test-dev) (ephemeral targets)
Preprocessing library 'test-dev' for my-simple-package-0.1.0.0..
GHCi, version 9.8.2: https://www.haskell.org/ghc/ :? for help
[1 of 3] Compiling MyLib ( src/MyLib.hs, interpreted )
[2 of 3] Compiling MyModule ( src/MyModule.hs, interpreted )
[3 of 3] Compiling TestMain ( test/TestMain.hs, interpreted )
Ok, three modules loaded.
ghci> Leaving GHCi.
buildPhase completed in 49 seconds
@nix {"action":"setPhase","phase":"installPhase"}
Running phase: installPhase
Loading