Giter Club home page Giter Club logo

limatestsuite's Introduction

LimaTestsSuite package

Common framework for Lima detectors to create and execute test based on the unittest library.

Description

The LimaTestSuite is a framework with a common API to define generic and specific test for any Lima detector. It provides:

  • A configuration helper class to provide detector and test parameters from a file.
  • Generic acquisition and abort tests.
  • API to define generic and specific tests.

Supported LimaCCD detectors

Until now, these are the supported detectors:

  • Simulator
  • Pilatus

Usage

After installing the package, an entry point limatest is generated. Run this application by passing the test file as argument.

limatest <test_file>

Each configuration file defines a single TestSuite for a single detector and each TestSuite can be composed by one or multiple TestCases.

Some examples of configuration files can be found in examples folder.

Extra usage information and option can be found by execution limatest --help.

Configuration file

The configuration file is based in the ConfigParser module. The file is structured in various sections. There are three mandatory section expected in any configuration file: Detector, AcqDefaults and SavingDefaults.

  • In Detector section the type (and port and host if necessary) of the detector are specified.
  • The default test values for the acquisition and saving parameters are specified in AcqDefaults and SavingDefaults, respectively.
  • Any other section in the file will be interpreted as a test.
  • A test section will contain a mandatory field named type which specifies the type of test o define.
  • An optional field named repeat is used to indicate the number of times the test will be executed sequentially (the default value is 1).
  • Other fields specified correspond to the acquisition and saving Lima parameters and will overwrite the default configuration.

limatestsuite's People

Contributors

gjover avatar jordiandreu avatar rhomspuron avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.