Integration Testing Archives - Gáspár Nagy on software https://gasparnagy.com/tag/integration-testing/ coach, trainer and bdd addict, creator of SpecFlow; owner of Spec Solutions Thu, 16 Mar 2017 20:36:50 +0000 en-US hourly 1 https://wordpress.org/?v=6.9 57938217 Balancing Scenarios and Unit tests (case study with SpecFlow) https://gasparnagy.com/2017/02/balancing-scenarios-and-unit-tests-case-study-with-specflow/ Mon, 20 Feb 2017 19:06:36 +0000 http://gasparnagy-com.lku.dkk.mybluehost.me/?p=1003 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 […]

The post Balancing Scenarios and Unit tests (case study with SpecFlow) appeared first on Gáspár Nagy on software.

]]>
1003
SpecFlow tips: Problems with placing step definitions to base classes https://gasparnagy.com/2015/05/specflow-tips-problems-with-placing-step-definitions-to-base-classes/ https://gasparnagy.com/2015/05/specflow-tips-problems-with-placing-step-definitions-to-base-classes/#comments Mon, 18 May 2015 18:04:12 +0000 http://gasparnagy-com.lku.dkk.mybluehost.me/?p=481 On the bases of feedback and issues, a lot of SpecFlow users seem to try to put step definitions and other binding codes to base classes. I’ll try to explain why inheritance doesn’t fit to the concept of global step definitions used by SpecFlow. Why would somebody use base classes for step definitions? Well, I […]

The post SpecFlow tips: Problems with placing step definitions to base classes appeared first on Gáspár Nagy on software.

]]>
https://gasparnagy.com/2015/05/specflow-tips-problems-with-placing-step-definitions-to-base-classes/feed/ 1 481
SpecFlow tips: When to clean the database https://gasparnagy.com/2015/02/integration-testing-tips-when-to-clean-the-database/ Mon, 23 Feb 2015 20:37:17 +0000 http://gasparnagy-com.lku.dkk.mybluehost.me/?p=433 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, […]

The post SpecFlow tips: When to clean the database appeared first on Gáspár Nagy on software.

]]>
433
SpecFlow tips: input and output files https://gasparnagy.com/2014/01/integration-testing-tips-input-and-output-files/ https://gasparnagy.com/2014/01/integration-testing-tips-input-and-output-files/#comments Mon, 20 Jan 2014 18:52:38 +0000 http://gasparnagy-com.lku.dkk.mybluehost.me/?p=298 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 […]

The post SpecFlow tips: input and output files appeared first on Gáspár Nagy on software.

]]>
https://gasparnagy.com/2014/01/integration-testing-tips-input-and-output-files/feed/ 2 298