unit test

Archi & Techno

Vue.js unit test cases with vue-test-utils and Jest

This article describes test contexts, from common to more complex ones, on a Vue.js stack. You may read TDD with Vue.js article as an introduction, which is mainly focused on methodology (Test Driven Development). This current article describes a wider range of test contexts based on Vue.js, using vue-test-utils helpers and the Jest testing framework.   1/ Jest Jest is a testing framework developed and used by Facebook to test JavaScript code. Its main goal is to simplify test configuration. It integrates most of the…

Lire la suite
Archi & Techno

Android Testing :: testing private methods

span.code { font-family: monospace; font-size: 1.2em; } This article is about testing private methods in android. This is a fairly common problem in android (even in Java at large) and can be solved easily. The technique proposed here provides the additionnal benefit of using a traditional way of solving the problem in the Java world. (suspense :) ) Using the android platform, you are used to divide your application into two projects : one for the main source code of your application, one for the tests

Lire la suite
Archi & Techno

iOS dev: How to setup quality metrics on your Jenkins job?

iOS development projects are not first-in-class when it comes to managing the quality of the software produced. Very short projects, very short time-to-market, it is not the kind of projects where you see a lot of attention towards quality, unfortunately. Here at OCTO we try to do it differently, even for this kind of projects. Or above all, for that matter. But here comes another issue: the lack of tooling. Here is one of our latest attempt to setup quality metrics on a short and…

Lire la suite