Skip to content

Commit

Permalink
fix: add some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
johnyob committed Sep 23, 2024
1 parent 3587d4e commit 3549bdc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/jstzd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ async-trait.workspace = true
bollard.workspace = true
futures-util.workspace = true
tokio.workspace = true
env_logger.workspace = true

[[bin]]
name = "jstzd"
Expand Down
2 changes: 2 additions & 0 deletions crates/jstzd/tests/dummy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ use jstzd::main;

#[tokio::test]
async fn test_main() {
env_logger::init();

let docker = Docker::connect_with_unix(
"unix:///var/run/docker.sock",
120,
Expand Down
5 changes: 3 additions & 2 deletions nix/crates.nix
Original file line number Diff line number Diff line change
Expand Up @@ -124,22 +124,23 @@ in {
// {
cargoArtifacts = cargoDeps;

RUST_LOG = "debug";
buildInputs = commonWorkspace.buildInputs ++ [pkgs.docker];
# Run the integration tests
#
# FIXME():
# Don't run the `jstz_api` integration tests until they've been paralellized
#
# Note: --workspace is required for --exclude. Once --exclude is removed, remove --workspace
cargoNextestExtraArg = "--workspace --test \"*\" --exclude \"jstz_api\"";
cargoNextestExtraArgs = "--workspace --test \"*\" --exclude \"jstz_api\" --no-capture";
});

cargo-llvm-cov = craneLib.cargoLlvmCov (commonWorkspace
// {
cargoArtifacts = cargoDeps;
buildInputs = commonWorkspace.buildInputs ++ [pkgs.docker];
# Generate coverage reports for codecov
cargoLlvmCovExtraArgs = "--workspace --exclude-from-test \"jstz_api\" --codecov --output-path $out";
cargoLlvmCovExtraArgs = "--workspace --exclude-from-test \"jstz_api\" --no-capture --codecov --output-path $out";
});

cargo-clippy = craneLib.cargoClippy (commonWorkspace
Expand Down

0 comments on commit 3549bdc

Please sign in to comment.