GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cpputest/scripts/convertToUnity at master · cpputest/cpputest

Expand file tree

/

convertToUnity

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

convertToUnity

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.txt
README.txt
 
 
cpp_u_test_to_unity.rb
cpp_u_test_to_unity.rb
 
 
cpp_u_test_to_unity_utils.rb
cpp_u_test_to_unity_utils.rb
 
 
cpp_u_test_to_unity_utils_tests.rb
cpp_u_test_to_unity_utils_tests.rb
 
 
create_group_runner.rb
create_group_runner.rb
 
 
create_unity_test_runner.rb
create_unity_test_runner.rb
 
 

README.txt

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  
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.