Code Monkey home page Code Monkey logo

pbj's Introduction

PBJ (Pytest Better via JSON Automation)

Generate pytest cases based upon simple JSON files with a rich management portal.

The intent of this project is to simplify management of Unit test datasets and automate unit testing in Python. It should require much less human interaction and manual work to update/maintain unit test contents and write unit tests. The motto in the design here is KISS (Keep it Simple Stupid) and hopefully everything will stay as simple and intuitive as possible. This is intended for Python3.7.

Goals:

  • Automate unit test generation by just dropping a JSON file into a directory.
  • Simple Django front-end and/or a RESTful API for managing the JSON test configurations to make it even easier.
  • Write this as a pytest plugin for ease of use.
  • ~100% Code test coverage -> pytest-cov and pytest-benchmark

Current Features: (this was just started, so expect updates relatively soon)

  • JSON test file locating
  • Simple settings via settings.ini
  • Simple automation via JSON files

Future Features:

  • argparse front-end
  • RESTful API
  • Pretty and robust Django front-end for viewing/creating/updating/removing test contents and running pytest
  • asyncio concurrency/parallelism
  • Backwards compatibility
  • JSON test file validation
  • Make this a pytest plugin
  • Automated changelog and versioning
  • Logging

Collaboration:

Please feel free to add to this, request features/bug fixes, or fork the project, etc. This is still pretty conceptual, but ideally this will make adding test cases much easier for myself.

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.