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

Mock Python Mocking and Testing Library

May 5, 2014 0

In unit testing, you use mocks to simulate the behavior of other code parts in controlled ways. mock is a Python library for testing that allows you to replace parts of the system under test with mock objects and make assertions about how they have been used. mock has been integrated the Python standard library since version 3.3 under the name unittest.mock.

Testing Ember.js JavaScript Applications

April 17, 2014 0

Ember.js is an open-source client-side JavaScript web application framework based on the model-view-controller (MVC) software architectural pattern. It allows developers to create scalable single-page applications by incorporating common idioms and best practices into a framework that provides a rich object model, declarative two-way data binding, computed properties, automatically-updating templates powered by Handlebars.js, and a router for managing application state.

JavaScript Unit Testing Good Practices

April 10, 2014 0

This talk discusses common pitfalls in writing unreadable, unmaintainable unit tests in JavaScript. Some simple rules can keep you from tearing your hair out in anger three months from now, when things need to change.

Naming Conventions for JUnit

March 24, 2014 0

Finding common naming conventions for software development items (variables, classes, etc.) is a major factor to help people collaborate in software development projects. Finding good names is also good if you work on your own and have to revisit your code some months after you wrote it. In this blog post Frank Appel discusses his experience with naming JUnit tests.

TDD: Tell, Don’t Ask

March 13, 2014 0

Test driven development follow this pattern: Setup – Execute – Verify the new state. Asking the system under test for its new state has traditionally been done to check the new state. This can create problems with the Law of Demeter. The system under test knows unnecessary much about the objects it is collaborating with.

Unit Testing Mistakes

March 4, 2014 0

Unit testing seems to be the most natural way for programmers to test their own code. In this small blog post, Henrik Warne shares some of the issues that people have when they switch from manual testing to a unit testing framework like JUnit.

Unit Testing Web Applications with Intern

January 30, 2014 0

Intern is an open source software testing tool for Javascript. It runs tests using the browser or node.js and seamlessly integrates with SauceLabs or Selenium. You can write tests using object, TDD, or BDD styles and get full code coverage reporting with Istanbul. This article by Alvin Liu, Todd Kaplinger and Mingzhe Huang provides a presentation of Intern and explains how to use it to test web applications.

1 6 7 8 9 10 26