
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
RComp is a simple framework for testing command line application output. It works by passing a specified command tests (files) by argument and comparing the result with expected output.
$ gem install rcomp
$ rcomp
Tasks:
rcomp generate # Generate expected output for all tests
rcomp help [TASK] # Describe available tasks or one specific task
rcomp init # Setup rcomp test directory
rcomp test # Run all tests
rcomp version # Prints RComp's version information
In your project root directory, run:
$ rcomp init
Then create some tests in rcomp/tests
After running rcomp init
the following directories are created by default:
.
|--rcomp
|----tests
|----expected
|----results
Stores test files. All subdirectories will be searched for tests.
Stores the expected output of tests. Format is testname.out
for stdout
and testname.err
for stderr
.
Managed by RComp. Stores the results of your most recent test suite run.
A simple RComp suite might look like:
.
|--rcomp
|----tests
|------test1.test
|------dir
|--------test2.test
|----expected
|------test1.out
|------dir
|--------test2.out
|--------test2.err
All custom configuration is stored in .rcomp
as YAML
Setting | Config | Default | Description |
---|---|---|---|
command | command: [COMMAND] | Command RComp will run tests with | |
directory | directory: [DIRECTORY] | rcomp | Directory RComp will store tests, results and expected in |
ignore |
ignore:
- [PATTERN]
| List of patterns RComp will ignore when finding tests | |
timeout | timeout: [TIMEOUT] | 5 | Test execution time limit (seconds) |
Task | Alias |
---|---|
test | t |
generate | g |
version | -v --version |
Copyright (c) 2012 Chris Knadler. See LICENSE for details.
FAQs
Unknown package
We found that rcomp 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
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.