Skip to content

Commit d82f66c

Browse files
authored
Merge pull request #17149 from github/criemen/pytest-go
Port the go integration tests to pytest framework
2 parents d97f657 + cdf0677 commit d82f66c

File tree

81 files changed

+86
-162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+86
-162
lines changed

go/integration-tests-lib/go_integration_test.py

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

go/ql/integration-tests/all-platforms/go/bazel-sample-1/force_sequential_test_execution

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
from go_integration_test import *
2-
3-
go_integration_test()
1+
def test(codeql, go):
2+
codeql.database.create(source_root="src")

go/ql/integration-tests/all-platforms/go/bazel-sample-2/force_sequential_test_execution

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
from go_integration_test import *
2-
3-
go_integration_test()
1+
def test(codeql, go):
2+
codeql.database.create(source_root="src")
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import os
2+
import pytest
23

3-
from go_integration_test import *
44

5-
os.environ['LGTM_INDEX_IMPORT_PATH'] = "test"
6-
go_integration_test(source="work", db=None)
5+
def test(codeql, go, check_build_environment):
6+
check_build_environment.source_root = "work"
7+
os.environ["LGTM_INDEX_IMPORT_PATH"] = "test"
8+
codeql.database.create(source_root="work")

go/ql/integration-tests/all-platforms/go/diagnostics/force_sequential_test_execution

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

0 commit comments

Comments
 (0)