A New Approach to Testing in Swift

Hi everyone,

I see a couple of suggestions pop up in this tread to make testing (using Swift-Testing) easier. For example:

  • Use a closure for the test code (instead of having to make - and name - a function)
  • Nicer test output
  • Easier integration for test doubles
  • Testing fatalError, assert, precondition (has its own thread)

There is currently a question on this forum for GSoC projects. I could write up a project to implement (some of) these improvements.

Would this be something you would support? I'm especially asking the creators/maintainers of this library (@smontgomery).

5 Likes