Comments (4)
Philipp,
This fix works correctly if the ignored test is the last test to run. But it introduces a new bug if the ignored test is the 2nd to last test to run:
Unity test run 1 of 1
........!.
10 Tests 0 Failures 2 Ignored
OK
Did you write a Unity test for this code ;-) ?
-John-
From: PhilippMeier [mailto:[email protected]]
Sent: Wednesday, November 07, 2012 6:31 AM
To: ThrowTheSwitch/Unity
Subject: [Unity] Ignore Tests not counted up (#14)
function "UnityIgnoreTest" (defined in unity_fixture.c) misses to count up "Unity.TestIgnores". This then lead to the test result showing "0 Ignored" when it should show "1 Ignored".
I guess the fix for this bug is to change
void UnityIgnoreTest()
{
Unity.NumberOfTests++;
Unity.CurrentTestIgnored = 1;
UNITY_OUTPUT_CHAR('!');
}
to
void UnityIgnoreTest()
{
Unity.NumberOfTests++;
Unity.TestIgnores++;
Unity.CurrentTestIgnored = 1;
UNITY_OUTPUT_CHAR('!');
}
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/14.
Disclaimer: This message and any files or text attached to it are intended only for the recipients named above and contain information that may be confidential or privileged. If you are not an intended recipient, you must not forward, copy, use or otherwise disclose this communication or the information contained herein. In the event you have received this message in error, please notify the sender immediately by replying to this message, and then delete all copies of it from your system. Thank you.
from unity.
John
As you can see when you are logged in to Github directly, I changed my original description because in the meantime I found the same issue as you describe. I have no solution yet - I hoped to not be the first one...
Philipp
from unity.
This bug was fixed in commit e21881c.
@mvandervoord Will you close this issue?
from unity.
:) Thanks!
from unity.
Related Issues (20)
- Possibly typo in test_unity_integers_64.c and test_unity_arrays.c HOT 1
- Avoid running the setup for some specific tests HOT 3
- #529 still unfixed after merge HOT 2
- PlatformIO failing to parse manifest on install. HOT 1
- Game thing.com HOT 1
- How do I rename the `setUp` and `tearDown` functions? HOT 2
- Build fails with -Werror=missing-declarations when UNITY_USE_COMMAND_LINE_ARGS is enabled HOT 1
- XML/JSON based report generating? HOT 2
- Errr how u use this HOT 1
- Can you code on iPad using this app?
- I'm in secondary school first grade sooo i have no idea what I'm doing (I'm trying to tell but not expose my age) HOT 1
- Can you use this app to code on iPad?
- ssize_t asserts are missing
- Add Example for Testing using CMake
- Build fails when not using UNITY_USE_COMMAND_LINE_ARGS
- Feature Request: Support asymmetric range assertions HOT 2
- Some codes failed `-Werror=float-equal` compiler flag, please fix it.
- UNITY_NORETURN redefines noreturn, uses stdnoreturn.h which can break compatibility with C23 and is being defined when unnecessary HOT 1
- Generic assertion HOT 3
- Invalid file name reported HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unity.