Scripta-Qumranica-Electronica / Scrollery-website

SQE website
MIT License
3 stars 2 forks source link

enable testing for server code #56

Closed sjones6 closed 6 years ago

sjones6 commented 6 years ago

@Bronson-Brown-deVost : related to testing ...

Steps:

If using VSCode, you can drop this config in your .vscode/launch.json:

    {
      "type": "node",
      "request": "launch",
      "name": "test:server",
      "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
      "cwd": "${workspaceFolder}",
      "args": [
        "./tests/server/**/*-test.js", "--timeout=120000", "--watch"
      ]
    }
coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.04%) to 82.519% when pulling 9add20d46be615fbf54d21d92b794f83c127c9f6 on server_tests into 5bbdfee474efaef3e544763a1a2bcc0771800068 on master.

sjones6 commented 6 years ago

@Bronson-Brown-deVost : I changed the coverage to fail if this drops below 82% because for some reason this caused a -.04% change in coverage (unclear since I wasn't changing JS source files). Nevertheless, I'll just keep bumping that up as we increase our coverage and then pin it at 85% once we get there.