Do server/client tests run simultaneously with "meteor test --full-app"?

Hi, when I run

meteor test --full-app --driver-package practicalmeteor:mocha

then according to full-app-test documentation test files will be loaded and Meteor app will start.

I suppose that client and server tests will be run simultaneously. I mean Meteor test will not wait for client tests to finish and then run server tests or vice versa.

What will happen if I have several client/server full-app test and they all are using users collection. Is there some possibility of race condition?

Yes on all counts. Big problem if you need to do database setup before each of your tests. I’ve created an issue at the practicalmeteor:mocha GitHub repo for it. I also created a repo with a meteor app that demonstrates client and server tests running at the same time.

1 Like

Thank you for your reply. Isn’t there any fix available that you know about, please?