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

InProc datacollector flow changes for passing test sources #1969

Merged
merged 12 commits into from
Apr 3, 2019

Conversation

vagisha-nidhi
Copy link
Contributor

@vagisha-nidhi vagisha-nidhi commented Mar 25, 2019

Description

1. Adding inproc data collector for coverlet in argument processor.
Adding <InProcDataCollector friendlyName=”XPlat Code Coverage” codebase=”{codebase}” assemblyQualifiedName=”{assemblyQualifiedName}”/> in collect argument processor for CLI scenarios in case of XPlat code coverage.

2. Passing test sources to inproc data collector sessionstartevent
This PR includes flow changes to pass test sources in TestSessionStartArgs

3. Using default code base to initialize inproc data collector in case code base given is relative.
Using default code base to initialize inproc data collector in case codebase given is relative.
Inproc data collector requires codebase in runsettings to work. If codebase is not present, then we skip the data collector and log an error in EqtTrace presently. We will now use a default codebase passed.

@abhishkk
Copy link
Contributor

Description

Inproc data collector requires codebase in runsettings to work. If codebase is not present, then we skip the data collector and log an error in EqtTrace.
This PR includes flow changes to pass test sources, from which Test assembly path will be determined incase inproc datacollector runsettings does not contain full codebase path.

We also add <InProcDataCollector friendlyName=”XPlat Code Coverage” codebase=”coverletinprocdatacollector.dll” assemblyQualifiedName=”{assemblyQualifiedName}”/> in collect argument processor for CLI scenarios in case of XPlat code coverage.

Write separate points about the different works which are happening in this pr as there is no separate RFC for this:

  1. Adding inproc data collector for coverlet in argument processor.
  2. Passing test sources to inproc data collector sessionstartevent
  3. Using default code base to initialize inproc data collector in case code base given is relative.

@abhishkk
Copy link
Contributor

abhishkk commented Apr 2, 2019

Test run selected scenario for blame and inproc data collector

Copy link
Contributor

@abhishkk abhishkk left a comment

Choose a reason for hiding this comment

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

Approved with suggestions

@@ -98,7 +104,9 @@ protected virtual IInProcDataCollector CreateDataCollector(DataCollectorSettings
/// </param>
private void TriggerTestSessionStart(object sender, SessionStartEventArgs e)
{
TestSessionStartArgs testSessionStartArgs = new TestSessionStartArgs();
var properties = new Dictionary<string, object>();
properties.Add(Constants.TestSourcesPropertyName, e.GetPropertyValue<IEnumerable<string>>(Constants.TestSourcesPropertyName));
Copy link
Contributor

Choose a reason for hiding this comment

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

Move it to separate private method GetSessionStartProperties


/// TODO : Finalize Name
/// <summary>
/// Coverlet data collector assembly qualified name
Copy link
Contributor

Choose a reason for hiding this comment

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

Coverlet in proc data collector assembly qualified name.
Change in CoverletDataCollectorCodebase as well.

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