-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration tests for resource explorer refresh and bundle job re…
…source run (#1108) ## Changes * Add e2e integration test for refreshing a bundle when bundle file changes * Add e2e integration test for running a bundle job resource * Add a common prefix to all resources created by bundle tests to ease cleanup. ## Tests <!-- How is this tested? -->
- Loading branch information
1 parent
f00ebd2
commit 5177b8d
Showing
20 changed files
with
907 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
packages/databricks-vscode/scripts/list_integration_tests.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import {glob} from "glob"; | ||
import path from "path"; | ||
|
||
function toUnixPath(path: string) { | ||
if (process.platform === "win32") { | ||
return path.replace(/\\/g, "/"); | ||
} | ||
return path; | ||
} | ||
|
||
const integrationTests = glob | ||
.globSync( | ||
toUnixPath( | ||
path.join(process.cwd(), "src", "test", "e2e", "**", "*.e2e.ts") | ||
), | ||
{ | ||
nocase: process.platform === "win32", | ||
} | ||
) | ||
.map((testPath) => { | ||
return { | ||
path: toUnixPath(path.relative(process.cwd(), testPath)), | ||
baseName: path.basename(testPath, ".e2e.ts"), | ||
}; | ||
}); | ||
|
||
// eslint-disable-next-line no-console | ||
console.log(JSON.stringify(integrationTests)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.