mercredi 30 octobre 2019

There's a way to export the result of the unit test in visual studio code?

I have this test in adonis.js - node.js:

test('realiza login com o usuário registrado', async ({ client }) => {
  const response = await client
    .post('login')
    .send({
      username: 'usuarioteste',
      password: 'usuarioteste'
    })
    .end()

    response.assertStatus(200)

})

When i run adonis test i receive:

  Usuario
superagent: Enable experimental feature http2
    ✓ make a register (411ms)
    ✓ login (132ms)

   PASSED 

  total       : 2
  passed      : 2
  time        : 903ms

There's a way to export this log to a external file?

Aucun commentaire:

Enregistrer un commentaire