Skip to content
This repository was archived by the owner on Feb 3, 2023. It is now read-only.

Update default.nix #2017

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion crates/cli/test/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let
''
set -euxo pipefail
cargo test -p hc --target-dir "$CARGO_TARGET_DIR"/cli-test
bats crates/cli/test/hc.bats
bats --tap crates/cli/test/hc.bats
'';
in
{
Expand Down
9 changes: 5 additions & 4 deletions crates/cli/test/hc.bats
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,19 @@ teardown () {

echo '# steps adapted from quickstart 2019-09-11' >&3

echo '# hc init "$TMP/$app_name"' >&3
echo "# hc init $TMP/$app_name" >&3
run hc init "$TMP/$app_name"

echo '# cd "$TMP/$app_name"' >&3
echo "# cd $TMP/$app_name" >&3
cd "$TMP/$app_name"

echo '# hc generate "zomes/$zome_name"' >&3
echo "# hc generate zomes/$zome_name" >&3
run hc generate "zomes/$zome_name"

echo '# hc test' >&3
export CARGO_TARGET_DIR="$CARGO_TARGET_DIR/cli/hc-test"
echo "# $CARGO_TARGET_DIR" >&3
run hc test

echo "# output: $output" >&3
echo "# status: $status" >&3
}