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

refactor: Consume from the eclipse junit runner #795

Merged
merged 7 commits into from
Sep 10, 2019
Merged

Conversation

jdneo
Copy link
Member

@jdneo jdneo commented Sep 5, 2019

No description provided.

@jdneo jdneo added this to the 0.19.1 milestone Sep 5, 2019
@@ -180,6 +182,25 @@ export abstract class BaseRunner implements ITestRunner {
return commandParams;
}

protected getJavaEncoding(): string {
Copy link
Member Author

Choose a reason for hiding this comment

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

These two methods are just changed modifier from private to protected and changed the location up

Eskibear
Eskibear previously approved these changes Sep 5, 2019
src/runners/junit4Runner/Junit4Runner.ts Outdated Show resolved Hide resolved
src/runners/junit4Runner/Junit4Runner.ts Outdated Show resolved Hide resolved
src/runners/junit4Runner/Junit4Runner.ts Outdated Show resolved Hide resolved
setup(tests: ITestItem[], isDebug: boolean, server: Server, config?: IExecutionConfig): Promise<void>;
run(): Promise<ITestResult[]>;
setup(tests: ITestItem[], isDebug: boolean, config?: IExecutionConfig, searchParam?: ISearchTestItemParams): Promise<DebugConfiguration>;
run(launchConfiguration: DebugConfiguration): Promise<ITestResult[]>;
cleanUp(isCancel: boolean): Promise<void>;
Copy link
Contributor

Choose a reason for hiding this comment

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

=> tearDown

vmArgs: this.getVmArgs(config),
encoding: getJavaEncoding(Uri.parse(tests[0].location.uri), config),
env,
noDebug: !isDebug ? true : false,
Copy link
Contributor

Choose a reason for hiding this comment

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

no need of ternary expression. Use !isDebug directly.

@jdneo jdneo merged commit 20b3d92 into master Sep 10, 2019
@jdneo jdneo deleted the cs/junit4-runner branch September 10, 2019 02:00
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.

3 participants