Closed steamypotato closed 3 years ago
Is this expected behaviour?
Is this expected behaviour?
yup i've had this bug for a while, it happens when you cross compile in cmake, its just a visual bug it doesn't affect anything although I havent found a solution for it yet
Just tested again, this time on step 6, I do not have a file called ScienceTests.out in the science/tests directory
@steamypotato could you fix this because Im gonna make unit tests
you have conflicts but you're done
@steamypotato the tests fail, could you 1) make it so the tests dont fail, 2) make sure that if travis fails, github CI also fails (something is clearly wrong in github CI if only travis fails!)
tim orally approves
Assignee Section
Description
Unit testing for C++ code. This PR will include a basic example test directory in science just for testing purposes. Check the wiki (/wiki/CXX-----Unit-Testing) for a detailed explanation on how everything works.
Steps for Testing
mkdir build && cd build
(in robot/rover)cmake ..
(Make sure the installation of AUnit and UnixHostDuino are logged)make
(We are looking for the 'ScienceTests' target to be built)cd ../science/tests
make
./ScienceTests.out
(Check that tests run)make clean
closes #471
Reviewer Section Aside from local testing and the General Integration Test it is implied that static analysis should be included in the verification process.