Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric Halbronn committed May 20, 2024
1 parent 68952ed commit 2dd6e21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/test-harness/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ function delay(ms: number) {
// FIXME: this is neovim specific atm so in the future we can support other apps here
// with an environment variable
export async function run(plugin: NvimPlugin): Promise<void> {
console.error(
"CED: run() (error to simulate always logging even if logging level is set to error)",
);
console.log("CED: run()");
// await delay(10000);
// console.log("CED: run() after sleep");
Expand All @@ -39,6 +42,7 @@ export async function run(plugin: NvimPlugin): Promise<void> {
return;
}
console.log("CED: runAllTests succeeded (1)");
// console.error("CED: random error message to make sure stuff is logged");
// XXX: kill neovim with 0 code ":q!" command?

// XXX: launchNeovimAndRunTests.ts will catch that error code
Expand Down
3 changes: 3 additions & 0 deletions packages/test-harness/src/launchNeovimAndRunTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ function delay(ms: number) {
* `--extensionTestsPath`
*/
export async function launchNeovimAndRunTests(extensionTestsPath: string) {
console.error(
"CED: launchNeovimAndRunTests() (error to simulate always logging even if logging level is set to error)",
);
let code = 1; // failure
try {
// The folder containing the Extension Manifest package.json
Expand Down

0 comments on commit 2dd6e21

Please sign in to comment.