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
shellwhat
and articles about what to use when, consult https://shellwhat.readthedocs.io.
Installing
pip install shellwhat
Development
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 Dockerfile to parse shell commands with the Oil parser:
# Look in Makefile for details
export SHELLWHAT_PARSER='docker'
make test
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
shellwhat-1.1.1.tar.gz
(18.7 kB
view details)
File details
Details for the file shellwhat-1.1.1.tar.gz
.
File metadata
- Download URL: shellwhat-1.1.1.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 090078108e15184522e530c7754d2accf43f7c88f29933e7d6a2fdc09372f1f7 |
|
MD5 | fc57212774c77c5c6af987929e614121 |
|
BLAKE2b-256 | 3dd6691d7d513701a7631fbf9015c9668a1af14d65f4754a2dd801107a379eff |