Questions tagged as 'tdd'

1
answer

Web Service Testing with Arquillian

I'm doing a unit test class and I'm using Arquillian because of the CDI, in this case I'm testing a Web Service for authentication of company users. Here is the source of the test class: @RunWith(Arquillian.class) public class UsuarioWebServic...
asked by 12.03.2014 / 19:11
2
answers

Is there a way to implement an interface in a class of a DLL that I can only read?

I'm using a DLL that has several classes. I would like to dynamically implement interfaces for these classes, so that I can perform unit tests by doing mock of them. Is there any way to do this? Example: The DLL has a class Comunic...
asked by 03.11.2017 / 13:29
3
answers

Correct test for model (RSpec)

I created a test to validate my model and want to know if it is correct. describe Article do it "object article create is valid?" do article = Article.create article.title = "Title for Test" article.description = ""...
asked by 30.01.2014 / 14:50
1
answer

Working with Dates in JavaWeb

Hello, I'm doing a project that manages all the projects in my company, I'm using Hibernate, JavaWeb, primefaces, TDD and MVC standard . My entity is shaped like this for date variables: @Temporal(value = TemporalType.TIMESTAMP) @Colu...
asked by 22.09.2016 / 03:25
1
answer

Is it advisable to write automated tests for the user interface?

When it comes to unit testing and TDD, we usually think of so-called "business logic" tests, which are based on requirements, etc. But we also find examples of user interface testing on the web, especially on the web, but sometimes on the des...
asked by 12.09.2014 / 15:10
2
answers

Visual Studio Test Explorer does not find the tests

I'm having a problem with Visual Studio 2013, Test Explorer is not loading the tests at any time, either after Build or through Run Tests / CTRL+R, T . Does anyone have any clue what that might be? I have the following packages installe...
asked by 06.03.2014 / 18:20
3
answers

Is it recommended to test model validations?

My experience is with Ruby on Rails, but I think my question will fit into other cases. The ORM ActiveRecord (from Rails) allows you to validate in fields such as: Presence Uniqueness Size (of a string ) etc I'm in doubt wheth...
asked by 18.07.2014 / 13:07
2
answers

What is it and what is TDD for? [duplicate]

I was looking at PHPUnit - which is a unit testing framework. Taking a look at some tutorials, I came across a term called TDD . What is TDD ? And what is his use in the day-to-day programming?     
asked by 24.02.2016 / 19:47
1
answer

How to perform tests on private methods using Mockito

This weekend I read about Mockito and trial stunts, and the following idea came to me. Test private methods with this framework. I see that PowerMock performs this procedure, but has anyone tried to do this using Mockito...
asked by 18.08.2014 / 15:31
1
answer

Coverage of Unit Tests in Laravel

When starting a repository with a new Laravel 5.5 installation and configuring the test coverage and Coveralls for this, even though you have only done scaffolding of the framework authentication and have not written a single line of code, the r...
asked by 14.02.2018 / 17:31