-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[static analysis][ci-visibility] Add e2e tests to sarif and junit upl…
…oads (#1012)
- Loading branch information
1 parent
058cbab
commit 8f211e1
Showing
6 changed files
with
146 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
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuites duration="50.5"> | ||
<testsuite failures="0" name="Untitled suite in agent.js" package="tests/suites/casper/agent" tests="3" time="0.256"> | ||
<testcase classname="tests/suites/casper/agent" name="Default user agent matches /CasperJS/" time="0.103"/> | ||
<testcase classname="tests/suites/casper/agent" name="Default user agent matches /plop/" time="0.146"/> | ||
<testcase classname="tests/suites/casper/agent" name="Default user agent matches /plop/" time="0.007"/> | ||
</testsuite> | ||
</testsuites> |
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuites duration="50.5"> | ||
<testsuite failures="0" name="Untitled suite in agent.js" package="tests/suites/casper/agent" tests="3" time="0.256"> | ||
<testcase classname="tests/suites/casper/agent" name="Default user agent matches /CasperJS/" time="0.103"/> | ||
<testcase classname="tests/suites/casper/agent" name="Default user agent matches /plop/" time="0.146"/> | ||
<testcase classname="tests/suites/casper/agent" name="Default user agent matches /plop/" time="0.007"/> | ||
</testsuite> | ||
</testsuites> |
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,60 @@ | ||
{ | ||
"version": "2.1.0", | ||
"$schema": "http://json.schemastore.org/sarif-2.1.0-rtm.5", | ||
"runs": [ | ||
{ | ||
"tool": { | ||
"driver": { | ||
"name": "ESLint", | ||
"informationUri": "https://eslint.org", | ||
"rules": [ | ||
{ | ||
"id": "@typescript-eslint/no-unused-vars", | ||
"helpUri": "https://github.com/typescript-eslint/typescript-eslint/blob/v4.33.0/packages/eslint-plugin/docs/rules/no-unused-vars.md", | ||
"properties": { | ||
"category": "Variables" | ||
}, | ||
"shortDescription": { | ||
"text": "Disallow unused variables" | ||
} | ||
} | ||
], | ||
"version": "7.32.0" | ||
} | ||
}, | ||
"artifacts": [ | ||
{ | ||
"location": { | ||
"uri": "file:///foo/bar/myfile.test.ts" | ||
} | ||
} | ||
], | ||
"results": [ | ||
{ | ||
"level": "error", | ||
"message": { | ||
"text": "'foobar' is assigned a value but never used. Allowed unused vars must match /_/u." | ||
}, | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "file:///foo/bar/myfile.test.ts", | ||
"index": 0 | ||
}, | ||
"region": { | ||
"startLine": 7, | ||
"startColumn": 7, | ||
"endLine": 7, | ||
"endColumn": 14 | ||
} | ||
} | ||
} | ||
], | ||
"ruleId": "@typescript-eslint/no-unused-vars", | ||
"ruleIndex": 0 | ||
} | ||
] | ||
} | ||
] | ||
} |
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,60 @@ | ||
{ | ||
"version": "2.1.0", | ||
"$schema": "http://json.schemastore.org/sarif-2.1.0-rtm.5", | ||
"runs": [ | ||
{ | ||
"tool": { | ||
"driver": { | ||
"name": "ESLint", | ||
"informationUri": "https://eslint.org", | ||
"rules": [ | ||
{ | ||
"id": "@typescript-eslint/no-unused-vars", | ||
"helpUri": "https://github.com/typescript-eslint/typescript-eslint/blob/v4.33.0/packages/eslint-plugin/docs/rules/no-unused-vars.md", | ||
"properties": { | ||
"category": "Variables" | ||
}, | ||
"shortDescription": { | ||
"text": "Disallow unused variables" | ||
} | ||
} | ||
], | ||
"version": "7.32.0" | ||
} | ||
}, | ||
"artifacts": [ | ||
{ | ||
"location": { | ||
"uri": "file:///foo/bar/myfile.test.ts" | ||
} | ||
} | ||
], | ||
"results": [ | ||
{ | ||
"level": "error", | ||
"message": { | ||
"text": "'foobar' is assigned a value but never used. Allowed unused vars must match /_/u." | ||
}, | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "file:///foo/bar/myfile.test.ts", | ||
"index": 0 | ||
}, | ||
"region": { | ||
"startLine": 7, | ||
"startColumn": 7, | ||
"endLine": 7, | ||
"endColumn": 14 | ||
} | ||
} | ||
} | ||
], | ||
"ruleId": "@typescript-eslint/no-unused-vars", | ||
"ruleIndex": 0 | ||
} | ||
] | ||
} | ||
] | ||
} |
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