4545 TestGit * bool
4646
4747 TestAuditGeneral * bool
48+ TestAuditJas * bool
4849 TestAuditJavaScript * bool
4950 TestAuditJava * bool
5051 TestAuditCTypes * bool
@@ -94,7 +95,8 @@ func init() {
9495 TestEnrich = flag .Bool ("test.enrich" , false , "Run Enrich command integration tests" )
9596 TestGit = flag .Bool ("test.git" , false , "Run Git commands integration tests" )
9697
97- TestAuditGeneral = flag .Bool ("test.audit" , false , "Run general (Jas, MultiTech...) audit integration tests" )
98+ TestAuditGeneral = flag .Bool ("test.audit" , false , "Run general (Detection, NoTech, MultiTech...) audit integration tests" )
99+ TestAuditJas = flag .Bool ("test.audit.Jas" , false , "Run Jas audit integration tests" )
98100 TestAuditJavaScript = flag .Bool ("test.audit.JavaScript" , false , "Run JavaScript technologies (Npm, Pnpm, Yarn) audit integration tests" )
99101 TestAuditJava = flag .Bool ("test.audit.Java" , false , "Run Java technologies (Maven, Gradle) audit integration tests" )
100102 TestAuditCTypes = flag .Bool ("test.audit.C" , false , "Run C/C++/C# technologies (Nuget/DotNet, Conan) audit integration tests" )
@@ -115,14 +117,15 @@ func init() {
115117func InitTestFlags () {
116118 flag .Parse ()
117119 // If no test types flags were set, run all types
118- shouldRunAllTests := ! isAtLeastOneFlagSet (TestUnit , TestArtifactory , TestXray , TestXsc , TestAuditGeneral , TestAuditJavaScript , TestAuditJava , TestAuditCTypes , TestAuditGo , TestAuditPython , TestScan , TestDockerScan , TestCuration , TestEnrich , TestGit )
120+ shouldRunAllTests := ! isAtLeastOneFlagSet (TestUnit , TestArtifactory , TestXray , TestXsc , TestAuditGeneral , TestAuditJas , TestAuditJavaScript , TestAuditJava , TestAuditCTypes , TestAuditGo , TestAuditPython , TestScan , TestDockerScan , TestCuration , TestEnrich , TestGit )
119121 if shouldRunAllTests {
120122 log .Info ("Running all tests. To run only specific tests, please specify the desired test flags." )
121123 * TestUnit = true
122124 * TestArtifactory = true
123125 * TestXray = true
124126 * TestXsc = true
125127 * TestAuditGeneral = true
128+ * TestAuditJas = true
126129 * TestAuditJavaScript = true
127130 * TestAuditJava = true
128131 * TestAuditCTypes = true
0 commit comments