Questions tagged as 'tdd'

1
answer

Is it correct to throw the same exception for two different reasons?

I'm practicing TDD simulating a central alarm. Alarm centrals work connected to sensors that detect intrusion (opening a door or window, or moving inside a room, for example). They have a fixed number of logical partitions (representing differen...
asked by 03.07.2016 / 00:44
2
answers

What is BDD and what is its relationship to TDD?

In the web , when we search for TDD , sometimes we also come across the abbreviation BDD . What is Behavior Driven Development (BDD) ? What is your relationship with Test Driven Development (TDD) ?
asked by 15.07.2014 / 13:09
1
answer

TDD and Unit Test, both are the same thing and have the same purpose?

When I read about TDD (Test Driven Development) it is related to Unit Test , this makes me believe that TDD is the same as Unit Test , and I do not know if this definition of mine is correct in my point of view. Maybe I'm confusing terms a...
asked by 26.05.2016 / 00:04
1
answer

What tools are available for .NET code coverage in Visual Studio?

I have developed systems using TDD in .NET. Recently, the company that worked, bought the version of Visual Studio 2013 Pro and in this version we do not have the code coverage tool, only from the Premium version (visual studio compare versions...
asked by 25.10.2014 / 19:47
2
answers

How to create a test with RSpec to check the return of users?

This describe below is the default that Rspec creates. I have a hard time working with TDD ( Test Driven Development ) and it is complicated to understand the whole procedure. For example, I need to test that when accessing the index...
asked by 14.01.2014 / 14:31
1
answer

What is Feature Driven Development (FDD)?

I was researching on BDD, TDD and DDD and came across FDD (Feature Driven Development), after all: What is FDD? Does it have any relationship to BDD, TDD, and DDD?
asked by 17.08.2018 / 18:42
3
answers

How to compare 2 Arrays with Assert.Equals?

I need to compare two arrays in Assert.Equals . When I test the method on the race, it is correct but the test does not pass. Code: public void SeparaStringTest() { RecebeComando recebecomando = new RecebeComando(); string[]...
asked by 16.03.2017 / 13:07
3
answers

How to perform TDD using Hibernate

I would like to know how to do TDD using Hibernate . I was informed that this ORM stores memory before writing to the possible, so I wanted to know how to test a data that is in memory. For example: do I execute the save command and test to see...
asked by 19.02.2014 / 23:33
3
answers

How do I work with tests and fixtures on a database that contains foreign key constraints in Rails?

I am using RubyOnRails 4.1 and PostgreSQL database and I use gem foreigner to create foreign key constraints in the bank. It turns out that this makes some tasks difficult with fixtures . When I try to run a test: spring rake test I...
asked by 21.08.2014 / 13:43
2
answers

TDD with micro services

I have two micro services one depends on the other, the micro service B depends on A. I wrote tests for A and B. The test of A wheel without relying on any other project, but the Tests of B needs some actions that only A can do. For example:...
asked by 05.07.2018 / 16:33