Skip to content

Commit a63e70d

Browse files
authored
Merge pull request #17015 from github/criemen/pytest-js
Integration tests: port to pytest.
2 parents 24261b2 + 620582f commit a63e70d

File tree

6 files changed

+19
-36
lines changed

6 files changed

+19
-36
lines changed
Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
2-
"timestamp": "2023-03-23T12:04:41.317+00:00",
3-
"source": {
4-
"id": "js/internal-error",
5-
"name": "Internal error",
6-
"extractorName": "javascript"
7-
},
8-
"markdownMessage": "Internal error: com.semmle.util.exception.CatastrophicError: The TypeScript parser wrapper crashed with exit code 1",
9-
"severity": "unknown",
10-
"visibility": {
11-
"cliSummaryTable": true,
12-
"statusPage": false,
13-
"telemetry": true
14-
}
15-
}
2+
"markdownMessage": "Internal error: com.semmle.util.exception.CatastrophicError: The TypeScript parser wrapper crashed with exit code 1",
3+
"severity": "unknown",
4+
"source": {
5+
"extractorName": "javascript",
6+
"id": "js/internal-error",
7+
"name": "Internal error"
8+
},
9+
"visibility": {
10+
"cliSummaryTable": true,
11+
"statusPage": false,
12+
"telemetry": true
13+
}
14+
}
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
import os
2-
from create_database_utils import *
3-
from diagnostics_test_utils import *
4-
5-
run_codeql_database_create([], lang="javascript", runFunction = runUnsuccessfully, db = None)
6-
7-
check_diagnostics()
1+
def test(codeql, javascript):
2+
codeql.database.create(_assert_failure=True)
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
import os
2-
from create_database_utils import *
3-
from diagnostics_test_utils import *
4-
5-
run_codeql_database_create([], lang="javascript", runFunction = runSuccessfully, db = None)
6-
7-
check_diagnostics()
1+
def test(codeql, javascript):
2+
codeql.database.create()
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
from create_database_utils import *
2-
3-
run_codeql_database_create([], lang="javascript", extra_args=["-Oskip_types=true"])
1+
def test(codeql, javascript):
2+
codeql.database.create(extractor_option="skip_types=true")

javascript/ql/integration-tests/all-platforms/qlpack.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

javascript/ql/integration-tests/legacy

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)