Tutorials and resources on how to apply unit testing in software testing

Test Automation Starts with Unit Testing

September 25, 2017 0

Even if they are at the basis of the software testing pyramid and they are at the heart of the Test-Driven Development (TDD) approach, unit tests are still a controversial topic in software development and some people event consider that most unit testing is waste. In his blog post, Bas Dijkstra explains why he thinks that unit testing should be the basis of any solid automation strategy.

Unit Testing for C++

September 4, 2017 0

Even if C++ is less “trendy” that current web development languages like JavaScript, it is still a fundamental technology for many embedded software development projects. In his article, Diego Dagum provides some basic principles of testing in C++.

The Quirkier Side of Software Testing

June 21, 2017 0

Not all bugs are created equal. Sometimes quirks in the programming languages we use are to blame, and finding them has often stumped even the best programmers and testers. This talk explores the quirkier side of software testing by showing some hand-picked examples from many of the languages used everyday. Finally it will challenge you to try and guess the quirk as it presents a series of oddball examples found in languages such as C, Java, Objective-C, PHP, and everyone’s favorite – JavaScript.

Testing Angular Applications

June 7, 2017 0

The best reason for writing tests is to automate your testing. Without tests, you will likely perform software testing manually. This manual testing will take longer and longer as your codebase grows. This video presents how to test an Angular 2 application. Learn how to use to JavaScript open source testing tools: Jasmine, a Behavior Driven Development (BDD) testing framework for JavaScript, to unit testing components and Protractor, a testing framework for Angular and AngularJS applications, for integration testing. This presentation explores also coverage options and continuous integration tools.

An Overview of JUnit 5

May 29, 2017 0

JUnit 5 is the next generation of JUnit. The goal of this upcoming version is to create an up-to-date foundation for developer-side testing on the JVM. The evolution includes focusing on Java 8 and above, as well as enabling many different styles of testing. In his article, Nicolai Parlog explains how you should write tests with JUnit 5.

Unit Testing: Fakes, Mocks and Stubs

May 23, 2017 0

When you perform unit testing, there are many situations where you don’t have the full code or the right context that is needed to execute it. It might be that part of the code is not written yet or that you interact with an external system that is difficult to access or you don’t want to impact with unit tests. In these cases, you need to create a test double, an object that behaves like its production equivalent. In this article, Michał Lipski describes three types of test doubles – fake, stub and mock – and gives you examples when to use them in your unit testing.

Unit Testing Angular 2 with Jasmine

April 18, 2017 0

Jasmine is an open source behavior-driven development (BDD) framework for testing JavaScript code. Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript (JS) and other languages. In his article, Gerard Sans offers a presentation of Jasmine, discusses the unit testing of AngularJS and shares some Unit Testing recipes for Angular 2: Components, Services, Http and MockBackend, Directives, Pipes, Routes, Observables and EventEmitter.

1 2 3 4 5 27