Skip to main content

Toolkit to perform known-answer testing in Docker-isolated environments

Project description

KArTFire

kartfire is the "Known-Answer-Testing Framework". It is intended to run a number of student's solutions inside a well-defined, network-isolated runtime environment defined by a Docker container. The solutions can be programming-language agnostic (i.e., compiled and interpreted languages are supported, depending on the target container) and it is intended to deal with a wide array of faulty solutions:

  • Solutions that do not produce any output or that produce unparsable output
  • Solutions that terminate with error codes
  • Solutions that consume unlimited memory
  • Solutions that do not terminate at all

Boundary conditions

Any testcase is defined by a JSON file that has the following form:

{
	"action": "xyz",
	...
}

I.e., it needs to always be a dictionary that at least has an "action" key in the top-level. The answer can be any valid JSON object. For example, these would be valid testcases with their appropriate solutions:

{
	"action": "add",
	"a": 4,
	"b": 5
}

Expected answer:

{
	"sum": 9
}

Execution

TODO

License

GNU-GPL 3.

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

kartfire-0.0.4.tar.gz (33.9 kB view hashes)

Uploaded Source

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