It's highly reccomended you develop in a dockerized environment. Umong many advantages, this provides a static dev environment complete with all the necisary dependencies.
- Follow the instructions to download Docker and Docker-Compose on your machine.
- Build the image. This will take a while when building the first time, but is cached for future builds.
$ docker build .- Start the dev environment. This sets up the networking and startup scripts for development.
$ docker-compose up- Start a bash instance within the container. You can either specify the container by name, or use this script to grab the ID of the running container. Therefore, if you're also running other containers, make sure you execute the bash shell in the correct container.
$ docker exec -it $(docker ps --format "{{.ID}}") /bin/bashAll tests are currently invoked using the python unittest library. To run all tests, you can use the discover command and specify the coms/tests directory:
# Run ALL tests in container
$ python3 -m unittest discover /root/catkin_ws/src/coms/testsThe above command will run every test found in /root/catkin_ws/src/coms/tests.