Skip to content

Delete parameter for name test #1424

@cedriclemoine35-sudo

Description

@cedriclemoine35-sudo

In Allure 2,

I’m using CodeceptJS and I launch tests using a data loop:

Data(datas).Scenario(
'nametest',
async ({ I, current }) => { ... }
);

datas is retrieved from a JSON file.

I added parameters in Allure via a helper _before:

async _before(test: any) {
console.log("helper before");
const current = test.inject?.current;
if (!current) return;

// ─── Parameters ──────────────────────────────────────────
for (const [key, value] of Object.entries(current)) {
await this.allureReporter.parameter(key, String(value));
}
}

These parameters are correctly added at the test level – OK.

However, these parameters also appear in the left-hand side of the test list (the test tree), which makes the test labels less readable.

Is there a way to prevent these parameters from appearing in the left-hand test list?

If you want, I can also explain why Allure shows them on the left and how to keep them only in the test details without cluttering the test tree. This usually involves changing how CodeceptJS injects parameters or using a different Allure API call.

Do you want me to do that next?

Thanks

Cédric

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions