792 Commits

Author SHA1 Message Date
Zhigang Fang
edd0463365 Fix typo? 2014-07-21 21:18:23 +08:00
Marin Usalj
26a276df75 update podspec for 2.3.0 2.3.0 2014-07-08 16:32:50 -07:00
Marin Usalj
8cee99d426 Merge pull request #475 from sharplet/config-fixes
Fix CONFIG_START/CONFIG_END
2014-07-07 16:58:26 -07:00
Adam Sharp
97cd622687 Remove defunct macros from KiwiConfiguration.h 2014-07-07 21:29:37 +10:00
Adam Sharp
1a6a5e6413 Implement before/after all specs hooks by swizzling +[XCTestSuite testSuiteWithName:]
The XCTestObserver implementation of beforeAllSpecs/afterAllSpecs wasn't
stable. At various times the hooks would run from within the Kiwi
project, or from an external test suite, but usually not from both, and
it was never clear what caused it to work or not. Setting values in
NSUserDefaults at load time doesn't seem to be a stable strategy.

This implementation swizzles +[XCTestSuite testSuiteWithName:] and looks
for a suite named "All tests". It then dynamically sets the class of the
"All tests" suite to be a custom subclass that overrides setUp and
tearDown to call KWSuiteConfigurationBase.

Also adds an integration test step in the Makefile that looks through
the xcodebuild.log output for the strings "beforeAllSpecs" and
"afterAllSpecs" as an indication that the config hooks were executed
(logged from Tests/Config.m).

Finally, the beforeEachSpec and afterEachSpec have been removed from the
public interface of KWSuiteConfigurationBase as they are still
unimplemented.
2014-07-07 19:41:06 +10:00
Adam Sharp
ac1333475e Merge branch 'xcode6'
Fixes #543. Closes #540, #544.
2014-07-06 20:32:26 +10:00
Adam Sharp
07c2a0a82c Merge branch 'master' of github.com:kiwi-bdd/Kiwi into config-fixes
Conflicts:
	Classes/Core/KWSpec.h
	Kiwi.podspec
	Kiwi.xcodeproj/project.pbxproj
	KiwiXCTests/KWXCFunctionalTest.m
	SenTestingKit/SenTestSuite+KiwiAdditions.m
2014-07-01 19:03:19 +10:00
Marin Usalj
6d5c5699c4 Merge pull request #542 from kiwi-bdd/osx-description-fix
Xcode 6: fix compile errors caused by new signature of -[NSObject description]
2014-06-30 11:12:21 -07:00
Adam Sharp
813891ebbd Xcode 6: fix compile errors caused by new signature of -[NSObject description]
On the OS X 10.10 SDK, `-[NSObject description]` is now defined as a
property. Updated any of our own `description` properties to be declared
with the same attributes, and manually synthesize ivars where necessary.

Adds unit tests to ensure that the synthesized ivars are actually used.
2014-06-28 21:13:07 +10:00
Adam Sharp
5ed0726faf Apply FRAMEWORK_SEARCH_PATHS fixes to OSX targets and project file 2014-06-28 15:50:56 +10:00
Swizzlr
5cf63e39d9 Support XCTest under Xcode 6 Beta 2 2014-06-28 15:49:39 +10:00
Marin Usalj
76c40ae019 Merge pull request #536 from kiwi-bdd/xctest
Modernise project configuration, add OS X unit test target, and convert Kiwi to XCTest
2014-06-27 14:38:09 -07:00
Adam Sharp
c10a8af39b Makefile: remove erroneous claim that OS X tests are 32-bit 2014-06-26 08:11:07 +10:00
Adam Sharp
fdfd89f234 Fix crash caused by over-released object when using receive:withArguments:
This crash has manifested itself variously as a SIGABRT in an unexpected
location, and an EXC_BAD_ACCESS when leaving an @autoreleasepool { }
scope. It seems to have been introduced when converting KWMessagePattern
to ARC, causing message patterns with argument filters to be over-eager
in releasing their arguments.

The crash is resolved by replacing strong references to message pattern
argument filters with autoreleasing strong references.

(You can reproduce the crash consistently and clearly by reverting the
offending line in KWMessagePattern, then wrapping the new functional
test in an @autoreleasepool { } scope.)
2014-06-26 07:55:50 +10:00
Adam Sharp
5696faaeb4 Makefile: Use separate targets for test run archs 2014-06-23 20:08:33 +10:00
Adam Sharp
69f027f5b2 Fix issue where tests would run twice on 64-bit builds 2014-06-23 20:08:11 +10:00
Adam Sharp
7841bd64ad podspec: s/allending/kiwi-bdd/ 2014-06-23 18:54:22 +10:00
Adam Sharp
745a408603 podspec: consolidate subspecs into root specification 2014-06-23 18:54:22 +10:00
Adam Sharp
ebb4f87a6d Move KWMessagePattern into Core 2014-06-23 18:54:22 +10:00
Adam Sharp
c09c5dd302 Convert KWMessagePattern to ARC 2014-06-23 18:54:17 +10:00
Adam Sharp
a3fc9bb4a7 Update podspec for XCTest-only 2014-06-23 07:58:28 +10:00
Adam Sharp
4fd623f768 Issue busting: delete deprecated KWRaiseMatcher 2014-06-23 07:43:21 +10:00
Adam Sharp
3ebc448907 Enable ARC on KWStub.m in Kiwi-OSX 2014-06-23 07:40:40 +10:00
Adam Sharp
185f070096 Fix auto-property-synthesis warnings 2014-06-23 07:35:05 +10:00
Adam Sharp
84eb07931c Resolve project-level warnings 2014-06-23 07:31:59 +10:00
Adam Sharp
bb9532f3cb Use property notation for kw_example/kw_setExample: 2014-06-23 07:30:55 +10:00
Adam Sharp
897f81881e Remove references to SenTestingKit 2014-06-23 07:30:34 +10:00
Adam Sharp
f8a0e42841 Add OS X tests to Makefile 2014-06-22 21:54:54 +10:00
Adam Sharp
f87242a9d8 Get OSX tests compiling 2014-06-22 21:54:53 +10:00
Adam Sharp
b9e76ff593 Add Kiwi-OSX test bundle 2014-06-22 21:54:53 +10:00
Adam Sharp
2de10c44e6 Reorganise top-level project groups 2014-06-22 21:54:52 +10:00
Adam Sharp
38864a41b0 Delete redundant XCTest targets/schemes 2014-06-22 21:54:52 +10:00
Adam Sharp
be7ddeb259 Delete SenTestingKit+KiwiAdditions 2014-06-22 21:54:52 +10:00
Adam Sharp
2f41fd6ec1 Convert Kiwi + KiwiTests to XCTest 2014-06-22 21:54:51 +10:00
Adam Sharp
530e88c764 Use project-level defaults for archs config
i.e., ONLY_ACTIVE_ARCH=NO and VALID_ARCHS="armv7 armv7s arm64"
2014-06-22 21:54:51 +10:00
Adam Sharp
3f5bd4cfe4 Remove "-d" flag to atos which fails on OS X 10.10 2014-06-22 21:53:57 +10:00
Adam Sharp
815d2d6c9a Resolve "type mismatch" test failure on 64-bit with NSUInteger 2014-06-22 19:39:46 +10:00
Adam Sharp
ac0db96c26 Fix test crashes in KWRealObjectStubTest
It *appears* as if it's no longer necessary to call `[super dealloc]` in
`KWInterceptedDealloc()`. After removing this call, the tests seem to
run just fine with no crashes.
2014-06-20 22:47:25 +10:00
Adam Sharp
1a1a986915 Merge branch 'revert-revert' into config-fixes 2014-06-19 20:45:37 +10:00
Adam Sharp
879961a4e5 Revert "Revert pull request #427."
This reverts commit 503f7e0638.
2014-06-19 20:44:53 +10:00
Marin Usalj
fdc4036ee3 Merge pull request #528 from kiwi-bdd/let-type
Smarter let types
2014-06-02 00:11:01 -07:00
Adam Sharp
eefb61e34d Use __typeof__ to determine smarter let variable type 2014-06-02 12:26:50 +10:00
Adam Sharp
4852d10495 Import TestClass.h in KWFunctionalTests 2014-06-02 12:26:50 +10:00
Marin Usalj
8a58e04c44 ensure failures on pipes and subcommands
Makefile makes a new shell instance for each new line.
If xcodebuild failed with 65, we were still exiting with 0
2014-05-29 11:55:31 -07:00
Marin Usalj
faad51d85d Run tests on 32 and 64 bit 2014-05-19 18:38:06 -07:00
Brian Gesiak
381b18cfe1 Merge pull request #521 from vtourraine/patch-1
Update Travis configuration return code
2014-05-16 19:20:13 +09:00
Vincent Tourraine
621ecac4eb Update Travis configuration return code
Let failing tests actually be reported as errors to the CI server.
2014-05-16 08:30:26 +01:00
Marin Usalj
561a8c8b58 s/png/svg 2014-05-15 15:37:09 +02:00
Marin Usalj
e14aca4f24 use h1 and h2 for titles 2014-05-15 15:35:49 +02:00
Marin Usalj
8cbb574cec s/allending/kiwi-bdd 2014-05-15 15:33:38 +02:00