srobo / j5

j5 - Framework for Robotics APIs
MIT License
9 stars 4 forks source link

Ensure tests for setters/actions check desired result is achieved #216

Open kierdavis opened 5 years ago

kierdavis commented 5 years ago

Many of our tests run some code but don't use any assertions to check the code behaved as expected. Essentially these tests are only checking that no exceptions are raised.

This is common among, but not limited to, tests for performing actions on an object or changing its state - we should be checking that the action had the desired effect.

Examples:

trickeydan commented 5 years ago

Relevant: #214