Skip to content

Latest commit

 

History

History
151 lines (126 loc) · 10.6 KB

unit-testing.md

File metadata and controls

151 lines (126 loc) · 10.6 KB

Bookmarks tagged [unit-testing]

https://www.xmlunit.org/

When testing XML your application creates, simple string comparisons don't cut it as there are many different ways the same XML content is serialized to a string. It doesn't even stop with serializati...


https://www.toptal.com/java/a-guide-to-everyday-mockito

In this article, we’ll cover creating and configuring mocks and using them to verify the expected behavior of the system being tested. We’ll also dive a bit into Mockito’s internals to better understa...


https://martinfowler.com/bliki/UnitTest.html

Unit testing is often talked about in software development, and is a term that I've been familiar with during my whole time writing programs. Like most software development terminology, however, it's ...


https://martinfowler.com/bliki/UnitTest.html#SolitaryOrSociable


http://calenlegaspi.blogspot.ch/2015/01/separating-integration-tests-from-unit.html

TDD at the Unit Testing level is fairly straight-forward, since classes in unit testing either do not have complex dependencies, or you mock-out the dependencies with a mocking framework (ex. Mockito)...


https://dzone.com/articles/writing-your-first-unit-tests

When writing unit tests in Java, stick to FIRST. Your tests should be fast, independent, repeatable, self-validating, and timely (unless you're using TDD).


http://azimi.me/2016/09/30/nyc-mocha-typescript.1.html

package.json + mocha.opts configuration to get mocha and instanbul running with typescript


https://istanbul.js.org/docs/tutorials/typescript/

Thanks to @mohsen1's post the following is the minimum recommended configuration to get accurate TypeScript coverage with mocha. With this…


https://semaphoreci.com/community/tutorials/best-practices-for-spies-stubs-and-mocks-in-sinon-js

In this article, we'll show you the differences between spies, stubs and mocks, when and how to use them, and give you a set of best practices to help you avoid common pitfalls.


http://chaijs.com/plugins/sinon-chai/

Sinon–Chai provides a set of custom assertions for using the Sinon.JS spy, stub, and mocking framework with the Chai assertion library. You get all the benefits of Chai with all the powerful tools of ...


https://www.npmjs.com/package/chai-as-promised

Extends Chai with assertions about promises.

You can write code that expresses what you really mean:


https://nodejs.org/api/assert.html

The assert module provides a simple set of assertion tests that can be used to test invariants.


https://gist.github.com/yoavniran/1e3b0162e1545055429e


http://sinonjs.org/

Standalone test spies, stubs and mocks for JavaScript. Works with any unit testing framework.


http://chaijs.com/

Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework.


http://mochajs.org/

Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate report...


https://www.codementor.io/davidtang/unit-testing-and-tdd-in-node-js-part-1-8t714s877

Testing is an important practice in software development to improve software quality. There are many forms of testing; manual testing, acceptance testing, unit testing, and a few others. In this post ...


https://github.com/node-nock/nock

nock - HTTP mocking and expectations library


https://blog.risingstack.com/node-hero-node-js-unit-testing-tutorial/

Learn what is unit testing in Node.js, and how to test your applications properly. This article is the 9th part of the Node Hero tutorial series.


https://alligator.io/angular/introduction-unit-testing/

It’s easy to get started with unit testing for Angular 2+ apps. If your projects was setup using the Angular CLI, everything will be ready for you to start writing tests using Jasmine as the testing f...


http://rbcs-us.com/documents/Why-Most-Unit-Testing-is-Waste.pdf

In the early days of computing when computers were slow, unit tests gave the developer more immediate feedback about whether a change broke the code instead of waiting for system tests to run. Today, ...