Skip to content

Commit 75b45a0

Browse files
authored
Merge pull request #674 from fortran-lang/test/ui
test: add UI tests
2 parents 16001d7 + 32be366 commit 75b45a0

31 files changed

+3700
-157
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.js
2+
test-resources

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ venv/
1616
*.egg-info/
1717
*.eggs/
1818
*.pyc
19+
20+
# UI tests
21+
test-resources/

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# .prettierignore
22

3+
test-resources
34
node_modules
45
.vscode-test
56
coverage

.vscode/launch.json

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,24 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
6+
"inputs": [
7+
{
8+
"id": "test",
9+
"type": "pickString",
10+
"description": "Pick the type of test for this session",
11+
"default": "unitTest/",
12+
"options": [
13+
{
14+
"label": "unitTest",
15+
"value": "unitTest"
16+
},
17+
{
18+
"label": "integration",
19+
"value": "integration"
20+
}
21+
]
22+
}
23+
],
624
"configurations": [
725
{
826
"name": "Launch Extension",
@@ -21,10 +39,25 @@
2139
"${workspaceFolder}/test/fortran",
2240
"--disable-extension=fortran-lang.linter-gfortran",
2341
"--extensionDevelopmentPath=${workspaceFolder}",
24-
"--extensionTestsPath=${workspaceFolder}/out/test"
42+
"--extensionTestsPath=${workspaceFolder}/out/test/${input:test}"
2543
],
2644
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
2745
"preLaunchTask": "npm: pretest"
46+
},
47+
{
48+
"name": "Debug UI Tests",
49+
"type": "node",
50+
"request": "launch",
51+
"program": "${workspaceFolder}/node_modules/.bin/extest",
52+
"args": [
53+
"setup-and-run",
54+
"${workspaceFolder}/out/test/ui/*.js",
55+
"--mocha_config",
56+
"${workspaceFolder}/test/ui/.mocharc.js"
57+
],
58+
"console": "integratedTerminal",
59+
"internalConsoleOptions": "neverOpen",
60+
"preLaunchTask": "npm: pretest"
2861
}
2962
]
3063
}

.vscodeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ vsc-extension-quickstart.md
1919
CONTRIBUTING.md
2020
coverconfig.json
2121
assets/{videos,tools,svg,README.md}
22+
test-resources/

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Added
1111

12+
- Added User Interface tests for program installation
13+
- Added option to disable Release Notes from being displayed
14+
([#675](https://github.com/fortran-lang/vscode-fortran-support/issues/675))
1215
- Added support for schema validation of `fpm.toml` files.
1316
- Added local path resolution for `fortls`, `findent` and `fprettify` executables
1417
([#667](https://github.com/fortran-lang/vscode-fortran-support/issues/667))

0 commit comments

Comments
 (0)