Already a member? Log in

Sign up with your...

or

Sign Up with your email address

Add Tags

Duplicate Tags

Rename Tags

Share It With Others!

Save Link

Sign in

Sign Up with your email address

Sign up

By clicking the button, you agree to the Terms & Conditions.

Forgot Password?

Please enter your username below and press the send button.
A password reset link will be sent to you.

If you are unable to access the email address originally associated with your Delicious account, we recommend creating a new account.

ADVERTISEMENT

Links 1 through 10 of 24 by Jeff Schilling tagged unit-testing

Kiwi is a Behavior Driven Development library for iPhone and iPad development. The goal is to provide a BDD library that is exquisitely simple to setup and use.

Share It With Others!

Share It With Others!

Share It With Others!

Building the project at this point will get some warnings about missing functions and a crash executing the unit tests. In order to fix the crash we need to setup the build to copy the OCMock framework into our build directory. I’m not entirely sure why this is needed, something about one of the paths set in the framework, but it does get things working.

Share It With Others!

alright, I think I've found the problem,

the way gcovr fill the field filename of nodes "class" is a little buggy, causing filename begining by "/"

<class branch-rate="0.5" complexity="0.0" filename="/main.cpp" line-rate="0.714285714286" name="main_cpp">

it seems that hudson plugin doesn't like this, I think it try to create folder with empty name.

It might be resolved by changing in gcovr plugin, in function print_xml_report

c.setAttribute("filename", dir+os.sep+fname)
by
c.setAttribute("filename", os.path.join(dir, fname))

Share It With Others!

Share It With Others!

# Run gcov on the framework getting tested
if [ "${CONFIGURATION}" = 'Coverage' ]; then
TARGET_NAME="My Application"
OBJ_DIR=${OBJROOT}/${TARGET_NAME}.build/${CONFIGURATION}/${TARGET_NAME}.build/Objects-normal/${CURRENT_ARCH}
mkdir -p Coverage
pushd Coverage
find "${OBJROOT}" -name *.gcda -exec gcov -o "${OBJ_DIR}" {} \; 2>/tmp/gconv-stderr | egrep "^File|^Lines" | sed -E "s@File '$SRCROOT/@@;s@(\.[a-zA-Z])'@\1: @;s@Lines executed:([0-9.%]+) of ([0-9]+)@\1 (\2)@" | paste -d" " - - | egrep -v "^File '" | sed -E "s@^([^:]+):([^(]*)(\([^)]+\))@\2:\1\3@" | sort -n | sed -E "s@^([^:]+):([^(]*)(\([^)]+\))@\2:\1\3@"; cat /tmp/gconv-stderr | grep -v "version.*, prefer.*"; rm /tmp/gconv-stderr
popd
fi

Share It With Others!

Share It With Others!

Share It With Others!

Xcode[669] -runOperationInBackground raised an exception: -[XCBuildLogCommandInvocationSection setTestsPassedString:]: unrecognized selector sent to instance 0×2009b7620
Needless to say, I was losing my mind. Finally, a user in the Apple Developer forums, “cde”, posted the following gem:
We have recently discovered the root cause of this problem.
People who are affected can work around it by (I hope you’re ready for this)…
…changing the Time Zone on your Build machine away from Central Daylight Time. (In six ...
As has been said, “Then I decided to use regular expressions, and I had two problems…”
So until it’s fixed, change your timezone to Pacific time.

Share It With Others!

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT