mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-20 14:07:07 +08:00
Updated examples
* Updated example 2 readme * Broke up huge line in example 2 makefile
This commit is contained in:
@ -13,7 +13,16 @@ else
|
|||||||
TARGET_EXTENSION=.out
|
TARGET_EXTENSION=.out
|
||||||
endif
|
endif
|
||||||
TARGET1 = $(TARGET_BASE1)$(TARGET_EXTENSION)
|
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
|
INC_DIRS=-Isrc -I$(UNITY_ROOT)/src -I$(UNITY_ROOT)/extras/fixture/src
|
||||||
SYMBOLS=
|
SYMBOLS=
|
||||||
|
|
||||||
|
@ -2,4 +2,4 @@ Example 2
|
|||||||
=========
|
=========
|
||||||
|
|
||||||
Same as the first example, but now using Unity's test fixture to group tests
|
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.
|
Reference in New Issue
Block a user