Questions tagged as 'tdd'

1
answer

Error accessing input fields with cucumber + capybara

I was writing my steps for my tests with Cucumber and they are not finding it the ids , labels or names of the forms. I've looked at various tutorials on the internet and my problem is really strange, because in all cases the problem is...
asked by 25.03.2014 / 13:38
1
answer

Unit test of a javascript fetch function with jest or mocha

I'm starting TDD studies and came across a function like this: const fetchexample = callback => { fetch('/token', { method: 'POST', body: 'user=teste' }).then(res => res.json()).then(json => { localStorage.setItem('tok...
asked by 09.11.2017 / 12:56
0
answers

How to do TDD Cobol? [closed]

I'm having a task in my company that I'm feeling extremely difficult, I have to perform a TDD with Cobol. I would like some recommendations on tools, IDE, process that makes me do this activity and also know if it is really possible to do TDD wi...
asked by 17.04.2018 / 12:17
1
answer

RSpec - Testing feature failing because elements are not rendered in test execution

I have a test feature that fails because at the time it runs some HTML elements ( <li data-podcast> ) have not yet been rendered. Does anyone know how I can fix this? RSpec.describe 'Podcasts List', type: :feature do scenario...
asked by 05.08.2017 / 03:31
0
answers

Error when using TDD with Ruby

Hello, I'm starting to study about TDD with Ruby on Rails and I'm following a tutorial from Nando Viera [ 1 ], but when trying to execute a rake: test: units the following error is returned: UserTest#test_truth: ActiveRecord::StatementInval...
asked by 30.11.2015 / 01:26
1
answer

Delphi Unit Test

I'm implementing DUnit in the company and my question is this: is there any way to do the click of the button for a "ShowMessage" of a form I get, but I would like it when the showmessage window appears, I could program the click of this button...
asked by 17.11.2015 / 12:11
0
answers

How does mock in integration tests work? [closed]

How to use mock in my integration tests?     
asked by 07.10.2015 / 18:59
1
answer

Which framework do you recommend for unit testing in javascript (ECMAScript 6)?

I will develop a web application using ECMAScript 6. I would like to continue with the TDD Technique. What framework do you recommend for unit testing in javascript (ECMAScript 6)?     
asked by 16.06.2017 / 21:23
1
answer

How to test the creation of an obj and method call in a servlet?

I am trying to create a web application using TDD, however, I am having a question about how to test the Servlet that processes the requests and calls the proper logic, I do not know how to do assert . @Test public void deveCriarInstacia...
asked by 11.06.2014 / 15:49
0
answers

Starting factory with static object.

I'm creating an application using TDD and I have a factory that receives IDistributedCache parameter, so it comes inject from my API, how do I start a value for it and pass as parameter to my constructor?     
asked by 17.07.2018 / 20:54