YarosMallorca / MissionPlanner-to-Litchi

Convert Mission Planner (ArduCopter) Waypoint Missions to Litchi CSV Format to execute on DJI Drones
42 stars 8 forks source link

Dev: Tests #16

Open JoeKae opened 1 year ago

JoeKae commented 1 year ago

We should start using automated tests like unit tests or similar tools.

YarosMallorca commented 1 year ago

How would this work? Should the tests generate a waypoints file, then convert it to a csv and test if everything is correct? Should it be ran on local or in the cloud with github actions? This would be great, however I'm not sure how to do tests in Python.

JoeKae commented 1 year ago

There are some different ways to do the testing. But it kind of boils down to the same in the end. Have a look how i have done it here: https://github.com/JoeKae/litchi_wp

See the Makefile target tests. The Tests are in the tests directory.