27 Commits
Author SHA1 Message Date
Ben West 7fba436338 allow tests to runs fast. 2026-01-19 13:15:07 -08:00
Ben West 293153d68d makefile can create a default test env file 2026-01-19 13:14:46 -08:00
Lennart GoedhartandGitHub 411463e595 Replace Travis build with a GitHub Action (#6690)
* Create Docker release workflow for GA
* Remove Travis workflow
* Remove dependency on Makefile
* Update default environment to Node 14
* Use git SHA instead of version for `dev` images
2021-01-01 21:40:51 +11:00
Sulka HaroandGitHub e10d4838a8 Fix tests failing in dev (#5127)
* * Fix reporting test to match the new output
* Fix number formatter to return the expected 0 when data is NaN
* Remove excessive logging during test runs from cob plugin

* Run all tests in one go

* Fixes D3 invocations for tests. Note this also removes transition timers (most of which seemed to be timed so fast they actually had no effect as the timer was faster than what it takes to draw a frame in Nightscout)

* Run tests independently

* Try not running tap-set-exit

* Remove tap-set-exit
2019-10-22 00:10:06 +03:00
Aria StewartandSulka Haro bdd3473ec9 Use tap-set-exit to make failing tests actually fail CI (#5109) 2019-10-21 09:03:26 +03:00
Sulka HaroandGitHub 8e29dc713f Update Makefile
Regenerated the Codacy Token and gave the new token to Travis
2018-12-12 14:45:53 +02:00
Sulka Haro 8c79ad2d33 Temporarily disable code coverage reporting from Travis 2018-07-27 16:37:38 +03:00
Sulka HaroandGitHub cb33193e08 Server-side localization fixes, better speech api use (#3724)
* Adds API to plugin manager that calls plugins to visualize alarms

* Refactoring how the translation object is managed after discovering every server-side plugin had it's own instance of the translations and the language code wasn't propagated to any code that generated alarms

* Add more missing translations

* Some more localization fixes
Update Finnish to 100% localized
Change Mongo connection to not stop retrying connecting

* Better scaling for mmol
Fix bug in detecting new BG values

* Delta calculation was the wrong way round :D

* add missing dutch translations

* Have tests bail early & tell Mocha to exit at the end of the run

* Try if Travis likes running tests one by one better

* Enable blocking IO for Travis
2018-07-27 16:04:07 +03:00
PieterGit b825a04f04 stick to latest mongodb client 3.0.x (currently 3.0.11), to avoid warnings about useNewUrlParser DeprecationWarnings
Using mongodb 3.1 will generate `(node:29452) DeprecationWarning: current URL string parser is deprecated,
and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.`

Starting from next Nightscout release mongodb://localhost/test_db should not be used, and only use mongodb://localhost:27017/test_db so changing it in the Makefile already

More info:
- https://stackoverflow.com/questions/50448272/avoid-current-url-string-parser-is-deprecated-warning-by-setting-usenewurlpars
- https://mongodb.github.io/node-mongodb-native/driver-articles/mongoclient.html
2018-07-07 17:32:51 +02:00
PieterGit 2caa67d552 optimize travis tests. see if 5 sec per test is enough (in stead of 50 sec per test) 2017-09-14 19:37:28 +02:00
PieterGit ddce2b91cd decrease timeouts to detect regressions faster in future 2017-09-14 19:16:32 +02:00
Sulka Haro adfe57579e Increasing Travis timeouts ridiculously, we need to do something to this 2017-08-30 00:15:22 +03:00
Sulka Haro b10a119b21 Fixed Coverage running parameter order 2017-08-29 23:30:40 +03:00
Sulka Haro e31ac8f5cf Now it works 2017-08-29 23:29:07 +03:00
Sulka Haro caae86111b And add the longer timeout to Travis, too… 2017-08-29 23:18:00 +03:00
Sulka Haro 0b64d3f4ef Increasing test timeout significantly due to Travis fails 2017-08-29 23:09:52 +03:00
Oskar Pearson f9c208b54a docker: use nodejs 6.10.0
- Pull Node version from .nvmrc
- Migrate passwords out of .travis.yml
2017-03-19 21:54:06 +00:00
Oskar Pearson 736805ce6d Added DOCKER_USER and DOCKER_PASS for nightscout/cgm-remote-monitor 2017-02-11 02:21:29 +00:00
Oskar Pearson 65428aab7c Build docker images with Travis
- Add Docker hub secrets to Travis
- Push to Docker Hub
- Ignore .git directory and things like coverage logs, so as to minimise
  the container size

I placed the Docker hub login commands in the commands in the .travis.yml file,
rather than in the Makefile. This is because the Makefile would display the
Docker password to stdout, which would then become publically available in the
Travis logs.

I also run `git clean -fd .` and `git checkout -- .` to ensure that anything
written to the repo directory during tests isn't added to the docker container.
I do this in the Travis file rather than the Makefile, since running things with
`make` reverted my changes while experimenting, and I want to save others the
same issue.

To make this work on Travis, we need to set secrets for the DOCKER_USER and
DOCKER_PASS environment variable.
2017-02-11 01:43:09 +00:00
Jason Calabrese 013fa5ce89 remove waffle badges; stop pushing to codecov.io 2016-05-28 12:04:51 -07:00
Jason Calabrese 21c2679672 new key to try getting things going again 2015-06-30 20:07:05 -07:00
Jason Calabrese 264597ba83 send coverage to codacy 2015-06-30 19:37:18 -07:00
Jason Calabrese 4aeee25b92 try adding codecov.io 2015-06-13 19:23:03 -07:00
Jason Calabrese 2dcc8d4d78 removed settings; fixed profiles/profile mixups; fix current/id queries 2015-05-25 23:19:06 -07:00
Douglas Eichelberger ecdabe815d overhaul Makefile and .travis.yml
add tests for node v0.12
move coveralls to after_script (prevents coveralls from failing travis)
use project installs of mocha and istanbul exclusively

resolves #414
2015-02-16 08:45:47 -08:00
Douglas Eichelberger 034bcefc0f add coverage report to travis script
resolves #268
2015-01-22 19:23:34 -08:00
Ben West 174647a594 add some tests for the API 2014-07-19 20:28:53 -07:00