Classes

The following classes are available globally.

  • A simple NSException subclass. It’s not required to subclass NSException (since the exception type is represented in the name) but this helps for identifying the exception through runtime type.

    See more

    Declaration

    Swift

    @objc(BadInstructionException)
    public class BadInstructionException : NSException
  • AssertionDispatcher allows multiple AssertionHandlers to receive assertion messages.

    @warning Does not fully dispatch if one of the handlers raises an exception. This is possible with XCTest-based assertion handlers.

    See more

    Declaration

    Swift

    public class AssertionDispatcher : AssertionHandler
  • An AssertionHandler that silently records assertions that Nimble makes. This is useful for testing failure messages for matchers.

    @see AssertionHandler

    See more

    Declaration

    Swift

    public class AssertionRecorder : AssertionHandler
  • Undocumented

    See more

    Declaration

    Swift

    public class NMBExpectation : NSObject
  • Default handler for Nimble. This assertion handler passes failures along to XCTest.

    See more

    Declaration

    Swift

    public class NimbleXCTestHandler : AssertionHandler
  • Alternative handler for Nimble. This assertion handler passes failures along to XCTest by attempting to reduce the failure message size.

    See more

    Declaration

    Swift

    public class NimbleShortXCTestHandler : AssertionHandler
  • Helper class providing access to the currently executing XCTestCase instance, if any

    See more

    Declaration

    Swift

    @objc
    final public class CurrentTestCaseTracker : NSObject, XCTestObservation
  • Only classes, protocols, methods, properties, and subscript declarations can be bridges to Objective-C via the @objc keyword. This class encapsulates callback-style asynchronous waiting logic so that it may be called from Objective-C and Swift.

    See more

    Declaration

    Swift

    public class NMBWait : NSObject
  • Undocumented

    See more

    Declaration

    Swift

    public class NMBExpectationMessage : NSObject
  • Encapsulates the failure message that matchers can report to the end user.

    This is shared state between Nimble and matchers that mutate this value.

    See more

    Declaration

    Swift

    public class FailureMessage : NSObject
  • Undocumented

    See more

    Declaration

    Swift

    public class NMBMatcher : NSObject
  • Undocumented

    See more

    Declaration

    Swift

    public class NMBObjCBeCloseToMatcher : NMBMatcher
  • Undocumented

    See more

    Declaration

    Swift

    final public class NMBMatcherResult : NSObject
  • Undocumented

    See more

    Declaration

    Swift

    final public class NMBMatcherStatus : NSObject
  • Undocumented

    See more

    Declaration

    Swift

    public class NMBObjCRaiseExceptionMatcher : NMBMatcher
  • Without Mach exceptions or the Objective-C runtime, there’s nothing to put in the exception object. It’s really just a boolean – either a SIGILL was caught or not.

  • Undocumented

    See more

    Declaration

    Swift

    public final class SourceLocation : NSObject
  • Undocumented

    See more

    Declaration

    Swift

    @objc
    public class NMBStringer : NSObject