Swiftpack.co - Package - elegantchaos/XCTestExtensions

Test results Latest release swift 5.1 shield swift 5.2 shield swift dev shield Platforms: macOS, iOS, tvOS, watchOS, Linux

XCTestExtensions

Swift testing utilties, extending the capabilities of XCTest.

Includes helpers for:

  • quickly loading test data from the bundle
  • running an external executable and checking its output
  • better comparison of strings

Github

link
Stars: 0

Dependencies

Used By

Total: 0

Releases

1.1.2 - 2020-05-31 16:18:37

Added testing support for Result when the Failure type is an Error.

Errors aren't Equatable by default, so a result with an Error as a failure type can't be passed to XCTAssertEqual by default. We add explicit support for this, comparing the errors using their localised descriptions. Should work in most cases.

1.1.1 - 2020-03-24 17:28:02

Fixed run method on Linux.

1.1 - 2020-03-24 14:26:42

Tweaked XCTestRunner result type. Improved test coverage.

1.0.11 - 2020-03-23 18:27:57

Added better assertions for comparing strings, and testing the results of running external commands.

1.0.10 - 2020-03-23 17:09:22

Added runner for testing external executables.

1.0.9 - 2020-02-24 19:31:02

Added productsDirectory method for obtaining the URL of the directory that the test bundle is in (usually the place where other products have also been built).

Useful when testing something like a command line tool that needs to be built then located and invoked by the tests.

1.0.8 - 2020-02-10 14:21:18

Made WrappedTestMonitor an open class so that it can be subclassed.

1.0.7 - 2020-01-21 14:53:23

Fixed test path when using explicit workspace at the module root.

1.0.6 - 2019-12-05 18:57:51

Added some support for testing asynchronously.