Socket
Book a DemoInstallSign in
Socket

paraduct

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paraduct

1.0.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

Paraduct

Gem Version Build Status Code Climate Coverage Status Dependency Status

Paraduct (parallel + parameterize + product) is matrix test runner

Stories in Ready

Architecture

architecture

Requirements

  • ruby 2.0+
  • rsync

Installation

Add this line to your application's Gemfile:

gem 'paraduct'

And then execute:

$ bundle

Or install it yourself as:

$ gem install paraduct

Usage

$ paraduct --help
Commands:
  paraduct generate        # generate .paraduct.yml
  paraduct help [COMMAND]  # Describe available commands or one specific command
  paraduct test            # run matrix test

1. Generate config file

$ paraduct generate
      create  .paraduct.yml
      create  .paraduct_rsync_exclude.txt

2. Customize .paraduct.yml

$ vi .paraduct.yml
$ vi .paraduct_rsync_exclude.txt

3. Run test

$ paraduct test

.paraduct.yml Format

script: |-
  echo "[START] NAME1=${NAME1}, NAME2=${NAME2}"
after_script: |-
  echo "[END] NAME1=${NAME1}, NAME2=${NAME2}"
work_dir: tmp/paraduct_workspace
variables:
  NAME1:
    - value1a
    - value1b
  NAME2:
    - value2a
    - value2b
max_threads: 4
rsync_option:
  exclude_from: .paraduct_rsync_exclude.txt
exclude:
  - NAME1: value1a
    NAME2: value2b

script

script to run

after_script

script to run after both script successful and script failure

work_dir

diretory to run

  • own job is run under work_dir/$PARADUCT_JOB_NAME
  • if work_dir is empty, own job is run under current directory.
    • rsync is disabled

variables

Parameters to be combined

  • $PARADUCT_JOB_NAME is generated with variables
$PARADUCT_JOB_IDNAME1NAME2$PARADUCT_JOB_NAMEcurrent directory where the test is performed
1value1avalue2aNAME1_value1a_NAME2_value2atmp/paraduct_workspace/NAME1_value1a_NAME2_value2a
2value1avalue2bNAME1_value1a_NAME2_value2btmp/paraduct_workspace/NAME1_value1a_NAME2_value2b
3value1bvalue2aNAME1_value1b_NAME2_value2atmp/paraduct_workspace/NAME1_value1b_NAME2_value2a
4value1bvalue2bNAME1_value1b_NAME2_value2btmp/paraduct_workspace/NAME1_value1b_NAME2_value2b

max_threads

maximum concurrent execution number of jobs

rsync_option

support only exclude-from

exclude

exclude pattern from product variables

Contributing

  • Fork it ( https://github.com/sue445/paraduct/fork )
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create a new Pull Request

FAQs

Package last updated on 19 Nov 2017

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.