Skip to content

Commit

Permalink
test: make test helper module public
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Nov 30, 2021
1 parent a32a517 commit 205397b
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/coco_commit_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use anyhow::Result;
use assert_cmd::prelude::*;
use std::process::Command;

mod helper;
pub mod helper;
use helper::run_test_with_context;

#[test]
Expand Down
2 changes: 1 addition & 1 deletion tests/cog_bump_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use anyhow::Result;
use assert_cmd::prelude::*;
use std::process::Command;

mod helper;
pub mod helper;

use helper::run_test_with_context;
use indoc::indoc;
Expand Down
2 changes: 1 addition & 1 deletion tests/cog_changelog_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use anyhow::Result;
use assert_cmd::Command;
use predicates::prelude::{predicate, PredicateBooleanExt};

mod helper;
pub mod helper;
use helper::run_test_with_context;

#[test]
Expand Down
2 changes: 1 addition & 1 deletion tests/cog_check_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use anyhow::Result;
use assert_cmd::Command;
use predicates::prelude::predicate;

mod helper;
pub mod helper;
use helper::run_test_with_context;

#[test]
Expand Down
2 changes: 1 addition & 1 deletion tests/cog_init_test_it.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use cocogitto::CONFIG_PATH;
use helper::*;
use std::process::Command;

mod helper;
pub mod helper;
use helper::run_test_with_context;

#[test]
Expand Down
2 changes: 1 addition & 1 deletion tests/cog_verify_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use assert_cmd::prelude::*;
use indoc::indoc;
use std::process::Command;

mod helper;
pub mod helper;

use helper::run_test_with_context;

Expand Down
2 changes: 1 addition & 1 deletion tests/git_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use anyhow::Result;
use cocogitto::CocoGitto;
use helper::*;

mod helper;
pub mod helper;

use helper::run_test_with_context;

Expand Down
2 changes: 0 additions & 2 deletions tests/helper.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#![allow(dead_code)]
#![cfg(not(tarpaulin_include))]

use anyhow::Result;
use cocogitto::CONFIG_PATH;
use rand::Rng;
Expand Down

0 comments on commit 205397b

Please sign in to comment.