Skip to main content

Creates combinatorial test suites

Project description

Combinatorial Testing Package

This package allows a user to input a list of n factors and k levels with a coverage strength value t to create an optimal suite of tests that can be run.

Primary Function

To import the package once installed, use:

import comb_testing

Once imported, the primary function to use is called using:

comb_testing.greedy_algorithm(<list>, <strength>, <flag>)

Where <list> is the N x k list of factors and levels and <strength> is the t value

The <flag> value allows the user to select between two different algorithms for suite generation.

The first, where flag == 1 is an algorithm which is optimized for a larger covering array (one that exceeds more than 5 levels and/or 5 factors).

The second, where flag == 2 is an algorithm optimized for speed but is only fast with a smaller sized covering array.

The first algorithm is designed to be more traditionally greedy, but due to usage of random generation, final test suites can vary in size.

The second algorithm takes a more "back-to-front" approach by first generating all possible candidate rows and generating a suite based on how many tuples the top-most row can generate over time.

Covering Array Generation

If there is no predetermined list, this package features a function to generate a covering array based on a regex string

The function can be called using: comb_testing.generate_covering_array("<regex>")

The value of <regex> will be a string with the following format: "<N>^<k> <N>^<k> ..."

An example of this function to generate a covering array with 4 factors and 3 levels would be:

covering_arr = comb_testing.generate_covering_array("3^4")

In this example, the result is stored in covering_arr and can be iterated over like any other list

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

combinatorial_tests_agragland-0.0.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

combinatorial_tests_agragland-0.0.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file combinatorial_tests_agragland-0.0.2.tar.gz.

File metadata

  • Download URL: combinatorial_tests_agragland-0.0.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.1

File hashes

Hashes for combinatorial_tests_agragland-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f25e42fe3d03d55166f82a0707ece8d649964821c01c983465e083fc8e42b135
MD5 b462dc895c514f7d8dfc0578703203bc
BLAKE2b-256 f8ac6e6cb3def2df760222f843cbcc7296d3584bfe896e548155bc7621597802

See more details on using hashes here.

File details

Details for the file combinatorial_tests_agragland-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: combinatorial_tests_agragland-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.1

File hashes

Hashes for combinatorial_tests_agragland-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 924a1d5e7103782021c3da8c77bacb15d0f84007b0afc113afa3e0e893f43793
MD5 2c709a4e408b2751af4aeb4e450634ac
BLAKE2b-256 ed022ef722be77d623e54bb989e05385ef65a06ba1fec2f9634b54f03879a93e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page