Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D dukeswag
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Innovation Co-LabInnovation Co-Lab
  • dukeswag
  • Merge requests
  • !2

Change CLI to match latest naming conventions && Update project skeleton based on latest lessons learned

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Victor Wang requested to merge xw72/dukeswag:master into master Jun 03, 2016
  • Overview 1
  • Commits 2
  • Pipelines 0
  • Changes 8

Changes are made to CLI to match latest naming conventions.

These changes include

  • swagg create: replace placeholders in Dockerfile with their real values
  • swagg test: recusively parse test/ and add tests to be run to mocha
  • swagg test: use the same setup as npm test, except for the reporter. Full report is kept when in development stage, and min 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 uses npm 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 has chai and mocha as development dependencies.
  • package.json has npm test script setup.
  • test/ is now structured the same way as api/.
  • test/ has dummy test showing how to use the promise-ified server.
  • test/ has default naming convention of xxxx-spec.js.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master