1
2
3
4
5
6
7
8
9
10
11
use assert_cmd::Command;
use prdoclib::config;

#[cfg(test)]
#[allow(dead_code)]
pub(crate) fn prdoc_bin() -> Command {
	let mut cmd = Command::cargo_bin(env!("CARGO_PKG_NAME")).expect("Failed getting test bin");
	cmd.env(config::env::PRDOC_FOLDERS, "../tests/data/all");
	cmd.env(config::env::PRDOC_CONFIG, "../prdoc.toml");
	cmd
}