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

Make gtest only instrument method in ngrinder context #335

Merged

Conversation

junoyoon
Copy link
Contributor

Fix for #334
This PR introduces ngrinder.context system property to determine the current context (junit or ngrinder)
Only when ngrinder.context property is given, gtest instruments the code so that the debugging will be enabled.

@junoyoon junoyoon requested a review from donggyu04 August 24, 2018 12:52
@@ -6,7 +6,7 @@
<version>0.0.1</version>

<properties>
<ngrinder.version>3.4</ngrinder.version>
<ngrinder.version>3.4.2-SNAPSHOT</ngrinder.version>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should be updated and the core should be released on maven repo when releasing 3.4.2

@@ -121,7 +121,7 @@ public File doValidate(File base, File script, Condition eventSynchronisation, b
ScriptLocation scriptLocation = new ScriptLocation(workingDirectory, script);
ProcessWorkerFactory workerFactory = new ProcessWorkerFactory(workerCommandLine, agentIdentity,
fanOutStreamSender, false, scriptLocation, properties);

Properties properties1 = System.getProperties();
Copy link
Contributor

Choose a reason for hiding this comment

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

It's looks like unused variable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right. I reverted the changes on this file.

@junoyoon junoyoon force-pushed the feature/make-gtest-instrument-code-only-in-ngrinder-context branch from 12d1338 to 876ba6c Compare August 24, 2018 13:27
@junoyoon junoyoon force-pushed the feature/make-gtest-instrument-code-only-in-ngrinder-context branch from 876ba6c to 497f937 Compare August 24, 2018 13:29
@donggyu04 donggyu04 merged commit bb15475 into develop Aug 24, 2018
@donggyu04
Copy link
Contributor

It works well in my local system.

@junoyoon junoyoon deleted the feature/make-gtest-instrument-code-only-in-ngrinder-context branch August 24, 2018 14:08
@junoyoon junoyoon added this to the 3.4.2 milestone Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants