Skip to content

feat(mtp): Expose spec tags as filterable IDE traits #224

@juvistr

Description

@juvistr

Summary

Expose spec tags as MTP trait properties for IDE filtering.

Motivation

  • IDE filtering: Filter by tag in Test Explorer
  • Leverages existing tags: `tag()` already exists in DSL
  • Better organization: Group specs by category

Acceptance Criteria

  • Tags exposed via `TestNodeTraitProperty`
  • Rider/VS can filter by trait
  • Multiple tags supported per spec
  • Inherited tags from parent contexts
  • Tests added
  • Documentation updated

Example

describe("UserService", () => {
    tags("unit", "fast");
    
    describe("CreateAsync", () => {
        tag("integration");  // Has: unit, fast, integration
        
        it("creates user", () => { });
    });
});

In IDE Test Explorer: Filter by "integration" shows only tagged specs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dxDeveloper experience improvementsenhancementNew feature or requestmtpMicrosoft.Testing.Platform integrationstaleNo recent activity

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions