New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

test-jail

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-jail

Safely test console programs in Docker containers

  • 2.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Test jail

Run C++ and Python programs against input files in a Docker container and save the output to files or compare against valid output.

npm Codecov Docker Image Size (latest semver)

This package was previously called Awesome test runner.
Versions up to v.1.7.x can be installed from https://www.npmjs.com/package/awesome-test-runner

Requires Docker to be installed on your system

You can verify Docker installation using

docker -v

API Features

  • Simple, promise based API
  • Buffer support
  • Runs code in a Docker container, preventing local file and process access
  • Uses Docker API (via dockerode)
  • Integrated test queue
  • Tested using Mocha
  • Can run C++ or Python programs (feel free to create an issue requesting a new language)

CLI Features

  • Run tests on a program and save output files
  • Test a program using input/output files
  • Print diff (jsdiff or line by line comparasion)
  • Single and multiple input modes

Usage

Install using:

npm i test-jail -g

Usage help is available after installation:

test-jail --help

Keywords

FAQs

Package last updated on 17 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc