Flatland issueshttps://gitlab.aicrowd.com/flatland/flatland/-/issues2019-10-21T20:20:19Zhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/228Test for sparse rail generator2019-10-21T20:20:19ZErik NygrenTest for sparse rail generatorEnhance the tests for the sparse rail generator to test it at limit parameters.
For example the grid_mode=True test should push the number of cities in the env to the limitEnhance the tests for the sparse rail generator to test it at limit parameters.
For example the grid_mode=True test should push the number of cities in the env to the limitErik NygrenErik Nygren2019-10-23https://gitlab.aicrowd.com/flatland/flatland/-/issues/257Test for parameter sets of `regenerate_rail` and `regenerate_schedule`2019-10-24T15:38:54ZErik NygrenTest for parameter sets of `regenerate_rail` and `regenerate_schedule`### Story
As a project member, I want to test the behavior of the parameters `regenerate_rail` and `regenerate_schedule` so that we are sure they behave as accepted.
If the rail infrastructure is regenerated we also need to regenerate t...### Story
As a project member, I want to test the behavior of the parameters `regenerate_rail` and `regenerate_schedule` so that we are sure they behave as accepted.
If the rail infrastructure is regenerated we also need to regenerate the schedule as it can not work on any infrastructure.
If the rail infrastructure stays the same, we can still regenerate the schedule and should see different tasks.
Thus the tests should test for
`regenerate_rail regenerate_schedule`
`True True` ==> Both regenerated
`True False` ==> Both regenerated
`False True` ==> Only schedule regenerated
`False False` ==> All stays the same
### Acceptance Criteria
- Test written and green for all above test caseshttps://gitlab.aicrowd.com/flatland/flatland/-/issues/250Tests for agent static2019-10-30T20:27:52ZErik NygrenTests for agent staticAdd tests that show that agent static is populated always.
Currently we get the following error when `env.reset(False,False,False)` is called:
```
Error : 'NoneType' object has no attribute '__dict__'
Traceback (most recent call last)...Add tests that show that agent static is populated always.
Currently we get the following error when `env.reset(False,False,False)` is called:
```
Error : 'NoneType' object has no attribute '__dict__'
Traceback (most recent call last):
File "/Users/mohanty/work/SBB/flatland/flatland/flatland/evaluators/service.py", line 621, in run
self.handle_env_create(command)
File "/Users/mohanty/work/SBB/flatland/flatland/flatland/evaluators/service.py", line 359, in handle_env_create
random_seed=RANDOM_SEED
File "/Users/mohanty/work/SBB/flatland/flatland/flatland/envs/rail_env.py", line 320, in reset
self.restart_agents()
File "/Users/mohanty/work/SBB/flatland/flatland/flatland/envs/rail_env.py", line 250, in restart_agents
self.agents = EnvAgent.list_from_static(self.agents_static)
File "/Users/mohanty/work/SBB/flatland/flatland/flatland/envs/agent_utils.py", line 124, in list_from_static
for handle, oEAS in zip(handles, lEnvAgentStatic)]
File "/Users/mohanty/work/SBB/flatland/flatland/flatland/envs/agent_utils.py", line 124, in <listcomp>
for handle, oEAS in zip(handles, lEnvAgentStatic)]
AttributeError: 'NoneType' object has no attribute '__dict__'
```
relates to #251
Christian BaumbergerChristian Baumbergerhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/197Tests for updated GlobalObs and TereeObs2019-10-22T19:33:50ZErik NygrenTests for updated GlobalObs and TereeObsUpdate/ make new test to check for correct behavior when agent stacks are presentUpdate/ make new test to check for correct behavior when agent stacks are presenthttps://gitlab.aicrowd.com/flatland/flatland/-/issues/163Test for Multi-Speed2019-09-20T10:39:40ZErik NygrenTest for Multi-SpeedWe need to write good tests to guarantee correct working of different speeds:
- Test different kind of speeds on straight track
- Check that travel times are consistent
- Check that this works well with stochastic events (see #167 )We need to write good tests to guarantee correct working of different speeds:
- Test different kind of speeds on straight track
- Check that travel times are consistent
- Check that this works well with stochastic events (see #167 )v2Christian EichenbergerChristian Eichenbergerhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/162Write and improve on stochasticity tests2019-09-05T15:33:26ZErik NygrenWrite and improve on stochasticity testsHere are some ideas to add to the stochasticity tests:
- Agents_stopping_in_middle_of_cells_and_resuming
- Agents stopping at start of cell and then staying stopped (Stop action chosen)
- Stopping rate (Already implemented)Here are some ideas to add to the stochasticity tests:
- Agents_stopping_in_middle_of_cells_and_resuming
- Agents stopping at start of cell and then staying stopped (Stop action chosen)
- Stopping rate (Already implemented)v2Christian EichenbergerChristian Eichenbergerhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/110Tests for rendering2019-10-22T19:10:51ZErik NygrenTests for renderingCome up with a clever way to write tests for issues. Share with the teamCome up with a clever way to write tests for issues. Share with the teamv3mohantymohantyhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/107updating test for generators2019-07-16T17:35:55ZErik Nygrenupdating test for generatorsAdd more tests to generator testing to be sure that it works as expected.Add more tests to generator testing to be sure that it works as expected.v1Erik NygrenErik Nygrenhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/102Tests for all generators2019-07-12T15:25:18ZErik NygrenTests for all generatorsWrite tests to check the behaviour of all generatorsWrite tests to check the behaviour of all generatorsv1Erik NygrenErik Nygrenhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/92Reward function test2019-07-18T06:46:18ZErik NygrenReward function testWrite a test that validated reward function:
- Reward is always `-time_penalty` even if:
- No action is chosen
- invalid action is chosen
- agents get stuck at each other
- Reward is + 1 for all agents if and only if all agents rea...Write a test that validated reward function:
- Reward is always `-time_penalty` even if:
- No action is chosen
- invalid action is chosen
- agents get stuck at each other
- Reward is + 1 for all agents if and only if all agents reach targetv1Christian EichenbergerChristian Eichenbergerhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/63Add assertions to notebooks for testing purposes.2019-10-22T19:33:59ZChristian EichenbergerAdd assertions to notebooks for testing purposes.hagrid67hagrid67https://gitlab.aicrowd.com/flatland/flatland/-/issues/62increase unit test coverage (at least 80%)2019-10-22T19:10:20ZChristian Eichenbergerincrease unit test coverage (at least 80%)v3Christian EichenbergerChristian Eichenberger