I have a number of E2E tests running via Chimp and a fair few unit tests via Mocha (outside of Meteor, stubbing Meteor imports with proxyquire). All is good.
However, I now want to add some integration tests. If I follow the Meteor Guide then I’m installing practicalmeteor:mocha
, having another test command and having to spin up another instance of Meteor. That means I’m running 3 instances for dev / integration and e2e tests.
I was wondering why I can’t just run my tests within a chimp server
block e.g.
server.execute(() => {
// Do some tests in the Meteor context
});
Is anyone doing this?