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

feat: add testplane gui --local support #625

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

KuznetsovRoman
Copy link
Member

No description provided.

@KuznetsovRoman KuznetsovRoman force-pushed the TESTPLANE-385.testplane_local branch from 48ee8fc to 03b7a1e Compare December 24, 2024 12:34
@KuznetsovRoman KuznetsovRoman force-pushed the TESTPLANE-385.testplane_local branch from 03b7a1e to 0111ce0 Compare December 24, 2024 12:35
@@ -122,11 +122,11 @@ export class TestplaneToolAdapter implements ToolAdapter {
}

async run(testCollectionAdapter: TestplaneTestCollectionAdapter, tests: TestSpec[] = [], cliTool: CommanderStatic): Promise<boolean> {
const {grep, set: sets, browser: browsers, devtools = false} = cliTool;
const {grep, set: sets, browser: browsers, devtools = false, local = false} = cliTool;
Copy link
Member Author

Choose a reason for hiding this comment

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

--local comes from CLI:

npx testplane gui --local

const replMode = getReplModeOption(cliTool);
const runner = createTestRunner(testCollectionAdapter.original, tests);

return runner.run((collection) => this._tool.run(collection, {grep, sets, browsers, devtools, replMode}));
return runner.run((collection) => this._tool.run(collection, {grep, sets, browsers, devtools, replMode, local}));
Copy link
Member Author

Choose a reason for hiding this comment

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

Testplane itself already supports local in run method

@KuznetsovRoman KuznetsovRoman merged commit a9be15a into master Dec 24, 2024
4 checks passed
@KuznetsovRoman KuznetsovRoman deleted the TESTPLANE-385.testplane_local branch December 24, 2024 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants