I would love to propose we add more BDD styled testability like RSpec
It makes reading tests for specific behaviour easier to read as it can be
nested withoin contexts. Adding a first class mocking library would be
great since it is very hard to do this with Swift's static typing.
I think there was a general consensus that as long as the package manager's
testing support was generic enough, it would allow third-parties to build
testing frameworks in any style, including RSpec's. The accepted proposal
will initially only support XCTest, with consideration for third-party
framework support to come later. At that later point, I'm sure RSpec-style
frameworks for Swift will emerge from the larger open-source community.
In the meantime, swift-corelibs-xctest's goal remains the same: API parity
with Objective-C XCTest. Adopting RSpec-style syntax is a non-goal for that
project.
- Brian Gesiak
···
On Wed, Jan 27, 2016 at 2:34 PM, James Campbell via swift-evolution < swift-evolution@swift.org> wrote:
I would love to propose we add more BDD styled testability like RSpec http://rspec.info/
It makes reading tests for specific behaviour easier to read as it can be
nested withoin contexts. Adding a first class mocking library would be
great since it is very hard to do this with Swift's static typing.