Changes are made to CLI to match latest naming conventions.
These changes include
-
swagg create
: replace placeholders inDockerfile
with their real values -
swagg test
: recusively parsetest/
and add tests to be run tomocha
-
swagg test
: use the same setup asnpm test
, except for the reporter. Full report is kept when in development stage, andmin
reporter is used on CI.NODE_ENV=test
NODE_TLS_REJECT_UNAUTHORIZED=0
-
--timeout 10000
for some large latency remote tests
Changes
-
.gitlab-ci.yml
usesnpm test
for testing.min
reporter is retained. - Latest
Dockerfile
template. - New default
credentials/
folder with dummy credentials. - Promise-ify server boot and export the promise for easy testing.
- Server script supports NODE_ENV=test for testing.
- Production environment rollbar error reporting added.
-
package.json
haschai
andmocha
as development dependencies. -
package.json
hasnpm test
script setup. -
test/
is now structured the same way asapi/
. -
test/
has dummy test showing how to use the promise-ified server. -
test/
has default naming convention ofxxxx-spec.js
.