Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests with coverage #372

Merged
merged 3 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
packages:
.

package cooked-validators
coverage: True
library-coverage: True

package cardano-crypto-praos
flags: -external-libsodium-vrf

Expand All @@ -24,7 +28,6 @@ source-repository-package

-- Everything below this point has been copied from plutus-apps' cabal.project


-- Custom repository for cardano haskell packages
-- See https://github.com/input-output-hk/cardano-haskell-packages on how to use CHaP in a Haskell project.
repository cardano-haskell-packages
Expand Down
16 changes: 15 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,23 @@
## one pinned by HLS.
buildInputs = buildInputs ++ (with pkgs; [ ormolu hpack hlint ])
++ (with hpkgs; [ haskell-language-server ]);
inherit (pre-commit) shellHook;

inherit LD_LIBRARY_PATH;
inherit LANG;

# In addition to the pre-commit hooks, this redefines a cabal
# command that gets rid of annoying "Writing: .....*.html" output
# when running cabal test.
shellHook = pre-commit.shellHook + ''
function cabal() {
if [ "$1" != "test" ]; then
command cabal $@
else
command cabal --test-option=--color=always $@ | grep -vE --color=never "^Writing:.*html$"
fi
}
export -f cabal
'';
};
};

Expand Down
Loading