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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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
...
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;
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
tdd × 49automated-testing × 12
unit-tests × 11
bdd × 8
agile-testing × 4
legacy-system × 4
selenium-webdriver × 3
learning × 3
integration-testing × 3
java × 2
test-design × 2
javascript × 2
cucumber × 2
agile × 2
specflow × 2
manual-testing × 1
jmeter × 1
selenium2 × 1
c# × 1
test-automation-framework × 1
tools × 1
qa-developer × 1
interview × 1
bug-report × 1
junit × 1