2017 © Pedro Peláez
 

library circle-parallel-tests-builder

Easy way to build parallel sets of tests for Circle CI

image

pedrotroller/circle-parallel-tests-builder

Easy way to build parallel sets of tests for Circle CI

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

CircleCI-Parallel-Builder

Easy way to build parallel sets of tests for Circle CI, (*1)

Pitch

This tool will create test suites for you. It's made for circle-ci but you can use it with other tools., (*2)

Installation

composer require pedrotroller/circle-parallel-tests-builder --dev

A binary file (circle-tests) have been added to your binary directory., (*3)

Configuration

You just have to create a file named circle-tests.yml into your project root directory and follow this pattern :, (*4)

"<my_test>": <weigth>
"<my_test>": <weigth>
"<my_test>": <weigth>

Where my_test is the command to execute, and weigth is a number representing the weigth of the execution of your command (can be the duration for exemple)., (*5)

Usage

You can display suites by using the following command :, (*6)

./bin/circle-tests display -t 3 # Will split your tests into 3 suites

You can launch a suite by using the following command :, (*7)

./bin/circle-tests -i 0 -t 3 # -i represent the index (0 based) of the desired suite

Circle-CI use case

# ./circle-tests.yml
'bin/behat --no-snippets --tags=~disabled --verbose features/api': 21
'bin/behat --no-snippets --tags=~disabled --verbose features/manager': 50
'bin/phpspec run -fpretty --verbose': 1
'bin/install dev demo': 4
'bin/install prod && app/console doctrine:schema:validate -e=prod': 2
# ./circle.yml
general: # ...

machine: # ...

dependencies: # ...

test:
    override:
        - bin/circle-tests run --index=$CIRCLE_NODE_INDEX --total=$CIRCLE_NODE_TOTAL:
            parallel: true

The Versions

07/01 2016

dev-master

9999999-dev

Easy way to build parallel sets of tests for Circle CI

  Sources   Download

MIT

The Requires

 

The Development Requires

07/01 2016

v1.0.0

1.0.0.0

Easy way to build parallel sets of tests for Circle CI

  Sources   Download

MIT

The Requires

 

The Development Requires