Gáspár Nagy on software

coach, trainer and bdd addict, creator of SpecFlow

Balancing Scenarios and Unit tests (case study with SpecFlow)

by Gáspár on February 20, 2017

According to the principles of Behavior Driven Development (BDD), we discuss examples and write them down as Gherkin scenarios. These scenarios can be turned into automated tests by BDD tools like Cucumber or SpecFlow, so that the implementation can be “driven” by them. So it is like TDD. But if it is like TDD, there […]

SpecFlow tips: When to clean the database

by Gáspár on February 23, 2015

We were always told to clean up after ourselves when we were children, this is also what I teach to my daughters. Probably due to this, when writing the first integration tests that inserts data to a database, devs cleanup (or reset) the database after the test has been executed (with an [AfterScenario] SpecFlow hook, […]

SpecFlow tips: input and output files

by Gáspár on January 20, 2014

Integration tests have to deal with file system files from time to time, even if the system under test does not use the file system. You might have test input files or generated logs, traces or other output files that you generate during the test execution. Handling such files is not too hard, but there […]