Coder Social home page Coder Social logo

eddie-dunn / test-selection Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 59 KB

This repo contains the code written for my master's thesis, "Test Selection Based on Historical Test Data".

Home Page: https://lup.lub.lu.se/student-papers/search/publication/7358122

Python 99.27% Shell 0.73%

test-selection's Introduction

volkswagen status

Difference Engine project

The Difference Engine project aims to analyze historical test data and, based on this analysis, provide suggestions on which tests to run given a set of changed packages.

The main application is called diffeng and is used to produce the package <-> test correlations. There is also a subpackage, simulatron, which produces simulated historical test data that the Difference Engine can analyze.

Additionally, there are some utility scripts in the scripts/ folder.

For more information regarding the different applications or scripts, look for a README.md file in their respective folders.

Installation

For general usage, the normal pip install --user . procedure should work.

For development, it is highly recommended to install DiffEng in a python virtualenv. See below for info on how to configure this, with a convenient wrapper script.

External dependencies

  • numpy
  • scipy
  • scikit-learn

You will need numpy, scipy, and scikit-learn in order to run all the applications that are a part of this project. These are not specified as dependencies when installing via pip as upstream does not really support installing them that way. Instead, the recommended method of installing them is via your distro's package manager.

Development

Development should be done in a virtualenv. Therefore, you need to setup virtualenv and virtualenvwrapper before installing DifferenceEngine in editable mode for development.

I recommend installing the virtualenvwrapper script to ease managment of your python virtualenvs. You can add the export and source lines below to your .bashrc file to avoid running them in every new terminal you open.

pip install --user virtualenvwrapper
export WORKON_HOME=~/.virtualenvs  # or whichever dir you prefer
source ~/.local/bin/virtualenvwrapper.sh
mkvirtualenv -ppython3 temp3  # or whatever name you prefer
workon temp3
cd <folder containing DiffEng setup.py>
pip install --editable .

In order to run the tests you should install pytest in your virtualenv.

workon temp3
pip install pytest
deactivate    # these two steps are necessary if you have py.test
workon temp3  # installed on the system already
which py.test  # should point to py.test in your virtualenv
py.test tests/

test-selection's People

Contributors

eddie-dunn avatar

Watchers

 avatar  avatar  avatar  avatar

test-selection's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.