13d9e86 (part of #3677) introduced a useful feature (running a simplified version of backend tests in CI via Docker), but in doing so copied & modified & pasted two files. See #3677 (comment):
- backend/loadSettings.js container/loadSettings.js
- backend/specs/api/pad.js container/specs/api/pad.js
This was very useful to get the feature out, but now it would be better to unify the spec files.
A possible idea could be pass some parameters at runtime, so that npm test and npm test-container end up calling the same script with just different command line parameters.
Any idea on how to achieve this?
13d9e86 (part of #3677) introduced a useful feature (running a simplified version of backend tests in CI via Docker), but in doing so copied & modified & pasted two files. See #3677 (comment):
This was very useful to get the feature out, but now it would be better to unify the spec files.
A possible idea could be pass some parameters at runtime, so that
npm testandnpm test-containerend up calling the same script with just different command line parameters.Any idea on how to achieve this?