Test enviroment for CLI application
Project description
mazikeen is a test framework for command line applications. mazikeen was created to facilitae testing of CLI application that have a predictable output. It facilitates testing on different operating systems by provideing a diff method that is agnostic to newline and make / remove directory. For mazikeen every test has it’s own directory helping debugging and organizing tests. mazikeen empathise parralel testing.
The test structure looks like:
Testsuit1
├── Testcase1
│ └── script.yaml
├── . . .
└──TestcaseN
└── script.yaml
Testsuit2
├── Testcase1
│ └── script.yaml
├── ...
└──TestcaseN
└── script.yaml
An example of a simple test:
# content of script.yaml
---
steps:
- rmdir: Output
- makedirs: Output
- run: echo "Hello World" > Output/hello.txt
- diff: Output/hello.txt Expected/hello.txt
To execute it:
$ mazikeen [RUN ] --- simple [ PASSED] --- simple ---------------------------------------------------------------- Total test cases: 1 passed: 1 skipped: 0 error: 0 failed: 0 ---------------------------------------------------------------- process time: 0.02 execution time: 0.01
Features
Provides diff functions agnostic to newline and other common operations for different operating systems like make and remove directory.
Every test case is a directory. Making it easy to debug a failing test as all relevant data is stored in one place.
Parallel execution support. Testscases can be executed in parallel. A testcase can call multiple CLI applications in parallel.
Documentation
For full documentation, please see https://github.com/hanniballar/mazikeen/blob/master/Documentation/Mazikeen.rst .
Bugs/Requests
Please use the GitHub issue tracker to submit bugs or request features.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mazikeen-1.2.7.tar.gz.
File metadata
- Download URL: mazikeen-1.2.7.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a2b97484f98040c45ab9142291a06b8a8698b9f2b610a13cb0f6d1137165b92
|
|
| MD5 |
3a18d4d838a21d6a51b02953ef88948e
|
|
| BLAKE2b-256 |
5f80a5d21994d6da6ba8373a919b013aa0188f3b439c62c3afa15b28c0f022d8
|
File details
Details for the file mazikeen-1.2.7-py3-none-any.whl.
File metadata
- Download URL: mazikeen-1.2.7-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07b09879030ca39f07a966fd2de1e73cdc3d29c678f0281476063e38905751e4
|
|
| MD5 |
343595e966e2429d99f3f99cee359fe5
|
|
| BLAKE2b-256 |
3c412ec61c5745e2dce0a64f2fc8ec769db0e5bff8df6a683689dcd978a94b03
|