Skip to main content

Questions tagged [bdd]

In software engineering, behavior-driven development (abbreviated BDD) is a software development process based on test-driven development (TDD).

2 votes
0 answers
53 views

I am new to BDD/Specflow and was wondering if I could get some feedback on my definitions Here is what I have for a simple customer creation feature/command: ...
Matster2's user avatar
4 votes
0 answers
122 views

This is the problem: Write a function to create a table from CSV data. The input to the function is a list of strings. Each string is formatted as a CSV record. Here’s an example for a ...
Boolood's user avatar
  • 41
1 vote
2 answers
117 views

I am testing my repository class: interface AccountRepository{ void save(Account account); Optional<Account> findById(Long id); } And when writing ...
Sam's user avatar
  • 179
2 votes
2 answers
180 views

I am trying to spruce up my BDD skills using Specflow and Gherkin. Please see the classes below: ...
w0051977's user avatar
  • 713
5 votes
1 answer
283 views

I asked a similar question yesterday, which was criticised because I posted the test without the supporting code. Therefore I deleted the question yesterday as it was not clear enough. I am now ...
w0051977's user avatar
  • 713
4 votes
2 answers
395 views

I have implemented matlab's linspace function ...
Gilad's user avatar
  • 5,443
6 votes
1 answer
218 views

Background I already changed my mind towards the SOLID principles, and am applying them in everything that I create. Now I am reading a lot of articles about TDD and BDD, aiming to begin applying ...
LoRdPMN's user avatar
  • 163
8 votes
1 answer
423 views

I am currently getting closely acquainted with Behavior-Driven Development. Could someone tell me how I am doing with the Fizzbuzz program below? I am interested in both improving the JavaScript code ...
MadPhysicist's user avatar
3 votes
0 answers
167 views

I am considering an approach fo BDD tests on Android. The sample app — a simple messenger — has been made in Kotlin, so will be the tests. I ended up with something like this : ...
Gorcyn's user avatar
  • 131
4 votes
1 answer
97 views

I was given a test to write a class that calculates a vehicle's average and expected mileage without using a database or framework. The mileages were to be calculated given some different types of ...
Ben Robey's user avatar
  • 143
2 votes
0 answers
397 views

I've just completed writing a spec for a Doctrine2 repository. The repo contains only one method so far, the spec for which takes in an OAuth Identity token object (that contains an ID that matches up ...
danbroooks's user avatar
4 votes
0 answers
285 views

I wanted to come up with a 'utility' context to enable testing of the file system with behat. Specifically this is aimed at helping with the behavioral testing of php command line applications that ...
Samuel Parkinson's user avatar
3 votes
1 answer
474 views

I am trying to learn BDD in PHP with Behat and Mink and I am using Selenium2 driver for the same. The scenario is given on this page and is as follows: ...
Musa Haidari's user avatar
9 votes
2 answers
4k views

Here I am trying to avoid hardcoding in flash messages by using I18n. Also, I have tried to use a CSS selector for submitting the form to make the tests less brittle (I don't really care that much ...
papirtiger's user avatar
5 votes
2 answers
311 views

I just tried BDD for the first time and implemented a simple Semantic Versioning Bumper in Python. The class takes a version string in the format of major.minor.patch (i.e. 3.2.2, where major=3, ...
Fabian's user avatar
  • 153

15 30 50 per page