pointfreeco / swift-custom-dump

A collection of tools for debugging, diffing, and testing your application's data structures.
MIT License
800 stars 89 forks source link

Why CustomDump has dependency on xctest-dynamic-overlay #89

Closed InderKumarRathore closed 1 year ago

InderKumarRathore commented 1 year ago

https://github.com/pointfreeco/swift-custom-dump/blob/e1a5818edeeaa5855365ff1ff21f8c444752f3d7/Package.swift#L19

  dependencies: [
    .package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "0.2.0")
  ]
stephencelis commented 1 year ago

@InderKumarRathore One of Custom Dump's main tools is XCTAssertNoDifference, which provides a nice, human-readable version of XCTAssertEqual. It requires XCTest Dynamic Overlay to define test tools inside a library target. You can learn more about the library here: https://github.com/pointfreeco/xctest-dynamic-overlay

It's a very lightweight interface to XCTest, though, so it should compile quite fast and not be a burdensome dependency to bring in. Do you have any concerns?

stephencelis commented 1 year ago

Also, I'm going to convert this to a discussion since we use issues for bug tracking and this is more of a Q&A.