testomatio / reporter

Testomatio Reporter
122 stars 21 forks source link

Ability to pass any information from test automation script to Testomat.io report #114

Open poliarush opened 1 year ago

poliarush commented 1 year ago
DavertMik commented 1 year ago
// inside test
import { report } from '@testomatio/reporter';

test('my important test', async () => {
  report.property('severity', 'hot');

  // $`Given I create a new Item`;
  // $`Then I create a new Item`;

  // report.artifact('some image', 'image/png', 'data:image/png;base64,iVBORw0KGgoA

  // ...
});

---------------

// inside function

report.meta('field', 'value');
    global.meta.push({ field, value })

-----

// inside reporter

addTestRun:

send(

    meta: global.meta,
)

global.meta = []

--------
poliarush commented 1 year ago

come up with architecture where need to pass

  1. std out or std err
  2. steps
  3. attachments
  4. key-value pair
  5. plain text
olexandr13 commented 1 year ago
poliarush commented 1 year ago

@olexandr13 english, please

olexandr13 commented 1 year ago

blocked by artifacts storage implementation

olexandr13 commented 1 year ago

additional prop in test data

olexandr13 commented 1 year ago
olexandr13 commented 10 months ago

implemented artifact storage, log, step, meta (key:value) in 1.1.0-beta-2

olexandr13 commented 10 months ago

@DavertMik

Image

Image