Open ir-os opened 8 years ago
Following instructions can be used to integrate Unity to IR-OS project after basis build system is created.
If we decide on to generate test runner functions automatically from module's test file, first tool that we need is a script language (Ruby is chosen by Unity's creators and already performed this operation). So let's get started with Ruby.
<name_of_test_file>
<name_of_tes_runner_file>
<name_of_test_file>
(must): your module's test file name that includes test functions <name_of_test_runner_file>
(optional): call the output test runner file or simply pass it than script will add _Runner post-fix to your test file name. e.g. <name_of_test_file>_Runner.c
So far so good. Here is a list that shows what the changes will be performed on MakeFile;
TEST_POST = _Runner TEST_RUNNERS = ($SOURCE_0)($TEST_POST) ($SOURCE_1)($TEST_POST)
ruby generate_test_runner.rb ($SOURCE_0).c ruby generate_test_runner.rb ($SOURCE_1).c
Thanks @ahmetalncak Great explanation. I will follow your instructions during Unity integration.
We need to implement an interface for Unity to integration our CI structure.
Basically :
Please use following Unity Documentation to implement above features : https://github.com/ThrowTheSwitch/Unity/archive/master.zip It also contains all required files and scripts, and also examples.