Initial public release of Apophis — invariant-driven automated API testing
This commit is contained in:
@@ -36,7 +36,7 @@ test('APOPHIS_DEBUG=1 logs requests and responses', async () => {
|
||||
originalDebug(msg, _obj)
|
||||
}
|
||||
|
||||
const result = await fastify.apophis.contract({ depth: 'quick' })
|
||||
const result = await fastify.apophis.contract({ runs: 10 })
|
||||
assert.ok(result.tests.length > 0, 'should have tests')
|
||||
|
||||
// Should have logged at least one request and one response
|
||||
@@ -80,7 +80,7 @@ test('APOPHIS_DEBUG=0 does not log requests', async () => {
|
||||
originalDebug(msg, _obj)
|
||||
}
|
||||
|
||||
const result = await fastify.apophis.contract({ depth: 'quick' })
|
||||
const result = await fastify.apophis.contract({ runs: 10 })
|
||||
assert.ok(result.tests.length > 0, 'should have tests')
|
||||
|
||||
// Should not have any request/response logs
|
||||
|
||||
Reference in New Issue
Block a user