An open API service indexing awesome lists of open source software.

Unit testing

Unit testing is a type of software testing that focusses on testing small units (usually the lowest common denominator) instead of whole processes. This makes more tests necessary but their successful executing makes pinpointing actual successful code easier.

https://github.com/hashimsaffarini/doctor_app

The doctor system is a flutter application for booking appointments with the doctor and some additions that facilitate dealing with the doctor’s office

ci-cd clean-architecture flavors restful-api sharedpreferences shimmer unit-testing

Last synced: 11 Jul 2025

https://github.com/luismendes070/remove-nth-node-from-end-of-list

https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/

2024 cargo leetcode linked-list pull-request rust testing unit-testing vscode

Last synced: 29 Oct 2025

https://github.com/corocoto/test-mocks

Repo that contain mocks for unit-testing by Jest

jest jest-tests mock mocks testing unit-test unit-testing

Last synced: 15 May 2026

https://github.com/s0urcedev/utesting-py

Python module for unit testing

module python python3 testing testing-tools unit-testing

Last synced: 17 Jun 2025

https://github.com/muhammadarnaldo/laravel-backend-onlineshop

The backend API for Online Shop System using Laravel

api db-migration laravel online-shop postgresql unit-testing

Last synced: 19 Apr 2026

https://github.com/codeofnode/allrounder

It validate everything. From rest call to dbvalidation to system commands to unit tests. Just almost everything.

command db mocha-tests rest-api testing unit-testing

Last synced: 04 May 2026

https://github.com/mateusfonseca/dorsetmusiccollection

"Music Collection" Django web application developed for my CAs 1, 2 and 3 at Dorset College BSc in Computing, Year 3, Semesters 1 and 2.

discogs-api django django-security html-css-javascript mvt-architecture object-oriented-programming pycharm-ide python unit-testing webapp

Last synced: 17 Feb 2026

https://github.com/yadamvinay369/cve_server

Backend code providing APIs for CVE dashboard

api-rest cors expressjs jest mongoose mvc-pattern nodejs supertest unit-testing

Last synced: 14 Apr 2026

https://github.com/ososuna/testing-js

🧪 Testing with JavaScript course from Platzi

end-to-end integration-testing javascript jest testing uitest unit-testing

Last synced: 04 May 2026

https://github.com/vndg-rdmt/assertion-pipe

Typescript testing library with pipeline-like testing feature

assert assertion development-tools test testing testing-tools typecript unit-test unit-testing

Last synced: 10 Oct 2025

https://github.com/lenin-anzen/angularjs-karma-jasmine

Basic unit testing for an AngularJS app with Karma + Jasmine

angularjs express jasmine karma rest-api unit-testing

Last synced: 09 Apr 2026

https://github.com/hhhhhhhhhn/itworks

A simple node unit testing library.

node node-module nodejs unit-testing unittest

Last synced: 14 May 2026

https://github.com/davidstrada/phpunit

php unit test

php unit-testing

Last synced: 17 Jun 2025

https://github.com/keremersu35/soundwave

an iOS app that can play tracks from iTunes Search API

alamofire coredata ios swift ui-testing uikit unit-testing viper-architecture

Last synced: 12 Apr 2025

https://github.com/jmgogo/mocha-js

A demo for unit testing with the Mocha.js framework.

assertion-framework devcontainer javascript mocha-js node-js unit-testing

Last synced: 30 Apr 2026

https://github.com/kfsantos/go-api-books

REST API with unit tests and coverage percentage

api-rest api-testing coverage gin-gonic go golang gorm-orm json postgres testing unit-testing

Last synced: 14 Apr 2026

https://github.com/hudson-newey/ng-jasmine-async-wrapper

A simple wrapper for async functions in Angular + Jasmine

angular jasmine jasmine-framework jasmine-tests test testing testing-tools unit-testing

Last synced: 19 Jan 2026

https://github.com/viordash/atsplc

Miniature Autonomous Programmable Logic Controller

cpputest esp8266-rtos-sdk plc unit-testing wemos-board wemos-board-oled-18650

Last synced: 12 Apr 2025

https://github.com/khachornchit/selenium-net-quick-start

Selenium test development by using C#.NET

csharp oop-principles selenium-webdriver unit-testing

Last synced: 16 May 2026

https://github.com/mcloughlan/ArduinoUnitPlatformIO

My template for using ArduinoUnit unit tests with Platform IO

arduino embedded platformio unit-testing

Last synced: 29 Oct 2025

https://github.com/shnewto/assertlike

experiments with custom "is equal" assertions, scoped to test suites (i.e. not overwriting the type's compare)

assert avro charsequence custom custom-assert custom-equal custom-matchers encoding equality hamcrest java junit matchers string unit-testing utf8

Last synced: 04 Apr 2025

https://github.com/hlibpavlyk/chat-app

An application following Clean Architecture principles, featuring a DDD (Domain-Driven Design) chat system using ASP.NET Core, Entity Framework Core, and SignalR, with CRUD operations, real-time messaging, and comprehensive testing

asp-net-core clean-architecture ddd-architecture integration-testing signalr unit-testing websocket

Last synced: 17 Jun 2025

https://github.com/niels-bosman/sorting-algorithms

Sorting algorithms performance tests using TypeScript.

bubble-sort quicksort sorting-algorithms typescript unit-testing

Last synced: 12 Oct 2025

https://github.com/wibosco/viewinspector-example

An example project using ViewInspector to test SwiftUI screens

swiftui unit-testing

Last synced: 16 May 2026

https://github.com/oliverspryn/android-unit-tests

Companion code for my Medium.com article: Writing a Fully Unit Testable Android App

android coverage dagger2 example jacoco junit medium-article unit-testing

Last synced: 16 May 2026

https://github.com/tankist/codeception-profiler

Codeception extension used to profile unit tests

codeception codeception-extension codeception-profiler php unit-testing

Last synced: 06 Mar 2026

https://github.com/nikhilsarvaiye/react-forms-validations

React Forms is a React starter and wrapper library around React Formik library and Yup validator with custom Form and Field implementation

boilerplate cache form formik handler jest layout querystring react scss starter-kit theme unit-testing validation webpack yup

Last synced: 08 Apr 2026

https://github.com/asrieldreemurrgm/jest_testing_practice

Practice project for testing components and user interactions using React, Redux, and Jest.

frontend react react-testing-library redux testing typescript unit-testing

Last synced: 20 Apr 2026

https://github.com/akram-sakib/javascript-testing

Experimenting JavaScript testing by using Vitest

javascript testing unit-testing vitest

Last synced: 13 Oct 2025

https://github.com/ryangoodwindev/mcwrapper.rpc.tests

Unit tests for proofing the MCWrapper.RPC project.

mcwrapper-rpc unit-testing

Last synced: 13 Oct 2025

https://github.com/ryangoodwindev/mcwrapper.tests

Unit tests for proofing the MCWrapper project.

mcwrapper unit-testing

Last synced: 13 Oct 2025

https://github.com/ryangoodwindev/mcwrapper.cli.tests

Unit tests for proofing the MCWrapper.CLI project.

mcwrapper-cli unit-testing

Last synced: 13 Oct 2025

https://github.com/oliverspryn/gradle-slack-plugin

A Gradle plugin which reports build errors, JUnit tests, and Jacoco coverage reports to a Slack channel

coverage gradle gradle-plugin jacoco junit slack unit-testing

Last synced: 16 May 2026

https://github.com/pratyush1606/factwise-work

This repository contains all the materials of my first internship. This was as a Backend Engineering Internship.

django-rest-framework jwt-authentication unit-testing

Last synced: 04 Apr 2025

https://github.com/michalzagrodzki/simple-vue-app

Simple web app presenting use of Vue.js technology.

ci-cd circleci flex-box javascript netlify sample-project unit-testing vue vue-router

Last synced: 16 May 2026

https://github.com/yvanmazy/concurrent-testing

Minimal Java library to create concurrency tests.

concurrency java lightweight unit-testing

Last synced: 03 Apr 2025

https://github.com/bell-kevin/testingrandomnumbers

Testing Random Numbers Project SDEV 1060 Project. A senior developer is working on a project and has asked you to do some testing for him. One of the methods in his project creates a random number between supplied minimum and maximum values. He has written the method that will create that random number, run it a few times, and thinks it looks good, but just to make sure, he has asked you to thoroughly test the method. That method looks like this: In Java: public static int getRN(int min, int max) { Random rng = new Random( ); int answer = rng.nextInt((max - min + 1) + min); return answer; } In C#: public static int getRN(int min, int max) { Random rng = new Random( ); int answer = rng.Next(min, max + 1); return answer; } You put it into a small program to test it. Note that the program does not need any code in the main method, because you are this single method. Add it in the main class file, below the main method, not in a separate class. It would be a good practice to add code in the main class that asks the user for minimum and maximum values, or that has hard-coded min and max values, then calls this random number generator method, and displays the result. That is a good way to make sure the method runs as expected in your program and environment (it checks if you typed everything correctly). Since you are testing just the single method, and have no idea what it is being used for in the main method, there is no need for any code in the main method -- other than to test that your version of the method under test was typed correctly and will compile. In a test method, how can you assert that a random number is equal to a specific number? You can't, because the number should be random, so you can't predict the expected result. But you can assert that the random number falls within the range expected. You have written assertions with variables for expected and actual results, or literal values. You can also write expressions in the assertion. For example, if the method under test adds 2 numbers together and returns the sum, you could write an assertion like this: (Java) assertEquals(n1 + n2, actualResult) or (C#) Assert.AreEqual(n1 + n2, actualResult) The phrase "n1 + n2" is an expression that calculates the expected result in this example. Another example is checking for valid input, where the input number needs to be between 1 and 100 inclusive -- that means 1 and 100 are both valid results. How would you write that code to validate the input? It could look like this: if (inputValue >= 1 && inputValue <= 100) { do something } You can use that same type of expression in an assertion. That test would look like this as an assertion: (Java) assertTrue(inputValue >= 1 && inputValue <= 100) (C#) Assert.IsTrue(inputValue >= 1 && inputValue <= 100) If the relational tests (input value is greater than, equal, less than, etc) and the relational test (AND) are all true, the assertion passes, which means that the input value is valid, in this example. For random numbers, you can't specify an expected result, but you can check that the result is within the acceptable range. If it is true that the random number falls in the range, then the method worked correctly. The "arrange" stage of this test needs to know the range for the random numbers. What is the "act" stage of this test? You need to run the method from the other developer (above) and get the result, the random number. You learned how to test a static method in a previous assignment; you will do the same here. The method being tested returns the random number, which is the "actual" value that needs to be compared to the "expected" value. In this case, you will need to check if the random number falls within the expected range. For this assignment, that range is the numbers 20 to 29 inclusive. What is the "assert" stage of this test? You will assert that it is true that the actual result from the method is within the range. Be sure to add the optional message that will display if the test fails, and have it display the generated random number, which isn't in the range and caused the test to fail. Make sure you type the method exactly as you see it above as the static method in the main class. For this assignment, you want 10 possible random numbers starting at 20, so the possible numbers are 20, 21, 22, 23, 24, 25, 26, 27, 28, 29. Run this test. Does it pass or fail? The programmer who gave it to you said he had run it a few times and it looked good. Does it? If it does, will it suffice to run it a few times? No, that is not at all thorough for testing the happy path and edge values -- you have no way of being sure the edges were ever tested with random numbers. You need to test it many many times, repeatedly calling the random number method to check it. How do you get repetition in any program? Use a loop. A unit test is code just like all the code you've written in any program, with the addition of the Assert methods. You know how to write loops, you can add a loop within the unit test method. As part of the act step, use a For loop that runs many times (20 or 500 or 1,000 times, whatever seems appropriate); inside the loop, run the test you just created, where it calls the method and then asserts that it is true that the result is within the range given. If you have a bunch of assertions, if any one fails, none of the following ones will run. If you use a loop of 20 executions of the test, and it fails on the first one, it didn't run any others. You will not see reports like "passed 10 and failed 10" -- if it fails once, it's over. You have to keep fixing and running the code until all tests are successful. Run the test 200 times in a loop, to test the method multiple times. When you run the test, it should fail, there is an error in that code. See the discussion below to figure out the problem, fix it, and test it again. Keep working on it until all the tests are successful. Then run the test 5,000 times, to make sure it works as it should. Take a screenshot of your fixed code for the method, of your test code, and of the last successful test that ran 5,000 times. Submission: screenshots specified and the root folder for the project Discussion Random numbers have a minimum and maximum value. In some languages, you need to specify the number of numbers (Java) or scope (C#) and the starting value (Java) or shift (C#). The methods above have a phrase to get the number of numbers -- max - min + 1, that seems like it would be appropriate. In Java: The formula for generating random numbers is rng.nextInt(number of numbers). If there is a starting value, such as 1 or 50 or whatever, it needs to be added to the random number. So the formula for Java is: startingValue + rng.nextInt(number of numbers). It could also be written with the starting value at the end: rng.nextInt(number of numbers) + startingValue. Look carefully at the pattern provided above: rng.nextInt ( (max - min + 1) + min ) If we resolve some of that code, do the math in the inner parentheses, it becomes rng.nextInt ( (num) + min ) Once the math inside the inner parentheses is done, we can drop those parentheses, and this becomes rng.nextInt ( num + min ) which becomes rng.nextInt (someNumber) There is no term for the starting number to be added to this random number -- it was used inside of the parentheses for the parameter for rng.nextInt(). In the formula above, the number of numbers, inside the parentheses that follow rng.nextInt, does more than provide the number of numbers, it also adds the min or starting point to that number of numbers. If the random number generator is supposed to use 10 numbers that start with 20, that would be the numbers 20, 21, 22, 23, ... 29. The formula above says that the number of numbers is that 10 plus the min value of 20, so the number of numbers is now 30. And there is no starting value, so the random number generator will create a number from 0 to 30. Thus it is possible to get numbers that are less than the intended starting point of 20, and one higher than the intended max value of 29. How do you fix that pattern so the parameter for rng.nextInt() has only the number of numbers in it, and the starting value is separate, added to that random number? In C#: The pattern for random numbers in C# is a little different from the pattern for Java. They are so similar in so much code, but there is a difference for creating random numbers. There are several patterns, but the one intended here is: (int) rng.Next(starting value, ending value + 1) The rng.Next() method always returns a double, so it must have the cast to an integer at the beginning. There are 2 parameters, the shift (starting or min value) and the scope. That scope or max value will never be included in the possible random numbers, hence the "+1" in the pattern. If the code was: (int) rng.Next(20, 30) it would create a random number with the smallest possible number of 20 (the starting point) and the highest number will be 29, because it cannot go to 30. That value of 30 is the next integer after the highest one allowed. So this pattern also uses min and max values, but the shift and scope are represented differently. If min is 20 and max is 30, look at how the code provided works out: (int) rng.Next(max - min + 1, min) becomes (int) rng.Next( 30 - 20 + 1, 20) which becomes (int) rng.Next(11, 20) That means that the smallest number can be 11, and the largest number is one less than 20, or 19. The range of 11 to 19 is nothing at all like the intended range of 10 numbers starting at 20, or 20 to 29. None of the values generated with that pattern in the code provided would be valid. How do you fix the pattern in the code provided above? == We're Using GitHub Under Protest == This project is currently hosted on GitHub. This is not ideal; GitHub is a proprietary, trade-secret system that is not Free and Open Souce Software (FOSS). We are deeply concerned about using a proprietary system like GitHub to develop our FOSS project. We have an [open {bug ticket, mailing list thread, etc.} ](INSERT_LINK) where the project contributors are actively discussing how we can move away from GitHub in the long term. We urge you to read about the [Give up GitHub](https://GiveUpGitHub.org) campaign from [the Software Freedom Conservancy](https://sfconservancy.org) to understand some of the reasons why GitHub is not a good place to host FOSS projects. If you are a contributor who personally has already quit using GitHub, please [check this resource](INSERT_LINK) for how to send us contributions without using GitHub directly. Any use of this project's code by GitHub Copilot, past or present, is done without our permission. We do not consent to GitHub's use of this project's code in Copilot. ![Logo of the GiveUpGitHub campaign](https://sfconservancy.org/img/GiveUpGitHub.png)

datc davis-tech davis-technical-college kaysville object-oriented-programming random-number-generator sdev unit-testing utah

Last synced: 29 Oct 2025

https://github.com/henrikesilva/cashflow

API em .NET 8 criada para o gerenciamento de despesas pessoais com DDD, testes unitários e relatórios em PDF/Excel. Armazenando dados em PostgreSql

api-rest asp-net-core backend csharp entity-framework-core postgresql rocketseat solid-principles unit-testing web-api

Last synced: 24 Jan 2026

https://github.com/ricca509/test-scenarios

Run your tests with different data (scenarios)

jasmine javascript jest mocha unit-testing

Last synced: 14 Apr 2026

https://github.com/davidlj95/angular-18-cypress-jasmine-types

Minimal reproduction for JetBrains IDEs issue about unit test types and Cypress

cypress jasmine jetbrains-ides minimal-reproduction unit-testing webstorm

Last synced: 28 Mar 2025

https://github.com/kevintsengtw/dotnet-testing-agent-skills

AI Agent Skills for .NET Testing - Based on 30-Day Testing Challenge (iThome Ironman 2025 Winner)

agent-skills ai-assisted-development copilot-skills csharp dotnet dotnet-testing github-copilot integration-testing testing unit-testing xunit

Last synced: 11 Mar 2026

https://github.com/dracudev/js-testing

Analyzing a movie dataset with JS methods, plus unit tests for reliability.

array-methods dataset es6 javascript jest unit-testing

Last synced: 14 May 2026

https://github.com/ayushsoni1010/testing-a-react-application

This repository consists of how to implement unit testing, end-to-end testing and mocked services in a React application using Cypress, Vitest and MSW

cypress e2e e2e-testing msw test testing testing-framework testing-tools unit-testing vitest

Last synced: 14 Mar 2026

https://github.com/asepscareer/unit-testing

This is a simple explanation and implementation of Unit Testing.

junit5 mockito unit-testing

Last synced: 20 Mar 2025

https://github.com/diego3/telefonia

TDD, E2E, CI and REST - Web Project

api-rest continuous-integration e2e-test tdd unit-testing

Last synced: 18 Oct 2025

https://github.com/c-kiplimo/e-commerce-application-api

This Spring Boot project demonstrates the integration of Stripe payment in e-commerce application. It provides essential functionalities for handling transactions and creating checkout sessions, serving as a practical starting point for projects requiring secure payment processing.

api docker integration-testing java jenkins junit kubernetes mongodb spring-boot unit-testing

Last synced: 08 Apr 2026

https://github.com/adewija/mvpbarvolume

Application to count the value of bar volume using Model-View-Presenter (MVP) pattern.

android-application mockito mvp-pattern unit-testing

Last synced: 17 May 2026

https://github.com/felixojiambo/customer-order-system

Customer Order Management API: A service with REST APIs for managing customers and orders, featuring authentication, SMS notifications, and CI/CD setup.

azure cicd database django-rest-framework docker helm jwt kurbenetes openid-connect postgresql python sms-api unit-testing

Last synced: 05 Apr 2026

https://github.com/ayvero/testing

A simple Java project demonstrating unit testing using JUnit 4 and JUnit 5. This repository includes basic test cases to illustrate best practices for writing and running unit tests in Java.

java junit4 junit5 testing-tools unit-testing

Last synced: 03 Apr 2025

https://github.com/eliasnogueira/junit5-before-after-all

Project that shows how to deal with general pre and postconditions using JUnit5

integration-testing java junit junit5 system-testing test-automation unit-testing

Last synced: 19 Oct 2025

https://github.com/turskyi/stringcalculator

A simple Java program that evaluates mathematical expressions provided as strings. Demonstrates Test-Driven Development (TDD) with comprehensive tests using JUnit and Mockito.

java junit junit5 software-development string-calculator tdd test-driven-development unit-testing

Last synced: 27 Mar 2025

https://github.com/sancakerkan/atm-machine-unittesting

This repository contains unit tests for an ATM Machine simulation program written in Java. The main goal of this project is to practice writing assertion cases and creating test suites.

java junit junit5 maven software-quality-assurance testing unit-testing

Last synced: 16 May 2026

https://github.com/andresweitzel/microservice_openweather_nodejs_jest_aws

Microservice for the integration of the Open Weather API with focus on unit and integration tests implementing Nodejs, Jest, Serverless-framework, aws-lambda, api gateway, git, others.

api-gateway aws-lambda git integration-testing jest jest-tests nodejs serverless-framework unit-testing

Last synced: 05 May 2026

https://github.com/bethanyuo/truffle-deploy

Develop and Deploy Smart Contracts with Truffle.

smart-contracts truffle truffle-framework truffle-testing unit-testing

Last synced: 14 May 2026

https://github.com/jubayer98/a-simple-java-game-testing-using-unit-testing-functionality

In this simple bowling game, several test cases are created to verify the code's functionality and identify any bugs, ensuring the system operates as intended.

software-testing unit-testing

Last synced: 23 Oct 2025

https://github.com/cba85/jest-jwt-auth-tests-example

🎓 Jest tests example for a API using JWT authentication (register, login)

api bcryptjs express integration-testing jest jwt supertest unit-testing zod-validation

Last synced: 05 May 2026

https://github.com/jaffar-hussein/password_generator

A simple python application that runs on the terminal that allows the user to create an account and login with their credentials.This app allows the storage of existing account information and also auto generate passwords and create new account credentials

python-3 unit-testing

Last synced: 24 Oct 2025

https://github.com/asergioscosta/java-unit-tests

Java unit test examples using JUnit and best testing practices.

java junit test-automation unit-testing

Last synced: 27 Mar 2025

https://github.com/herikerbeth/personal-blogging-platform-api

This is a RESTful API for a personal blogging platform. It allows users to create, read, update, and delete blog posts. The API is built with Java and Spring Boot to create the server, Spring HATEOAS to write hypermedia-driven outputs, and uses PostgreSQL for data storage.

api backend java java-spring junit unit-testing

Last synced: 17 Mar 2025

https://github.com/sharpwit/react-testing-mosh

React Testing Library with Vitest / Jest.

react react-testing typescipt unit-testing vitest

Last synced: 11 May 2026

https://github.com/ztlaine/assignment7

Unit testing a custom data structure using Java.

data-structures java junit unit-testing

Last synced: 17 Mar 2025

https://github.com/ztlaine/assignment13

Banking app utilizing Maven, Springboot, Hibernate, MySQL, and Thymeleaf, written using Java and HTML. Testing done with Junit.

hibernate hibernate-orm html java junit maven mysql springboot thymeleaf unit-testing

Last synced: 13 Apr 2026

https://github.com/ledsouza/django-api-escola-02

Este projeto implementa uma API REST completa para gerenciar dados de uma escola fictícia, desenvolvida durante o curso de Django REST Framework da Alura. A API fornece acesso a informações sobre alunos, cursos e matrículas, além de implementar recursos avançados como cache com Redis e tradução personalizada.

django django-rest-framework python redis unit-testing

Last synced: 26 Oct 2025

https://github.com/ztlaine/multithreading-with-asychronous-calls

Asynchronous data evaluation using Java.

async java multithreading unit-testing

Last synced: 17 Mar 2025

https://github.com/samuelematias/calculator_app

🧪 A simple Flutter app with several unit tests, widget testing, and integration tests/e2e.

dart e2e-testing flutter integration-testing unit-testing widget-testing

Last synced: 15 May 2026

https://github.com/amitkannaujiya/gotrainbookinggrpcserver

This Repo will have a golang grpc server which will expose protobuf api for the train ticket booking .

api go-patterns golang grpc-server unit-testing

Last synced: 01 Apr 2025

https://github.com/iamigi/sentiment-analysis

Sentiment analysis frontend app built with Svelte, TypeScript, and SCSS. It allows users to input a short text and analyze its sentiment (positive, neutral, or negative) using the Hugging Face Inference API.

husky scss-styles sveltekit typescript unit-testing

Last synced: 24 Jan 2026

https://github.com/mindlessmuse666/apartment-price-predictor

Python-проект по прогнозированию стоимости аренды квартир с помощью линейной регрессии. Практическая работа по теме: "Основы машинного обучения" дисциплины "МДК 13.01: Основы применения методов искусственного интеллекта в программировании".

apartment-price-prediction data-analysis data-science linear-regression linear-regression-models machine-learning matplotlib python regression sklearn unit-testing

Last synced: 11 Apr 2026

https://github.com/konsulting/exposer

Access non-public methods and properties on classes.

php reflection testing unit-testing

Last synced: 29 Jan 2026

https://github.com/jmakeig/mltap

A JavaScript test harness for MarkLogic that (roughly) implements the Node.js tape API

marklogic tap test-harness unit-testing

Last synced: 06 Feb 2026