Podcast with SpecFlow creator Gaspar Nagy

SpecFlow creator Gaspar Nagy recently joined Aslak Hellesoy, Matt Wynne and Arti Mathanda for March’s Cucumber Podcast.

In the podcast, Gaspar talks about the origins of SpecFlow and how working on SpecFlow changed his life. He also sheds some light on the future of SpecFlow and his own plans, including teasing us with the prospect of his own book on the subject. As well as talking about SpecFlow and Cucumber, the panel also discuss some general topics, such as the role of QA in modern development teams. And last but not least, you will also learn how to pronounce Gaspar’s name like a true Hungarian.

New SpecFlow+ Sample Projects Available

We’ve added a number of new samples to the SpecFlow+ sample repository on GitHub:

  • WindowsAppDriver: Demonstrates using the WindowsAppDriver with SpecFlow+ and the Windows calculator.
  • CustomDeploymentSteps: Sample project based on the previous WindowsAppDriver project that demonstrates custom deployment steps.
  • ExcelExample: A relatively simple calculator project using SpecFlow+ Excel. Different operations (add/subtract/divide/multiply) are specified using a either a standard feature file, an Excel file, or a combination of a standard feature file and example data in an Excel file.
  • FilterExample: A sample project demonstrating how to use filters to only run a subset of tests.
  • MultipleReports: A sample project showing how to configure SpecFlow+ Runner to output multiple reports using custom templates.
  • TestThreadIsolation: A sample project showing the effects of different test thread isolation configurations for multithreaded testing

SpecFlow Visual Studio 2017 Sim Ship Announcement

Visual Studio 2017’s official release is just around the corner, and TechTalk and SpecFlow have teamed up with Microsoft as a Sim Ship partner. Microsoft’s Sim Ship (simultaneous shipment) program has been going strong for years, and gives selected Visual Studio partners the opportunity to access migration support, documentation and the latest builds of Visual Studio. This gives partners a chance to upgrade their Visual Studio extensions for compatibility with the new version in time to be shipped with the official release of Visual Studio.

This means that you will be able to upgrade to VS 2017 immediately upon release and continue using SpecFlow and SpecFlow+. We updated the SpecFlow VS integration in January to introduce support for VS 2017, and the latest version is available from the Visual Studio Marketplace. Note that this version does not yet fully support .NET Core and .Net Standard projects in VS 2017. If you notice any oddities with SpecFlow in VS 2017, let us know!

Video: Traits in SpecFlow

Sophie Keiblinger from TechTalk has taken time out from her testing duties to share a couple of insights into how she and her team use traits (tags) in SpecFlow. This ranges from keeping track of the user stories associated with changes to scenarios, using traits to communicate the status of tests with other team members and managing which tests should be executed for different builds.

Website Redesign

We’re sure you’ve already noticed that the SpecFlow website has changed in appearance. We’ve tried to tidy things up a little and have made a few changes to the site, in particular the News section, which now has categories and filters.

To make the transition as painless as possible, we have retained most of the pages and their URLs, so most of your bookmarks should still work. That said, we did some spring cleaning: some ancient pages are gone and we consolidated a number of pages on the new Documentation landing page. All links to SpecFlow-related resources (documentation, tutorials, videos, books, sample projects etc.) are now in one place. The main menu has also changed a bit as a result.

If you spot anything that seems strange or have feedback/suggestions, let us know in the comments below.

 

Anatomy of a Gherkin

Dirk Rombauts from Pickles Pro has written an in-depth guide to the Gherkin syntax called Anatomy of a Gherkin. It’s a great introduction to the Gherkin syntax. As well as tackling the various Gherkin keywords, Dirk has drawn on his extensive experience to include practical tips and potential pitfalls, as well as explaining how to write Gherkin in languages other than English.

Dependency Injection with Autofac and Unity

Gaspar Nagy recently released SpecFlow.Autofac, a plugin that allows you to use the popular Autofac dependency injection framework with SpecFlow. You can read more about it on Gaspar’s blog as well as download the project and use it as a starting point for your own.

Paul Hatcher did just that and has published a version with support for Microsoft’s Unity 4.0.1 or higher. More information can be found on the project page on GitHub.