Skip to content

added since on line level changes#3086

Open
shivambagadia23 wants to merge 2 commits intostryker-mutator:masterfrom
shivambagadia23:feat/add-since-on-line-level
Open

added since on line level changes#3086
shivambagadia23 wants to merge 2 commits intostryker-mutator:masterfrom
shivambagadia23:feat/add-since-on-line-level

Conversation

@shivambagadia23
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Member

@rouke-broersma rouke-broersma left a comment

Choose a reason for hiding this comment

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

Please revert the files to file scope namespace

@rouke-broersma
Copy link
Copy Markdown
Member

/azp run

// A git repository has been detected, calculate the diff to filter
var repository = _gitInfoProvider.Repository;
var commit = _gitInfoProvider.DetermineCommit();
public TestSet Tests { get; }
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why did we move these inside class?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@inishantmishra We did not change anything there it was like that only

if (mutant.ResultStatus != MutantStatus.NoCoverage)
{
mutant.ResultStatus = MutantStatus.Pending;
mutant.ResultStatusReason = "Mutant changed compared to target commit";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The status reason is not correct, the mutant has not been changed but a covering test has been changed

Comment on lines +78 to +82
if (mutant.ResultStatus != MutantStatus.NoCoverage)
{
mutant.ResultStatus = MutantStatus.Pending;
mutant.ResultStatusReason = "Mutant changed compared to target commit";
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why do you not use SetMutantStatusForFileChanged?

Comment on lines +109 to +112
if (mutant.ResultStatus != MutantStatus.NoCoverage)
{
mutant.ResultStatus = MutantStatus.Pending;
mutant.ResultStatusReason = "Mutant changed compared to target commit";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why do you not use ResetMutantStatusForChangedTests?

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.

4 participants