docs icon indicating copy to clipboard operation
docs copied to clipboard

Adjust all tests of cloud-cap-samples to start test server inside describ

Open gregorwolf opened this issue 1 year ago • 1 comments

Hello CAP Documentation Team,

with #1068 the CAPire documentation on Testing with cds.test was adjusted in the section Running a CAP Server that the cds.test should be started inside a describe:

const cds = require('@sap/cds')
describe(()=>{
  const test = cds.test(__dirname+'/..')
})

Not all tests in https://github.com/capire/samples/tree/main/test follow this best practice. I think this needs to be adjusted. For cap-sflight I've filed https://github.com/SAP-samples/cap-sflight/issues/1177.

Best Regards Gregor

gregorwolf avatar Aug 27 '24 14:08 gregorwolf

Hi Gregor,

Thank you for reporting the issue, I'll check and update as necessary.

Best regards, Mahati

smahati avatar Sep 02 '24 10:09 smahati