Skip to content

Hubtel Automated Software Testing

At Hubtel, automated software testing is a crucial component to delivering quality software to our customers. It involves writing code that tests other code, ensuring that software behaves as expected and is free from bugs. Two common types of automated tests we have adopted in our engineering culture are Unit Tests and Integration Tests. This document provides an introduction to these concepts and how to implement them.

TL;DR

Hubtel emphasizes automated software testing to ensure quality. This involves:

  1. Writing code to test other code, focusing on:

    • Unit Tests: Testing individual components in isolation.
    • Integration Tests: Testing interactions between components.
  2. Understanding key differences between these tests, including their focus, purpose and environment for each of the test types.

  3. Utilizing training resources such as Dometrain materials on testing, Hubtel Academy courses and Hubtel's Automated Testing Guidelines.

What is Unit Testing?

Unit testing is the process of testing individual components or functions of a software application in isolation from the rest of the application. The goal is to verify that each component behaves correctly under various conditions.

What is Integration Testing?

Integration testing focuses on verifying that different components or modules of the application work together as expected. It is a step above unit testing, where the interactions between units are tested.

Differences Between Unit Testing and Integration Testing

AspectUnit TestingIntegration Testing
FocusTests individual components in isolationTests interactions between integrated components
PurposeEnsures each component works as expectedEnsures combined components work together correctly
EnvironmentUses mocks and runs in isolationRuns in a realistic environment with actual dependencies

Training Resources

Before getting started with writing tests, ensure that you have the following in place:

  • Familiarity with various testing concepts.
    • Download and review this training material from Dometrain on Testing
    • Install http-server on your machine
    • Open the directory containing the extracted Build folder
    • Run the project with http-server
      bash
      http-server
  • Take the Hubtel Academy courses on testing:
    • Contact your supervisor or the People Team to be assign the testing learning path. This includes a comprehensive overview of the various testing standards enforced in Hubtel (Unit Testing/Integration Testing).
  • Review Hubtel's Automated Testing Guidelines