testing: fix parametrized test results are hard to read (#245737)

* cli: make the build faster

codegen-units=1 lets the compiler optimize more aggressively, but it
makes things _much_ slower. The benefits of this has been evaporating
as the compiler has improved, and now that the CLI build is a bottleneck,
let's just remove it.

* testing: fix parametrized test results are hard to read
Fixes #233610
This commit is contained in:
Connor Peet
2025-04-04 15:43:22 -07:00
committed by GitHub
parent f316ec18af
commit 5ede8d97d0
@@ -49,6 +49,7 @@ import { TestingContextKeys } from '../../common/testingContextKeys.js';
import { cmpPriority } from '../../common/testingStates.js';
import { TestUriType, buildTestUri } from '../../common/testingUri.js';
import { IEditorService } from '../../../../services/editor/common/editorService.js';
import { TestId } from '../../common/testId.js';
interface ITreeElement {
@@ -186,6 +187,22 @@ class TestCaseElement implements ITreeElement {
public readonly taskIndex: number,
) {
this.id = `${results.id}/${test.item.extId}`;
const parentId = TestId.fromString(test.item.extId).parentId;
if (parentId) {
this.description = '';
for (const part of parentId.idsToRoot()) {
if (part.isRoot) { break; }
const test = results.getStateById(part.toString());
if (!test) { break; }
if (this.description.length) {
this.description += ' \u2039 ';
}
this.description += test.item.label;
}
}
this.context = {
$mid: MarshalledId.TestItemContext,
tests: [InternalTestItem.serialize(test)],