mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-26 03:17:59 +08:00
Merge pull request #122 from trianglee/get_tests_counts
Added ability to get number of ignored tests and total number of tests.
This commit is contained in:
@ -314,11 +314,21 @@ void UnityPointer_UndoAllSets(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int UnityFailureCount(void)
|
UNITY_COUNTER_TYPE UnityFailureCount(void)
|
||||||
{
|
{
|
||||||
return Unity.TestFailures;
|
return Unity.TestFailures;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UNITY_COUNTER_TYPE UnityIgnoreCount(void)
|
||||||
|
{
|
||||||
|
return Unity.TestIgnores;
|
||||||
|
}
|
||||||
|
|
||||||
|
UNITY_COUNTER_TYPE UnityTestsCount(void)
|
||||||
|
{
|
||||||
|
return Unity.NumberOfTests;
|
||||||
|
}
|
||||||
|
|
||||||
int UnityGetCommandLineOptions(int argc, const char* argv[])
|
int UnityGetCommandLineOptions(int argc, const char* argv[])
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -28,7 +28,9 @@ void UnityTestRunner(unityfunction * setup,
|
|||||||
void UnityIgnoreTest(const char * printableName, const char * group, const char * name);
|
void UnityIgnoreTest(const char * printableName, const char * group, const char * name);
|
||||||
void UnityMalloc_StartTest(void);
|
void UnityMalloc_StartTest(void);
|
||||||
void UnityMalloc_EndTest(void);
|
void UnityMalloc_EndTest(void);
|
||||||
int UnityFailureCount(void);
|
UNITY_COUNTER_TYPE UnityFailureCount(void);
|
||||||
|
UNITY_COUNTER_TYPE UnityIgnoreCount(void);
|
||||||
|
UNITY_COUNTER_TYPE UnityTestsCount(void);
|
||||||
int UnityGetCommandLineOptions(int argc, const char* argv[]);
|
int UnityGetCommandLineOptions(int argc, const char* argv[]);
|
||||||
void UnityConcludeFixtureTest(void);
|
void UnityConcludeFixtureTest(void);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user