f407ve_packetusart_c/platforms/platform-test-f4-ll/cpputest/scripts/convertToUnity
Attila BODY 95af4ce0d8 git subrepo clone git@github.com:compihu/platform-test-f4-ll.git platforms/platform-test-f4-ll
subrepo:
  subdir:   "platforms/platform-test-f4-ll"
  merged:   "bc41134"
upstream:
  origin:   "git@github.com:compihu/platform-test-f4-ll.git"
  branch:   "master"
  commit:   "bc41134"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "87ee373"
2021-02-24 21:46:35 +01:00
..
cpp_u_test_to_unity.rb git subrepo clone git@github.com:compihu/platform-test-f4-ll.git platforms/platform-test-f4-ll 2021-02-24 21:46:35 +01:00
cpp_u_test_to_unity_utils.rb git subrepo clone git@github.com:compihu/platform-test-f4-ll.git platforms/platform-test-f4-ll 2021-02-24 21:46:35 +01:00
cpp_u_test_to_unity_utils_tests.rb git subrepo clone git@github.com:compihu/platform-test-f4-ll.git platforms/platform-test-f4-ll 2021-02-24 21:46:35 +01:00
create_group_runner.rb git subrepo clone git@github.com:compihu/platform-test-f4-ll.git platforms/platform-test-f4-ll 2021-02-24 21:46:35 +01:00
create_unity_test_runner.rb git subrepo clone git@github.com:compihu/platform-test-f4-ll.git platforms/platform-test-f4-ll 2021-02-24 21:46:35 +01:00
README.txt git subrepo clone git@github.com:compihu/platform-test-f4-ll.git platforms/platform-test-f4-ll 2021-02-24 21:46:35 +01:00

Convert CppUTest files to Unity test files
------------------------------------------

To convert a CppUTest test file to Unity, enter a command like this

CONVERT=$CPPUTEST_HOME/scripts/convertToUnity/cpp_u_test_to_unity.rb

ruby $CONVERT tests/some/dir/or/dirs/MyThink.cpp

This will create two files like this

    unity/some/dir/or/dirs/MyThing.c
    unity/some/dir/or/dirs/MyThing_runner.c
    
Things that need to be done manually once to your
unity test environment:

    Create directory 'unity/some/dir/or/dirs'
    Adjust unity makefile to refer to the needed files
    Unity main needs to call RUN_TEST_GROUP(MyThing)

Things not supported in converted test cases:
    CppUMock
    Hand built mocks that use CppUTest macros.  
    Formatting conventions can cause the script to fail