Giter VIP home page Giter VIP logo

flaky_service_reporter's Introduction

Flaky test tool - ML APIs Python

Note: This tool is a work-in-progress, and may not work for all ML API python repos.

Python directory

Currently, python directory has test and sample which fails one out of ten times randomly to produce the flakiness.

Prerequisites

You will need to set up the local development environment by [installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line: gcloud auth login and gcloud config set project [YOUR PROJECT ID].

Installation and setup

Install python dependencies

pip3 install -r requirements.txt

Before you begin

Supported Python Versions

Python >= 3.6

  1. pip3 install pytest
  2. pip3 install -r requirements.txt (if it is ML APIs repo)

Using the shell script

  • make bash script file executable

    chmod +x flaky_report_tool.sh
    
  • execute the script in context to make available for usage

    source flaky_report_tool.sh 
    
  • call bash function with flaky_tester python_test_file_test.py output_file_path.txt

  1. Python test file path (required)

  2. Output text file (optional)

    source flaky_report_tool.sh python/fake_quickstart_test.py output_text.txt
    

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.