Skip to content

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

{
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