Skip to content

Commit

Permalink
add integration test suite for CLI (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfrankland authored Sep 17, 2024
1 parent 0406f39 commit 0a24606
Show file tree
Hide file tree
Showing 10 changed files with 756 additions and 240 deletions.
194 changes: 192 additions & 2 deletions Cargo.lock

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

6 changes: 5 additions & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ openssl = { version = "0.10.66", features = ["vendored"] }
uuid = { version = "1.10.0", features = ["v5"] }

[dev-dependencies]
git2 = "0.19.0" # Used for creating test repos with libgit2
assert_cmd = "2.0.16"
assert_matches = "1.5.0"
axum = { version = "0.7.5", features = ["macros"] }
git2 = "0.19.0" # Used for creating test repos with libgit2
junit-mock = { path = "../junit-mock" }

[build-dependencies]
vergen = { version = "8.3.1", features = [
Expand Down
6 changes: 3 additions & 3 deletions cli/src/codeowners.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
use std::path::{Path, PathBuf};

use codeowners::Owners;
use serde::Serialize;
use serde::{Deserialize, Serialize};

use crate::constants::CODEOWNERS_LOCATIONS;

#[derive(Default, Debug, Serialize, Clone)]
#[derive(Default, Debug, Serialize, Deserialize, Clone, PartialEq)]
pub struct CodeOwners {
pub path: PathBuf,
#[serde(skip_serializing)]
#[serde(skip_serializing, skip_deserializing)]
pub owners: Option<Owners>,
}

Expand Down
Loading

0 comments on commit 0a24606

Please sign in to comment.