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
Added debug message section. #610
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -98,6 +98,11 @@ class MetricsCalculator | |||||||||||||||
*/ | ||||||||||||||||
private $totalMutantsCount = 0; | ||||||||||||||||
|
||||||||||||||||
/** | ||||||||||||||||
* @var string[] | ||||||||||||||||
*/ | ||||||||||||||||
private $debugMessage = []; | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure Since the writing to log files is done through subscribers (see
infection/src/Process/Listener/MutationTestingResultsLoggerSubscriber.php Lines 104 to 109 in 096d7b2
|
||||||||||||||||
|
||||||||||||||||
/** | ||||||||||||||||
* Build a metric calculator with a sub-set of mutators | ||||||||||||||||
* | ||||||||||||||||
|
@@ -274,4 +279,17 @@ public function getErrorProcesses(): array | |||||||||||||||
{ | ||||||||||||||||
return $this->errorProcesses; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
public function addDebugInfo(string $msg): void | ||||||||||||||||
{ | ||||||||||||||||
$this->debugMessage[] = $msg; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
/** | ||||||||||||||||
* @return string[] | ||||||||||||||||
*/ | ||||||||||||||||
public function getDebugInfo(): array | ||||||||||||||||
{ | ||||||||||||||||
return $this->debugMessage; | ||||||||||||||||
} | ||||||||||||||||
} |
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.
File
DebugFileLogger
is used for end-to-end tests only. It's not supposed to be used for developers.We have recently removed it from the documentation, but it hasn't been released yet.
I've added a comment to this class that it's for e2e tests only.