Socket
Book a DemoInstallSign in
Socket

rcomp

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rcomp

0.2.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

RComp Code Climate Dependency Status Build Status

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.

Installation

$ gem install rcomp

Usage

$ 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

Setup

In your project root directory, run:

$ rcomp init

Then create some tests in rcomp/tests

Structure

After running rcomp init the following directories are created by default:

.
|--rcomp
|----tests
|----expected
|----results

tests

Stores test files. All subdirectories will be searched for tests.

expected

Stores the expected output of tests. Format is testname.out for stdout and testname.err for stderr.

results

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

Configuration

All custom configuration is stored in .rcomp as YAML

SettingConfigDefaultDescription
commandcommand: [COMMAND]Command RComp will run tests with
directorydirectory: [DIRECTORY]rcompDirectory RComp will store tests, results and expected in
ignore ignore: - [PATTERN] List of patterns RComp will ignore when finding tests
timeouttimeout: [TIMEOUT]5Test execution time limit (seconds)

Aliases

TaskAlias
testt
generateg
version-v--version

Copyright (c) 2012 Chris Knadler. See LICENSE for details.

FAQs

Package last updated on 29 Nov 2012

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.