Skip to content

Conversation

@sonic16x
Copy link
Contributor

@sonic16x sonic16x commented Nov 27, 2025

Example with set tag, you can use second argument with tag: string | string[] or in process of test running, but this test can not be filtered with cli
await browser.addTag("some_tag");

describe("test tags", { tag: ["common"] }, () => {
    describe("test tags", { tag: ["main"] }, () => {
        it("Feature A", { tag: ["desktop", "uniq"] }, async ({browser}) => {
            await browser.addTag("ololo2");
        })
        it("Feature B", { tag: ["desktop", "smoke", "slow"] }, async ({browser}) => {
            // test...
        })
        it("Feature C", { tag: "old" }, async ({browser}) => {
            // test...
        })
        it("Another test", { tag: ["smoke"] }, async ({browser}) => {
            // test...
        })
    })
})

For filter from cli use tag parameter, you can use logic operators & | !
npx testplane --tag "smoke|slow"
npx testplane --tag "smoke&slow"

Docs gemini-testing/testplane-docs#107

@sonic16x sonic16x force-pushed the users/rocketraccoon/TESTPLANE-436.tags branch 2 times, most recently from 82a06d4 to 8d92c95 Compare November 27, 2025 05:58
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 27, 2025

Open in StackBlitz

npm i https://pkg.pr.new/gemini-testing/testplane@1175

commit: f31b739

@sonic16x sonic16x force-pushed the users/rocketraccoon/TESTPLANE-436.tags branch 2 times, most recently from 19f609e to ee5f207 Compare November 27, 2025 08:29
@sonic16x sonic16x force-pushed the users/rocketraccoon/TESTPLANE-436.tags branch 2 times, most recently from a765eac to 09d345c Compare December 1, 2025 09:28
@sonic16x sonic16x force-pushed the users/rocketraccoon/TESTPLANE-436.tags branch from 09d345c to 3e2b66b Compare December 1, 2025 09:55
@sonic16x sonic16x force-pushed the users/rocketraccoon/TESTPLANE-436.tags branch 3 times, most recently from 0497f7d to aca534f Compare December 3, 2025 12:52
@sonic16x sonic16x force-pushed the users/rocketraccoon/TESTPLANE-436.tags branch from aca534f to f31b739 Compare December 3, 2025 13:12
@sonic16x sonic16x merged commit 63f150e into master Dec 3, 2025
6 of 9 checks passed
@sonic16x sonic16x deleted the users/rocketraccoon/TESTPLANE-436.tags branch December 3, 2025 13:50
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.

3 participants