Hot answers tagged

9 votes
Accepted

Will writing unit tests block developers from coding?

The TDD cycle is more a development cycle for a developer, to quote James Shore, The Art of Agile, Test-Driven Development chapter: Programmers new to TDD are often surprised at how small each ...
Niels van Reijmersdal's user avatar
8 votes
Accepted

What is exact difference between TDD and BDD?

TDD (Test Driven Development) Who's involved: Developers Summary: Developers start writing code by first defining tests (in general unit tests). It could sound strange, but this practically ...
Luca Giuffrida's user avatar
6 votes

Is dependency injection suitable for TDD?

The TirePressureMonitoringSystem coding kata is an situation that is very hard to test without dependency injection. It simulates an Alarm which is part of tire pressuring system. The implemented ...
Niels van Reijmersdal's user avatar
6 votes
Accepted

Is dependency injection suitable for TDD?

Yes, proper dependency injection benefits testing and TDD greatly because it allows to test individual components/dependencies easier - mocking/stubing each of the dependencies without affecting any ...
alecxe's user avatar
  • 11.4k
6 votes

What is exact difference between TDD and BDD?

Both are a form of test driven development, since you write the tests upfront. The main difference is that TDD tests are technical tests often unit-tests created during developing of a feature and are ...
Niels van Reijmersdal's user avatar
5 votes

Will writing unit tests block developers from coding?

I'd plan it this way: The specific tests that are written 'before the code' are unit tests that are written by developers just before they write the actual code. It should only take 5-20 minutes to ...
Michael Durrant's user avatar
5 votes

How to handle “fake” unit tests that don’t really test anything?

I believe that the strongest instrument for filtering such a-low-quality tests is a code review. You can power-up your code review with mutational testing techniques which will help you to detect the ...
Alexey R.'s user avatar
  • 11.6k
4 votes

What is exact difference between TDD and BDD?

Adding my view points here. TL;DR : BDD focuses on the behavioural aspect of the system rather than the implementation aspect of the system that TDD focuses on. BDD gives a clearer understanding as ...
demouser123's user avatar
  • 3,532
4 votes
Accepted

Why does the test always fails at the start in TDD?

D) There is no code This is the one and only correct answer because the idea of TDD is that you only implement code for which you have a failing test. It prevents you from implementing things you do ...
Niels van Reijmersdal's user avatar
4 votes

Will writing unit tests block developers from coding?

Unit tests should be written by developers. Unit tests are very close to the core code and developers have intimate knowledge of how units should work. testers are usually more removed from the deep ...
Peter M. - stands for Monica's user avatar
3 votes

How do I build a personal project big enough to learn from automated testing it?

To learn TDD I suggest doing a kata everyday. Start with the String Calculator Kata and do it test-driven. The coding dook handbook has loads more example kata's to practise and learn the following ...
Niels van Reijmersdal's user avatar
3 votes

Importance of using TDD with Selenium/Webdriver

Test-Driven Development is a way of of developing software, its a practise. It is a process you can follow. You write a failing tests and implement just enough code to make the test pass, afterwards ...
Niels van Reijmersdal's user avatar
3 votes

Can we use java to design specflows?

Use cucumber. Specflow is a part of cucumber family that is developed for .Net world. So if you do not need .Net but need Java, just use the solution that was originally intended for Java
Alexey R.'s user avatar
  • 11.6k
3 votes

Design test class dependent on current datetime, 24 hours a day, seven days a week

You can use some Boundary Value Analysis to filter out the list of test cases. You would probably do a better risk analysis than anyone else in this case, but I can imagine the following as the ...
João Farias's user avatar
  • 10.5k
2 votes

Will writing unit tests block developers from coding?

Testing is coding! Or at least it should be in most environments today. Automation code that supports application can be hard to get right. However it shouldn't be seen as 'optional' and separate from ...
Michael Durrant's user avatar
2 votes

Will writing unit tests block developers from coding?

Let me answer your queries in a different way i.e. not by looking at the number of testers and developers and how to utilise them during the initial phases of development cycle. TDD and TFD tries to ...
AM_Portfolio Lead_DigitalE's user avatar
2 votes

Should I write a small test for every ticket / defect?

Just like with everything else in IT - it depends. Depends on whether the bug can be easily reproduced, it depends on how severe this bug is, depends on the chance of the bug reappearing again ...
GregK's user avatar
  • 21
2 votes

How do I build a personal project big enough to learn from automated testing it?

These are my recommendation to be a QA/ Testing Learn about the concepts of Testing. Try to understand why using examples in daily life. Read about QA & Testing. There are a lot information in ...
Ilse Macías's user avatar
2 votes

How do I build a personal project big enough to learn from automated testing it?

@Frank I think for most successful new testers the testing mindset usually precedes a lot of the technical skill depth. When I talk to people starting their testing careers one of my go-to speeches ...
Cherree's user avatar
  • 1,189
2 votes
Accepted

Given When Then - is one 'then' per test acceptable usage?

One assertation ('then') per test is a good thing and generally considered a best practice. It may seem a bit wordy and long but the idea is that when it fails you know exactly and specifically what ...
Michael Durrant's user avatar
2 votes

How do I build a personal project big enough to learn from automated testing it?

Need to do following: Learn Phases of software development Need to learn why testing is necessary Need to think logically where ans what functionality of an software should have and is software ...
iamsankalp89's user avatar
2 votes

How to handle “fake” unit tests that don’t really test anything?

Some things which seem to have worked for the teams I've worked in: Get permission, record what you do of the below, then present the final result to your colleagues to get them interested in ...
l0b0's user avatar
  • 468
2 votes
Accepted

How to handle “fake” unit tests that don’t really test anything?

Recognize that there is a large organizational problem. Management have to change and give true leadership Talk to management about: quality developer morale developer training & education The ...
Michael Durrant's user avatar
2 votes
Accepted

Can TDD be a tester task?

define 'normal' More seriously, writing (failing) tests before writing code is the essence of TDD and BDD. It means designing the tests and then testable code. The result of writing (failing) tests ...
Michael Durrant's user avatar
1 vote

How do I build a personal project big enough to learn from automated testing it?

To become a professional tester you have to keep a note on the below: Should be Passionate about Testing. Attitude to break the code. Analytical and Logical skills. Think like an End user while ...
Bhavani's user avatar
  • 724
1 vote

How to fetch data from excel sheet in selenium web driver?

In order to accomplish this, you would need a function to read from the excel file. I am using such function for my testing. You might have to make some minor tweaks in order to make it fit for your ...
Aalok's user avatar
  • 1,722
1 vote

Correct aproach to test this method

The purpose of unit testing is to validate implementation. Behavior (what the end user sees) is validated in higher levels of testing. Your unit tests are good if them have good mutation coverage, i....
João Farias's user avatar
  • 10.5k
1 vote

Why does the test always fails at the start in TDD?

TDD, test driven development. From my personal experiences, it has the following characteristics: Development starts the same time with test developments, from the very beginning of development cycle ...
Yu Zhang's user avatar
  • 9,922
1 vote

What is the correct, conventional name for a test written via BDD

It could be called a Feature test or a "functionary test" as well. Feature: a distinctive attribute or aspect of something. Functionality: the quality of being suited to serve a purpose well; ...
Yu Zhang's user avatar
  • 9,922

Only top scored, non community-wiki answers of a minimum length are eligible