t.test Property

Type: Object

The t.test object stores information about the test (read-only).

Property Type Description
name String Test name
meta Object Test metadata

Example

fixture `Example Fixture`
    .page `http://example.com`
    .beforeEach( async t => {
            const testName = t.test.name; /* MyTest */
            const testMeta = t.test.meta; /* { 'key': 'value' } */
})

test
    ('MyTest', async t => { /* ... */ })
    .meta({ 'key': 'value' })
    .after( async t => {
            const testName = t.test.name; /* MyTest */
            const testMeta = t.test.meta; /* { 'key': 'value' } */
    });