Skip to content

LeGroupeDeFer/infom114_LaboMDL

Repository files navigation

UNanimity

Build Status Codecov coverage GPLv3 license GitHub tag

Getting started

  1. Install docker and docker-compose
  2. create a .env file with a DATABASE_URL=mysql://testuser:testpassword@db/test_rocket
  3. docker-compose build
  4. docker-compose up [--build] [--detach]
  5. Go on http://localhost:8000

Execute seeder

cargo run --bin=seeder

Tests

  1. add a TEST_DATABASE_URL in your .env file
  2. execute the scripts/setup_test.sh (This will ensure that the database schema is up to date in your test database)
  3. cargo test -- --test-threads=1 (Since the database is truncated at the begining of each test, running the tests in parallel is impossible)

Documentation

Cargo natively propose a solution for the documentation.

You can use cargo doc --open to open the generated documentation.