Comments (6)
The default reporter format that I built breaks Xcode's test integration in Xcode 5.0.1. Since Xcode seems to be finicky about the format, Specta should modify the output format as little as possible by default.
I'll work on restoring this feature, but the new format may be much closer to Xcode's default.
from specta.
My commit above re-adds support for custom reporters, but the format has changed to be compatible with Xcode's test integration features.
This is a much simpler implementation than the original. SPTReporter is simply a subclass of XCTestLog so its output should track any changes made by the Xcode team. As just another observer, it should play well with any 3rd-party observers too.
The only non-standard aspect is that I was forced to swizzle -[XCTestLog startObserving] and -[XCTestLog stopObserving]. There was no other way to force XCTest to use SPTReporter without requiring users to explicitly add the -XCTestObserverClass default to their test scheme.
from specta.
Great stuff! That works a treat 👍
Related: we should have an open radar issue filed publicly that people can duplicate and submit to Apple's Bug Reporter asking for more flexible test support in Xcode. It seems to me that Xcode is heading in the direction of more fully supporting differing test syntax like that Specta uses, but duped radars help get issues like this more attention.
Is there something already written that we can use? It might be good to promote something like this — I'm sure the Kiwi guys would get behind it too.
from specta.
Tested out d4b1e27 in my project. Seems to be reporting the pending and focused tests correctly!
from specta.
😃
from specta.
it seems like this breaks current workarounds to get code coverage reports on iOS7, like http://qualitycoding.org/ios-7-code-coverage/ .
Has anyone had success getting these reports to run in combination with specta?
from specta.
Related Issues (20)
- Test results "arrow button" in Xcode 7 doesn't work correctly for Specta test results HOT 1
- Carthage Binaries HOT 4
- waitUntil hangs when using Specta in XCTest UI Test target HOT 9
- Specta getting stuck when trying to dispatch_sync in the main queue HOT 4
- XCTool support? HOT 14
- Specta fails to build when targeting tvOS HOT 2
- Add watchos support HOT 4
- Hierarchical test results HOT 1
- Cannot build with `rake` on 7.2 <= Xcode < 7.3 on Yosemite and El Cap
- WaitUntil and WaitUntilTimeOut leads to EXC_BAD_ACCESSS HOT 1
- It would be nice if specta had an option to reset the app after each test file completes HOT 1
- Repeating Unit-Tests
- Should fit/fdescribe have other tests show up as pending/failing?
- Tests are skipped nondeterministically
- signal SIGABRT at waiUntilTimeOut function
- No visible @interface for 'XCTestSuite' declares the selector 'run' HOT 5
- Bad access in SPTSharedExampleGroups
- iiccoinsss
- Expecta/EXPDefines.h
- Dependent pods fail linting due to very old deployment target on Xcode 15.3
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 specta.