TestBucket is a tool that aims to assist the testing process by generating functional test cases.
TestBucket is a tool aims to generate test cases from the definition of a specification in YAML notation. This specification aims to determine input domains and correlation between fields in a form.
Once we have a specification in a concrete and not subjective way, we can apply several known techniques of software tests to generate test cases. The scope of this project is limited, for now, to generate integrated tests not having a direct relationship with the application code, but with the specification.
Consider contributing to this project with code 🤓; or thoughts and ideas 🧐 !
- New data types
- New combiner algorithm
# build image
make build
# run all tests
make test
# run dev environment
make run
# stop dev environment
make stop
type | Description | Status |
---|---|---|
integer:range | (...) | Done |
float:range | (...) | Pending |
date:range | (...) | Pending |
type | Description | Status |
---|---|---|
string:static | (...) | Pending |
boolean:static | (...) | Pending |
version: 1.0
group: UserForm
properties:
- name: name
type: static
value: ["bob", "alice"]
- name: surname
type: static
value: ["red", "green"]
docker run -it --rm --name testbucket-run -v "$PWD":/tmp testbucket ./testbucket testbucket:process --spec=/tmp/test.yaml --output=/tmp
Each line is a json object that defines a TestCase
with properties and if its valid or not, and all values are encoded in base64.
This example only shows valid test cases: is_valid=true
{"group_name":"UserForm","properties":{"name":"Ym9i","surname":"cmVk"},"is_valid":true}
{"group_name":"UserForm","properties":{"name":"Ym9i","surname":"Z3JlZW4="},"is_valid":true}
{"group_name":"UserForm","properties":{"name":"YWxpY2U=","surname":"cmVk"},"is_valid":true}
{"group_name":"UserForm","properties":{"name":"YWxpY2U=","surname":"Z3JlZW4="},"is_valid":true}
If you want to contribute to this project, see the guidelines