Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Run C++ and Python programs against input files in a Docker container and save the output to files or compare against valid output.
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
Install globally using:
npm i test-jail -g
Usage help is available after installation:
test-jail --help
To test if the Docker daemon is running and accessible run:
test-jail ping
The program can then run in two modes:
This mode compiles and runs a program, then passess the specified input files to its standard input. If there was no error, standard output is saved on your file system. Example usage:
test-jail run code.py -i input -o output
Input and output can either be a single file or a directory. All the paths are relative to your current working directory.
The input files should have an .in
extension. The output files will have the same name, but with an .out
extension.
The test mode works similar to the run mode, but instead of saving the standard output to files, it's compared to the files that already exist (they can be generated using the run command on diffirent code, or just written manually), and the difference is shown.
test-jail test code.py -i input -o output
FAQs
Safely test console programs in Docker containers
The npm package test-jail receives a total of 0 weekly downloads. As such, test-jail popularity was classified as not popular.
We found that test-jail demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.