Giter VIP home page Giter VIP logo

testingframework's People

Contributors

divya063 avatar ebocchi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

testingframework's Issues

!! Make the framework modular wrt yaml content !!

This is high priority.

You should start from the assumption that the yaml file will only contain tests that we want to run, and so their required parameters. If a test exists in the framework but it is not listed in the yaml, it will not be executed.

As discussed at the very beginning, keep a clear structure between the test names in the yaml file and the class names in the codebase. This allows you to dynamically try to import the class with that name and get the results of the test.

From a previous Diogo's comment, some pseudo-code:

    from test_name import test_name.upper_case() as test
    testing = test(tasks[test_name])
    testing.exit_code()

This makes very easy to run the tests we want and add new ones.
In the second case, we should just create the .py file with the matching class.

Deduplicate parameters in tests.yaml

There might be cases where a given parameter is repeated over and over in the yaml file, e.g., the filename to read/write/delete or the port number to reach JupyterHub.
One could deduplicate these parameters by declaring common parameters in the yaml and referencing those in the specific configurations of each test.

exit_code functions

These seem to be everywhere but they do not do much...
Could we fold them into the main test function?

Describe requirements to run the framework

It would be good to list in the documentation the packages required to run the framework.
E.g.,

  • docker
  • grafana
  • sqlite3
  • argparse
  • yaml
  • ...

The list is not exhaustive. To be checked.

Duplicated code in storage tests

I see some duplicated code in the storage tests.
For example, write, throughtput, and checksum test need to write to a file. A similar comment is applicable to the read operation.

Consider changing this and have minimal functions accepting the relevant parameters that are doing the job for everyone. IOUtils looks like the logical place to put this.

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.