Commit Graph

13 Commits

Author SHA1 Message Date
Gard Rimestad 388cdb755a Refactoring pg-virtualenv-test 2020-02-20 08:30:19 +01:00
Gard Rimestad 05af00db5f Create test database with pg_virtualenv and run tests against it with npm run pg-virtualenv-test 2020-02-20 08:30:19 +01:00
Gard Rimestad 5b95f0cfc2 Run tests with database in docker #64 2020-02-20 08:30:19 +01:00
Jari Bakken 642c06f6ba Begin work on running tests against the database:
* Add Travis postgresql setup.
* Replace "db mocks" with a before hook that creates the same data
  through the HTTP API.
* Reset DB and re-create all fixtures for each test. We'll need
  something  better here.
* CAVEAT: no concept of a dev vs test database. Running tests will
  clear data from the currently configured database.
2020-02-20 08:30:18 +01:00
ivaosthu 6bfde35de0 Fixed presentation and formatting of toggles and log-entries 2020-02-20 08:30:18 +01:00
andsandv be701f5bc3 Add shrinkwrap 2020-02-20 08:30:18 +01:00
ivaosthu fc42827641 Introduce jest as test-framework for gui code (react).
jest is somewhat documented here:
https://facebook.github.io/jest/

related to #61
2020-02-20 08:30:18 +01:00
Jari Bakken 412067c42f Use knex for DB access. Closes #46. 2020-02-20 08:30:16 +01:00
Gard Rimestad 91466c1ec8 Run tests on port 4243, no need to stop local server when running tests. 2020-02-20 08:30:16 +01:00
Jari Bakken 079ef631df Bump mocha timeout on Travis 2020-02-20 08:30:15 +01:00
Ivar Østhus ca78acd25e Modified configuration to make it run on heroku.
Please note that scripts and webpack is moved from
devDependences to dependencies. This is due to heroku
running the build process in production mode.
2020-02-20 08:30:14 +01:00
andsandv 3b26930773 Add pre-commit hook #26 2020-02-20 08:30:14 +01:00
Jari Bakken f06a4a8a51 Move unleash-server to top level. 2020-02-20 08:30:13 +01:00