Added test to prevent this and similar issues

This commit is contained in:
Mick Grove 2025-06-29 22:01:25 -07:00
commit 366f6fab5b
3 changed files with 25 additions and 1 deletions

View file

@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
## [1.17.1]
- Fixed broken sourcegraph rule
- Added test to prevent this and similar issues
## [1.17.0]
- Updated README to give proper attribution to Nosey Parker!
- Added rules for sonarcloud, sonarqube, sourcegraph, shopify, truenas, square, sendgrid, nasa, teamcity, truenas, shopify

View file

@ -10,7 +10,7 @@ publish = false
[package]
name = "kingfisher"
version = "1.17.0"
version = "1.17.1"
edition.workspace = true
rust-version.workspace = true
license.workspace = true

View file

@ -0,0 +1,20 @@
use assert_cmd::prelude::*;
use assert_cmd::Command;
use predicates::str::contains;
#[test]
fn scan_homebrew_github_no_findings() -> anyhow::Result<()> {
Command::cargo_bin("kingfisher")?
.args([
"scan",
"--git-url",
"https://github.com/homebrew/.github",
"--no-update-check",
])
.assert()
.success()
.stdout(contains("|Findings....................: 0"))
.stdout(contains("|__Successful Validations....: 0"))
.stdout(contains("|__Failed Validations........: 0"));
Ok(())
}