Functional tests for teaching activities
Project description
Baygon
Kills Bugs Dead!
This package is a minimalist functional test suite for binaries. It relies on a description of tests usually in test.yml
or test.json
.
The documentation is available here.
Test file format
It can be either a .yml
or a .json
file.
version: 1
tests:
- name: Arguments check
tests:
- name: No errors if two arguments
args: [1, 2]
exit: 0
- name: Error if less than two arguments
args: [1]
exit: 1
- name: Stdout is the sum of arguments
args: [1, 2]
stdout: []
- name: Version on stderr
args: ['--version']
stderr:
- regex: '\b\d\.\d\.\d\b'
- contains: 'Version'
Usage
$ info-test -v ./a.out
Test 1: Arguments check
Test 1.1: No errors if two arguments................ PASSED
Test 1.2: Error if less than two arguments.......... PASSED
Test 2: Stdout is the sum of arguments.................. PASSED
Test 3: Version on stderr............................... PASSED
Ran 4 tests in 0.0s.
ok.
How to install?
pip3 install -U baygon
Build documentation
The documentation is build upon VuePress.
cd docs
yarn install
yarn docs:build
yarn docs:dev
Contributing ?
sudo apt update python-venv
git clone https://github.com/heig-tin-info/baygon.git
cd baygon
python -m venv env
source env/bin/activate
pip install -e .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Baygon-0.5.1.tar.gz
(59.4 kB
view details)
File details
Details for the file Baygon-0.5.1.tar.gz
.
File metadata
- Download URL: Baygon-0.5.1.tar.gz
- Upload date:
- Size: 59.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e7767ad986aea97693f6c78b6f5d6607264d7770b24b82dd5f5f82e4c3e7f4f |
|
MD5 | 34162433c2eb82edeff1fee1caffdf86 |
|
BLAKE2b-256 | 0b126fb5e5e197a075016577a5e4dfe08f4e5ab801d0cd9458ad01f0e579db09 |