| 221 | } |
| 222 | |
| 223 | void TJUnitProcessor::OnFinish(const TFinish* descr) { |
| 224 | if (!GetForkTests() || GetIsForked()) { |
| 225 | auto* testCase = GetTestCase(descr->test); |
| 226 | testCase->Success = descr->Success; |
| 227 | if (StartCurrentTestTime != TInstant::Zero()) { |
| 228 | testCase->DurationSecods = (TInstant::Now() - StartCurrentTestTime).SecondsFloat(); |
| 229 | } |
| 230 | StartCurrentTestTime = TInstant::Zero(); |
| 231 | TransferFromCapturer(StdOutCapturer, testCase->StdOut, Cout); |
| 232 | TransferFromCapturer(StdErrCapturer, testCase->StdErr, Cerr); |
| 233 | } else { |
| 234 | MergeSubprocessReport(); |
| 235 | } |
| 236 | UncaptureSignal(); |
| 237 | } |
| 238 | |
| 239 | TString TJUnitProcessor::BuildFileName(size_t index, const TStringBuf extension) const { |
| 240 | TStringBuilder result; |
no test coverage detected