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.
···
*___________________________________*
*James⎥Lead Engineer*
*james@supmenow.com <james@supmenow.com>⎥supmenow.com <http://supmenow.com>*
*Sup*
*Runway East *
*10 Finsbury Square*
*London*
* EC2A 1AF *
Thanks for raising this issue, James!
Similar opinions were expressed by others when the Swift Evolution proposal
SE-0019, "Swift Testing", was being discussed.
- Review of the proposal on the mailing list:
https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160111/006197.html
- Comments on the GitHub pull request to add the proposal:
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.
*___________________________________*
*James⎥Lead Engineer*
*james@supmenow.com <james@supmenow.com>⎥supmenow.com
<http://supmenow.com>*
*Sup*
*Runway East *
*10 Finsbury Square*
*London*
* EC2A 1AF *
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution