Add tests for fitness estimation and GitLab CI configuration
Add tests for the fitness estimation using pytest, which can be run locally, and is run by a GitLab CI configuration. With each commit and PR it should run the tests in pytest, and thus can be used to check !1 (merged) and !2 (merged).
Files added
- A
tests
folder, in which:- Some first tests for fitness estimation in
test_fitness.py
. - Also adds a dictionary of parameters in
parameters.py
, copied frommain.py
.
- Some first tests for fitness estimation in
- A
.gitlab-ci.yml
file with the GitLab CI configuration.
Current tests
- Test that fitness of layers is between 0 and 1 on each node
- Test that fitness is retrieved correctly for layers
- Test if the initial estimated fitness is between 0 and 1 or unknown, 5 steps, each step --> Currently fails, should pass after merging !1 (merged)
- Test if the fitness of an organisation is between 0 and 1
- Test if the weights of an organisation sum to 1
@inikolic have you used GitLab CI before on a TU Delft repo? I've used it in the past in open source, but it doesn't seem that the TU Delft Gitlab has runners available by default. Is it easy to just get a default Linux runner?