Skip to main content

Kontr tests development kit

Project description

Kontr Test Development Kit

Kontr Test Development Kit was designed to write custom test scenarios for multiple programming languages. Configuration is done by python script with predefined structure.

Getting stated

KTDK is a library, to use it, you have to install it, or add it to your's Pipenv or requirements.txt file.

Prerequisites

  • Python 3.6 or later
  • (Optional) pipenv

Install the released version

You can install ktdk using the pip:

$ pip install ktdk

Or you can add it as a development dependency using the pipenv

$ pipenv install ktdk

Install the development version

You can either use the Pipenv command.

pipenv install git+https://gitlab.fi.muni.cz/grp-kontr2/ktdk.git

or the pip command:

pip install git+https://gitlab.fi.muni.cz/grp-kontr2/ktdk.git

Available Env variables

  • KTDK_WORKSPACE - Workspace dir
  • KTDK_TEST_FILES - Test files dir
  • KTDK_SUBMISSION - Student's submission dir
  • KTDK_RESULTS - Results directory submission dir
  • KTDK_ENTRY_POINT - Entry point - main script (default: instructions.py)
  • KTDK_TEST_TIMEOUT - Test timeout
  • KTDK_WEBHOOK_URL - Webhook url
  • KTDK_WEBHOOK_TOKEN - Webhook token
  • KTDK_TEST_TIMEOUT - Test timeout
  • KTDK_SUITE_TIMEOUT - Suite timeout
  • KTDK_SUITE_ID - Suite ID

Run the cli tool

Ktdk also provides a simple cli tool, to run your tests

# Show the help
$ ktdk --help

# List all the static tests
$ ktdk tests list

# Run your tests using the ktdk
$ ktdk execute --help

# Example:
$ ktdk execute --submission="<SUBMISSION_DIR>" --test-files="<TEST_FILES_DIR>" --devel

Examples

TBD - python examples of the KTDK tests

Development

Take a look at the contribution guide

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ktdk-0.4.2.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

ktdk-0.4.2-py3-none-any.whl (101.9 kB view details)

Uploaded Python 3

File details

Details for the file ktdk-0.4.2.tar.gz.

File metadata

  • Download URL: ktdk-0.4.2.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.3

File hashes

Hashes for ktdk-0.4.2.tar.gz
Algorithm Hash digest
SHA256 36a8b512866b01bfd6510b73694b086b165eeed77de54a3d8a054cea5a775391
MD5 50ecba686e3b657046259911d31b91ba
BLAKE2b-256 9c0f430bee643945455c6b0af3add834ef195c19fbd9b1d72581d3346d14a070

See more details on using hashes here.

File details

Details for the file ktdk-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: ktdk-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 101.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.3

File hashes

Hashes for ktdk-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 917ca55926518dee438f4dbb27fa5c99a4ebf2d6e6c3eb20b6074a90a3e66e09
MD5 fefb151d6f9fa2414e5171a81318ad57
BLAKE2b-256 0973522d8dd449243ec7d1e4685bc7c344c9ae532d2274a8fbe3ac044031eb22

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page