Does anybody know a simple algorithm for generating unit tests given a function's code?

This page summarizes the projects mentioned and recommended in the original post on /r/compsci

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • FsCheck

    Random Testing for .NET

  • Maybe something like QuickCheck, a quick search gave me this library for .NET https://github.com/fscheck/FsCheck

  • algebra-driven-design

    Source material for Algebra-Driven Design

  • This reminds me of QuickSpec (different from QuickCheck) in Haskell. It takes Haskell code and finds the Mathematical laws that the code supports. It does this using a sort of smart random search. I learned about this as part of the Algebra Driven Design book.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • EvoMaster

    The first open-source AI-driven tool for automatically generating system-level test cases (also known as fuzzing) for web/enterprise applications. Currently targeting whitebox and blackbox testing of Web APIs, like REST, GraphQL and RPC (e.g., gRPC and Thrift).

  • Automated White-box test generation software: * https://github.com/EMResearch/EvoMaster -- for integration tests. * https://github.com/se2p/pynguin, https://pynguin.readthedocs.io/en/latest/user/quickstart.html -- unit test generation for python

  • pynguin

    The PYthoN General UnIt Test geNerator is a test-generation tool for Python

  • Automated White-box test generation software: * https://github.com/EMResearch/EvoMaster -- for integration tests. * https://github.com/se2p/pynguin, https://pynguin.readthedocs.io/en/latest/user/quickstart.html -- unit test generation for python

  • tcases

    A model-based test case generator

  • Black-box test case generation software: * https://github.com/Cornutum/tcases

  • methods2test

    methods2test is a supervised dataset consisting of Test Cases and their corresponding Focal Methods from a set of Java software repositories

  • Datasets: * https://github.com/microsoft/methods2test -- dataset of Java code and unit tests -- so one may used supervised learning to generate tests. Similar dataset may be available at your company for ABAP, and you may try training an encoder-decoder / transformer model for test case generation.

  • austin-sbst

    Automatically exported from code.google.com/p/austin-sbst

  • The AUSTIN Project

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • EvoMaster 2.0: A Fuzzer for generating JUnit tests for REST, GraphQL and RPC APIs

    1 project | /r/java | 13 Oct 2023
  • How To Modify HTTP Request Headers In JAVA Using Selenium WebDriver?

    1 project | dev.to | 9 May 2022
  • Anyone using AI for testing backend?

    1 project | /r/softwaretesting | 7 Feb 2022
  • Experiences with automated unit testing generation tools?

    2 projects | /r/softwaretesting | 29 Oct 2021
  • What language should I choose for API automation?

    1 project | /r/softwaretesting | 29 Jul 2021