File: README.txt

package info (click to toggle)
cpputest 4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,688 kB
  • sloc: cpp: 31,212; sh: 4,978; ansic: 1,360; makefile: 775; ruby: 676; xml: 8; sed: 1
file content (25 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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