Skip to main content

Software Analysis and Testing Framework

Project description

MUTERIA (MUlti-Tools and criTERIA framework for automated software testing)

https://github.com/muteria/muteria

Muteria is a Software Analysis/Testing framework that integrate multiple tools. Muteria support tools from various programming languages which are supported by implementing a driver.

Report Sample. sample

Muteria can be used through:

  • Its API
  • Commnad Line Interface (CLI)

Suported Systems

Muteria is written in Python and thus can run on Windows, Linux or macOS.

Installation

muteria requires Python 3.

  1. Install Muteria by running:
pip install muteria
  1. View the usage help:
muteria --help

Usage

Muteria requires to have the underlying tools installed on the system.

Usage example C (in Docker container)

A docker image, with preinstalled tools, can be used to run muteria on a sample C language program. The installed tools are: GNU GCov, KLEE, Shadow, Mart, SEMu.

  1. Pull the docker image:
docker pull thierrytct/cm
  1. run the docker image in a container:
docker run -it --rm thierrytct/cm bash
  1. Download the example program:
git clone https://github.com/muteria/example_c.git 
  1. Change into the example program directory:
cd example_c
  1. run using the configuration file in ctrl/conf.py
muteria --config ctrl/conf.py --lang c run

Usage example Python

Example of measuring coverage for a python program using coverage.py.

  1. Install coverage.py:
pip install coverage
  1. Download the example program:
git clone https://github.com/muteria/example_python.git 
  1. Change into the example program directory:
cd example_python
  1. run using the configuration file in ctrl/conf.py
muteria --config ctrl/conf.py --lang python run

Drivers development

Testcase Tools Drivers

Details on writing drivers for testcase (test generation) tools can be found here.

Test Criteria Tools Drivers

Details on writing drivers for test criteria tools can be found here.

Current Limitation

  • Interface difference between multiple versions of the same tool

Development

Things to fix

  • Ensure tools plugins do not leave the repo srcs or exes in an infected state. They must cleanup the changes made. Ensure that by cleaning for them at top level (when the driver's methods are called in the meta tools)

  • Handle reporting test error in stats (first within meta test execution)

  • Enable having no criterion set

  • Complete and test the web UI.

  • Choice of test level (unit, system, ...)

  • Complete the documentation

  • Augment the test suite

Features

  1. parallelism
  • Implement option to run phases of the analysis in parallel.
  • Implement option to run tests in parallel
  1. Web Interface
  • Front-end UI
  • server (back-end)
  • Write custom configuration function on-line
  • Write manual tests on-line
  1. Command Line Interface
  • basic interaction to launch execution
  1. Library API interface
  • API in docstring
  • make the documented API available
  1. Reporting
  • Basic metric display
  • cross project reporting (for experiment and evolution)
  • plotting
  1. Checkpointing and Logging
  • checkpoint and logging implemented
  • logging optional
  • checkpointing optional
  1. Multiple projects
  • obtain data from previous versions execution in current (regression)
  • merge data across multiple project (for experiments)
  1. Test Adequacy Criteria(TAC)
  • Support adding new TACs
  • Support enabling/disabling TAC during execution
  1. Tools
  • support plugging in test generation tools
  • support plugging in TAC instrumenting tools
  • support plugging in TAC test objectives selection/prioritization.
  • support plugging in test case selection prioritization techniques.
  • support adding test formats (for test execution)
  • support adding build systems.
  • support custom build script
  1. Programming languages
  • support adding programming languages
  • support multi-languages tools

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

muteria-0.2.1.tar.gz (344.7 kB view details)

Uploaded Source

File details

Details for the file muteria-0.2.1.tar.gz.

File metadata

  • Download URL: muteria-0.2.1.tar.gz
  • Upload date:
  • Size: 344.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for muteria-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6003af833489aa44657bcf41b43724fa31bcf7b2df5aad797a5c1e7216b92fd2
MD5 7519a792314bbff0b4006e5ba0e15e7d
BLAKE2b-256 820d487fa8de3f4d3e9782f8941b6797070c972281f09c4f033f3acc3c0de302

See more details on using hashes here.

Supported by

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