GithubHelp home page GithubHelp logo

Comments (6)

nerdyc avatar nerdyc commented on June 15, 2024

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.

nerdyc avatar nerdyc commented on June 15, 2024

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.

tonyarnold avatar tonyarnold commented on June 15, 2024

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.

mickeyreiss avatar mickeyreiss commented on June 15, 2024

Tested out d4b1e27 in my project. Seems to be reporting the pending and focused tests correctly!

from specta.

petejkim avatar petejkim commented on June 15, 2024

😃

from specta.

felix1m avatar felix1m commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.