parse-community / parse-server

Parse Server for Node.js / Express
https://parseplatform.org
Apache License 2.0
20.95k stars 4.78k forks source link

Implement Parallel Unit testing #9467

Open dblythy opened 18 hours ago

dblythy commented 18 hours ago

New Feature / Enhancement Checklist

Current Limitation

Our current testing approach is more or less e2e testing. A full server and database is built in memory.

This makes test comprehensive, but slow. For a simple test like asserting that cloud functions register, there's no reason why this needs to run across all the different environments.

Feature / Enhancement Description

Implement a seperate folder of unit tests. This could still utilise Jasmine, but the focus being on mocking all external dependencies to the test. This means that the unit tests can be ran in parallel, reducing our build times. Will also make it easier to debug - theoretically, one line that breaks tests should only break one unit test.

Example Use Case

Alternatives / Workarounds

3rd Party References

Would also suggest testing standards uplifts:

parse-github-assistant[bot] commented 18 hours ago

Thanks for opening this issue!