Skip to main content

TestId

Derive Macro TestId 

Source
#[derive(TestId)]
{
    // Attributes available to this derive:
    #[test_id]
    #[icedwright_probe]
}
Expand description

Implements icedwright_probe::TestId for an enum.

Unit variants become their name in kebab case (NewItem is "new-item"). #[test_id("...")] sets the string; on a variant with fields it is a format string that names every field, as {0} for a tuple field or {name} for a named one. Literal text may hold only a-z, 0-9, ., _ and -, and two variants may not share a string.