Skip to content

Commit a41051b

Browse files
authored
Merge #3460 rename integrationTest/ => testInteg/
2 parents 0e66e97 + ffe538b commit a41051b

28 files changed

+20
-21
lines changed

.nycrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"all": true,
33
"include": ["src/**", "dist/src/**"],
4-
"exclude": ["test/**", "integrationTest/**", "testFixtures/**"]
4+
"exclude": ["test/**", "testE2E/**", "testLint/**", "testInteg/**", "testFixtures/**"]
55
}

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"args": [
9494
"${workspaceFolder}/dist/src/testFixtures/workspaceFolder",
9595
"--extensionDevelopmentPath=${workspaceFolder}",
96-
"--extensionTestsPath=${workspaceFolder}/dist/src/integrationTest/index.js"
96+
"--extensionTestsPath=${workspaceFolder}/dist/src/testInteg/index.js"
9797
],
9898
"env": {
9999
"DEVELOPMENT_PATH": "${workspaceFolder}",
@@ -110,7 +110,7 @@
110110
"args": [
111111
"${workspaceFolder}/dist/src/testFixtures/workspaceFolder",
112112
"--extensionDevelopmentPath=${workspaceFolder}",
113-
"--extensionTestsPath=${workspaceFolder}/dist/src/integrationTest/index.js"
113+
"--extensionTestsPath=${workspaceFolder}/dist/src/testInteg/index.js"
114114
],
115115
"env": {
116116
"TEST_FILE": "${relativeFile}",

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ You can run tests directly from Visual Studio Code:
127127
You can also run tests from the command line:
128128
129129
npm run test
130-
npm run integrationTest
130+
npm run testInteg
131131
132132
Tests will write logs to `./.test-reports/testLog.log`.
133133

buildspec/linuxIntegrationTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ phases:
6868
build:
6969
commands:
7070
- npm ci --unsafe-perm
71-
- xvfb-run npm run integrationTest
71+
- xvfb-run npm run testInteg
7272
- VCS_COMMIT_ID="${CODEBUILD_RESOLVED_SOURCE_VERSION}"
7373
- CI_BUILD_URL=$(echo $CODEBUILD_BUILD_URL | sed 's/#/%23/g')
7474
- CI_BUILD_ID="${CODEBUILD_BUILD_ID}"

docs/TESTPLAN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The test suite has the following categories of tests:
3333
- Any type of test related to the format/quality/content of the code
3434
- Does not have context of the `vscode` api
3535
- Integration Tests: **slow** tests
36-
- Live in `src/integrationTest/`
36+
- Live in `src/testInteg/`
3737
- Use a full instance of VSCode with an activated instance of the extension.
3838
- Global state is shared across tests, thus there is a risk that later tests are polluted by earlier tests.
3939
- Trigger VSCode commands and UI elements to test codepaths as from an actual user session, instead of invoking functions directly.
@@ -48,7 +48,7 @@ The test suite has the following categories of tests:
4848
- `src/test/globalSetup.test.ts` :
4949
- defines global setup functions run before and after each test
5050
- defines global utility functions such as `getTestLogger()`
51-
- `src/integrationTest/` : integration tests
51+
- `src/testInteg/` : integration tests
5252
- `src/test/testRunner.ts` : used by _both_ the unit tests and integration
5353
tests to discover tests, setup the test framework, and run tests.
5454
- `src/testFixtures/` : test data (sample projects, SAM templates, ...)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3443,7 +3443,7 @@
34433443
"testCompile": "npm run buildScripts && tsc -p ./ && npm run instrument",
34443444
"test": "npm run testCompile && ts-node ./scripts/test/test.ts && npm run report",
34453445
"testE2E": "npm run testCompile && ts-node ./scripts/test/testE2E.ts && npm run report",
3446-
"integrationTest": "npm run testCompile && ts-node ./scripts/test/integrationTest.ts && npm run report",
3446+
"testInteg": "npm run testCompile && ts-node ./scripts/test/testInteg.ts && npm run report",
34473447
"lint": "ts-node ./scripts/lint/testLint.ts",
34483448
"lintfix": "eslint -c .eslintrc.js --fix --ext .ts .",
34493449
"package": "ts-node ./scripts/build/package.ts",

scripts/test/integrationTest.ts renamed to scripts/test/testInteg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
import { resolve } from 'path'
77
import { integrationSuite, runToolkitTests } from './launchTestUtilities'
88
;(async () => {
9-
await runToolkitTests(integrationSuite, resolve('dist', 'src', 'integrationTest', 'index.js'))
9+
await runToolkitTests(integrationSuite, resolve('dist', 'src', 'testInteg', 'index.js'))
1010
})()

src/test/cdk/explorer/appNode.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import * as vscode from 'vscode'
1010
import * as app from '../../../cdk/explorer/cdkProject'
1111
import * as appNode from '../../../cdk/explorer/nodes/appNode'
1212
import { ConstructNode } from '../../../cdk/explorer/nodes/constructNode'
13-
import { getTestWorkspaceFolder } from '../../../integrationTest/integrationTestsUtilities'
13+
import { getTestWorkspaceFolder } from '../../../testInteg/integrationTestsUtilities'
1414
import { getIcon } from '../../../shared/icons'
1515
import * as treeUtils from '../treeTestUtils'
1616
import { getLabel } from '../../../shared/treeview/utils'

src/test/codewhisperer/commands/startSecurityScan.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import * as startSecurityScan from '../../../codewhisperer/commands/startSecurit
1212
import { SecurityPanelViewProvider } from '../../../codewhisperer/views/securityPanelViewProvider'
1313
import { FakeExtensionContext } from '../../fakeExtensionContext'
1414
import * as diagnosticsProvider from '../../../codewhisperer/service/diagnosticsProvider'
15-
import { getTestWorkspaceFolder } from '../../../integrationTest/integrationTestsUtilities'
15+
import { getTestWorkspaceFolder } from '../../../testInteg/integrationTestsUtilities'
1616
import { join } from 'path'
1717
import { closeAllEditors } from '../../testUtil'
1818
import { stub } from '../../utilities/stubber'

src/test/codewhisperer/util/dependencyGraph/javaDependencyGraph.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as vscode from 'vscode'
88
import * as sinon from 'sinon'
99
import * as fs from 'fs'
1010
import { JavaDependencyGraph } from '../../../../codewhisperer/util/dependencyGraph/javaDependencyGraph'
11-
import { getTestWorkspaceFolder } from '../../../../integrationTest/integrationTestsUtilities'
11+
import { getTestWorkspaceFolder } from '../../../../testInteg/integrationTestsUtilities'
1212
import { join } from 'path'
1313
import * as CodeWhispererConstants from '../../../../codewhisperer/models/constants'
1414

0 commit comments

Comments
 (0)