python3 --version >= Python 3.8
git clone https://github.com/kichkiro/minishell_tester.git
cd minishell_tester
pip3 install -r requirements.txt
python3 src/__main__.py [project path]
python3 src/__main__.py [project path]
The tests are divided into the following categories:
- Parsing
- Commands
- Redirects
- Pipe
- Exit status
- Booleans
- Wildcards
IMPORTANT: The tests are not exhaustive, so it is possible that the project is not 100% functional even if all the tests are passed. Make your own tests.
As much as I have tried to make the tester as generic as possible, there may be some projects that may not be compatible. In that I have noticed that the Popen() method of the 'subprocess' module, the method I use to capture minishell output for some tests (Parsing, Commands, Exit Status, Booleans, Wildcards), does not always return the correct output on all projects.
To report bugs, contact me:
- Slack: kichkiro
- E-Mail: kichkiro@student.42firenze.it
Also feel free to send me Pull Request to add tests, implement new features, or fix bugs.
See LICENSE