Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rename from vscode-hermione to vscode-testplane #5

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: File an issue
url: https://github.com/gemini-testing/hermione/issues
about: We track issues in the gemini-testing/hermione repository
url: https://github.com/gemini-testing/testplane/issues
about: We track issues in the gemini-testing/testplane repository
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# vscode-hermione
# vscode-testplane

This extension supports [Hermione][hermione] features in VS Code environment. Available features:
This extension supports [Testplane][testplane] features in VS Code environment. Available features:

- [Install Hermione](#install-hermione)
- [Install Testplane](#install-testplane)
- [Using the REPL mode](#using-the-repl-mode)

## Install Hermione
## Install Testplane

If you are not using hermione yet or starting a new testing project, the "Install Hermione" action from the command panel will help you get started.
If you are not using testplane yet or starting a new testing project, the "Install Testplane" action from the command panel will help you get started.

## Using the REPL mode

Adds a keybinding (`cmd+shift+8` for mac and `ctrl+shift+8` for others) to run a dedicated section of code in the VSCode terminal. More info about [REPL mode][hermione-repl-mode]. You can overwrite this keybinding in [keyboard shortcuts][vscode-keyboard-shortcuts].
Adds a keybinding (`cmd+shift+8` for mac and `ctrl+shift+8` for others) to run a dedicated section of code in the VSCode terminal. More info about [REPL mode][testplane-repl-mode]. You can overwrite this keybinding in [keyboard shortcuts][vscode-keyboard-shortcuts].

[hermione]: https://github.com/gemini-testing/hermione
[hermione-repl-mode]: https://github.com/gemini-testing/hermione?tab=readme-ov-file#repl-mode
[testplane]: https://github.com/gemini-testing/testplane
[testplane-repl-mode]: https://github.com/gemini-testing/testplane/blob/master/docs/cli.md#repl-mode
[vscode-keyboard-shortcuts]: https://code.visualstudio.com/docs/getstarted/keybindings
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "vscode-hermione",
"displayName": "Hermione",
"description": "Integration Hermione with VS Code",
"version": "0.0.2",
"name": "vscode-testplane",
"displayName": "Testplane",
"description": "Integration Testplane with VS Code",
"version": "0.0.1",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

downgrade version in order to publish extension with 0.0.1

"publisher": "gemini-testing",
"engines": {
"vscode": "^1.73.0"
Expand All @@ -11,7 +11,7 @@
"Testing"
],
"activationEvents": [
"workspaceContains:node_modules/.bin/hermione",
"workspaceContains:node_modules/.bin/testplane",
"onCommand:hrm.install"
],
"main": "./out/extension.js",
Expand All @@ -20,7 +20,7 @@
{
"category": "Test",
"command": "hrm.install",
"title": "Install Hermione"
"title": "Install Testplane"
}
],
"keybindings": {
Expand All @@ -32,7 +32,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/gemini-testing/vscode-hermione.git"
"url": "git+https://github.com/gemini-testing/vscode-testplane.git"
},
"license": "MIT",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ export function activate(context: vscode.ExtensionContext): void {
const disposable = vscode.commands.registerCommand("hrm.install", async () => {
const [workspaceFolder] = vscode.workspace.workspaceFolders || [];
if (!workspaceFolder) {
await vscode.window.showErrorMessage("Open a folder in VS Code to initialize Hermione");
await vscode.window.showErrorMessage("Open a folder in VS Code to initialize Testplane");
return;
}

const terminal = vscode.window.createTerminal({
name: "Install Hermione",
name: "Install Testplane",
cwd: workspaceFolder.uri.fsPath,
env: process.env,
});

terminal.show();

terminal.sendText(`npm init hermione-app -- --yes`, true);
terminal.sendText(`npm init testplane@latest -- --yes`, true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--yes уже не нужно указывать

});

context.subscriptions.push(disposable);
Expand Down