-
Notifications
You must be signed in to change notification settings - Fork 137
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
Conversation
src/runners/baseRunner/BaseRunner.ts
Outdated
@@ -180,6 +182,25 @@ export abstract class BaseRunner implements ITestRunner { | |||
return commandParams; | |||
} | |||
|
|||
protected getJavaEncoding(): string { |
There was a problem hiding this comment.
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
src/runners/ITestRunner.ts
Outdated
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>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=> tearDown
src/runners/baseRunner/BaseRunner.ts
Outdated
vmArgs: this.getVmArgs(config), | ||
encoding: getJavaEncoding(Uri.parse(tests[0].location.uri), config), | ||
env, | ||
noDebug: !isDebug ? true : false, |
There was a problem hiding this comment.
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.
5eec1c3
to
ff47d1d
Compare
No description provided.