Updated examples

*  Updated example 2 readme
 *  Broke up huge line in example 2 makefile
This commit is contained in:
Warwick Stone
2013-07-17 23:27:25 +10:00
parent efc1df828f
commit d27699d97a
2 changed files with 11 additions and 2 deletions

View File

@ -13,7 +13,16 @@ else
TARGET_EXTENSION=.out
endif
TARGET1 = $(TARGET_BASE1)$(TARGET_EXTENSION)
SRC_FILES1=$(UNITY_ROOT)/src/unity.c $(UNITY_ROOT)/extras/fixture/src/unity_fixture.c src/ProductionCode.c src/ProductionCode2.c test/TestProductionCode.c test/TestProductionCode2.c test/test_runners/TestProductionCode_Runner.c test/test_runners/TestProductionCode2_Runner.c test/test_runners/all_tests.c
SRC_FILES1=\
$(UNITY_ROOT)/src/unity.c \
$(UNITY_ROOT)/extras/fixture/src/unity_fixture.c \
src/ProductionCode.c \
src/ProductionCode2.c \
test/TestProductionCode.c \
test/TestProductionCode2.c \
test/test_runners/TestProductionCode_Runner.c \
test/test_runners/TestProductionCode2_Runner.c \
test/test_runners/all_tests.c
INC_DIRS=-Isrc -I$(UNITY_ROOT)/src -I$(UNITY_ROOT)/extras/fixture/src
SYMBOLS=

View File

@ -2,4 +2,4 @@ Example 2
=========
Same as the first example, but now using Unity's test fixture to group tests
together.
together. Using the test fixture also makes writing test runners much easier.