Git Product home page Git Product logo

aiqdoctests's Introduction

aiqfome logo

aiqDocTests

AiqDocTests A framework to validate request/response's json and create documentation for applications maintained by the devs of the most greedy-gut app on the internet!

Made by AiqFome Last Commit Contributors License


Install with pip3

pip3 install aiqDocTests

Init in the project folder

aiqdoctests --init

Will be created the folder data_scructures_io and static.

In the data_scructures_io, is the json files to test the request. Example

We using Cerberus to validate the structure. So if any valid in the json response is a name, type or don't send. Will occurs a exception in tests.

In the static folder, will be the json file to Swagger, with this file you can any package in any language what you want to read. This swagger.json is generate, so every time that you run the command aiqdoctests -g in the folder this file will be update.

The .aiqdoctests.config file

This json file is for configuration, so the name folders and other things can be personalizable.

docs_url

with the command aiqdoctests --docs will be up un flask server in the port 3000 and read the swagger file, this value is for which url will run. default: localhost:3000/docs

save_file_swagger

The name file generate to swagger. default: swagger.json

data_structures_folder

The name folder that are the data scructures for requests. default: data_structures_io

tests_folder

The name folder that will be the tests. default: tests

tests_before_cmd

Sometimes in the project, we wanna run command/script before start the tests, example create the tables in the bd. Will run this command before start the tests.

tests_between_cmd

This command is for run between tests, in the tearDown, so after run a test, this is for a script or migration that you want to run for clean the bd for example.

swagger

The header for swagger file.

For more information

For more you can see in the example (https://github.com/aiqfome/aiqDocTests-example)


Relax, this documentation is still in construction ๐Ÿ‘ท

Any doubt create a issue.


Made with ๐Ÿ• & โ™ฅ๏ธ! Enjoy it!

aiqdoctests's People

Contributors

pemtajo avatar

Watchers

 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.