-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(helper): add test for helper output
- Loading branch information
1 parent
5ed29dd
commit 2d7012a
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env perl | ||
|
||
use strict; | ||
use warnings; | ||
use Test::More; | ||
use Test::Exception; | ||
use lib '../lib'; | ||
use SecurityGate::Utils::Helper; | ||
|
||
subtest 'Helper output' => sub { | ||
my $helper_output = SecurityGate::Utils::Helper->new(); | ||
|
||
like($helper_output, qr/Security\ Gate\ v0\.0\.3/x, 'Helper output contains version'); | ||
like($helper_output, qr/-t,\ --token/x, 'Helper output contains token option'); | ||
like($helper_output, qr/-r,\ --repo/x, 'Helper output contains repo option'); | ||
like($helper_output, qr/--dependency-alerts/x, 'Helper output contains dependency alerts option'); | ||
like($helper_output, qr/--secret-scanning-alerts/x, 'Helper output contains secret scanning alerts option'); | ||
like($helper_output, qr/--code-scanning-alerts/x, 'Helper output contains code scanning alerts option'); | ||
}; | ||
|
||
done_testing(); |