testes-unitários

Unit test with JUnit for System Default routines

I have a Java code that checks if there are standard categories registered in the bank, if yes it returns true, if not it ret ... not query the bank. I want to know if my test, this reasonably good, and on what I can improve to make it more consistent.

Is unit testing a generic term? What types are there? And what ways to apply?

Unit test is a generic term for any test of an independent part of a program? Or is it a unique term for object-oriented par ... stions): What is the difference between unit test and integrated test What are Unit Tests for and what are the advantages?

Static properties and memory release

I am having some doubts regarding releasing the features for cases where my modifiers are static. My Project is unit test a ... ase after execution? Should I keep track of all objects loaded in memory at runtime and their respective releases? Have how?

TDD and unit test, are both the same thing and have the same purpose?

Always when I read about TDD (Test Driven Development) it is related to unit test, it makes me believe that TDD is the sam ... D and unit test distinct things? If so, what are the differences between they and what is the purpose of each in particular?

Testing interaction with html and JavaScript using Jasmine is wrong?

JavaScript code has some interactions with html like this example: function retornaListaDeItens(argument) { return docume ... "item"; var list = retornaListaDeItens(item); console.log(list.length); expect(list).not.toBeLessThan(0); });

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

this question already has answers here : ... at some tutorials, I came across a term called TDD. What becomes TDD? And what is its usefulness in day-to-day programming?

How to refactor legacy JS to implement unit tests?

I have a WordPress site with a lot of JS files that were not structured to be tested - they were not written as modules that ... Testes para arquivo.js", function() { it("testes do metodo X", function() { expect(true).toBe(true); }); });

What is the difference between mock & stub?

in what situations should it be used? What is the difference between them?

Instantiate class with Dependency Injection using Kotlin in unit tests

I am trying to find a solution of how I can instantiate a class that uses dependency injection in unit tests using Kotlin and ... ;3.2.0</version> <scope>test</scope> </dependency> The version of my Kotlin is 1.3.41 .

Promisses test in AngulaJS application using Karma and Jasmine

Hello, I have an application in AngularJS and I wanted to ensure the quality of my code by doing unit tests and I am using ... ce : projetoService }); })); it('Teste AbreLink()...', function () { var id = "1"; vm.abreLink(id); }); });

Error in Angular asynchronous test with Jest

I want to test a service with jest, but I'm having trouble testing an asynchronous function that gives a get in my api. The e ... []; documentos = await documentosService.listarDocumentos(); expect(documentos.length).toBeGreaterThan(0); }) });