Submission correctness tests for shell languages
Project description
shellwhat
shellwhat enables you to write Submission Correctness Tests (SCTs) for interactive Shell exercises on DataCamp.
- If you are new to teaching on DataCamp, check out https://instructor-support.datacamp.com.
- If you want to learn what SCTs are and how they work, visit this article specifically.
- For a complete overview of all functionality inside
shellwhatand articles about what to use when, consult https://shellwhat.readthedocs.io.
Installing
pip install shellwhat
Development
Install everything needed for developing:
pip install -r requirements.txt
pip install -e .
By default, the DummyParser is used, that does not parse the shell code.
Hence, you can not run tests that need this parser:
pytest -m "not osh"
If you also want to run these 'parser tests', there is a Dockerfile to parse shell commands with the Oil parser:
# Look in Makefile for details
SHELLWHAT_PARSER='docker' make test
License
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
tcs-shellWhat-1.5.0.tar.gz
(21.6 kB
view details)
File details
Details for the file tcs-shellWhat-1.5.0.tar.gz.
File metadata
- Download URL: tcs-shellWhat-1.5.0.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
716e0b646a97de37cd2cafeeccd0997cf660011a0d104ee33aee3a8e5c5e5e62
|
|
| MD5 |
f81697f201ba20b377bb1ae48fdf108d
|
|
| BLAKE2b-256 |
f9f1a9962fa5b137f08e707dfcc54a64fe03b3a765da24624aa4a48776c001cb
|