GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — vscode-react-native/gulp_scripts/tester.js at master · microsoft/vscode-react-native

Expand file tree

/

tester.js

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
73 lines (61 loc) · 2.1 KB
/

tester.js

Copy path

File metadata and controls

73 lines (61 loc) · 2.1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
const gulp = require("gulp");
const log = require("fancy-log");
const minimist = require("minimist");
const path = require("path");
const vscodeTest = require("@vscode/test-electron");
const getBuilder = require("./builder");
const getFormatter = require("./formatter");
const vscodeVersionForTests = "stable";
const knownOptions = {
string: "env",
default: { env: "production" },
};
const options = minimist(process.argv.slice(2), knownOptions);
async function test(inspectCodeCoverage = false) {
// Check if arguments were passed
// if (options.pattern) {
// log(`\nTesting cases that match pattern: ${options.pattern}`);
// } else {
// log(`\nTesting cases that don't match pattern: extensionContext|localizationContext`);
// }
if (options != null) {
log(`\nArgument passed.`);
} else {
log(`\nArgument not passed.`);
}
try {
// The folder containing the Extension Manifest package.json
// Passed to `--extensionDevelopmentPath`
const extensionDevelopmentPath = __dirname;
// The path to the extension test runner script
// Passed to --extensionTestsPath
const extensionTestsPath = path.resolve(__dirname, "test", "index");
console.log(extensionTestsPath);
// Download VS Code, unzip it and run the integration test
const testOptions = {
extensionDevelopmentPath,
extensionTestsPath,
version: vscodeVersionForTests,
};
// Activate inspection of code coverage with unit tests
if (inspectCodeCoverage) {
testOptions.extensionTestsEnv = {
COVERAGE: "true",
};
}
await vscodeTest.runTests(testOptions);
} catch (err) {
console.error(err);
console.error("Failed to run tests");
process.exit(1);
}
}
const testTask = gulp.series(getBuilder.buildTask, getFormatter.lint, test);
const testCoverage = gulp.series(gulp.series(getBuilder.buildDev), async function () {
await test(true);
});
module.exports = {
test,
testTask,
testCoverage,
};
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.