Skip to content

npm test and test-container should use the same spec files #3686

@muxator

Description

@muxator

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions