2017 © Pedro Peláez
 

library tale-dev-tool

Talesoft unit tests, coverage and code style tools

image

talesoft/tale-dev-tool

Talesoft unit tests, coverage and code style tools

  • Friday, June 8, 2018
  • by TorbenKoehn
  • Repository
  • 3 Watchers
  • 0 Stars
  • 42 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 23 Versions
  • 45 % Grown

The README.md

Packagist License CI Coverage, (*1)

Tale Dev Tool

What is Tale Dev Tool?

It's a fork of the phug/dev-tool tailored to the needs of tale-* components., (*2)

You can use it for any kind of composer-based PHP-project., (*3)

It provides default configuration for PHPUnit, PHP CodeSniffer and PHPDocumentor., (*4)

It can also check code coverage percentages and report the coverage to CodeClimate., (*5)

Installation

Install via Composer, (*6)

composer require talesoft/tale-dev-tool --dev

Usage

During development, you will mostly call the tool like this:, (*7)

./vendor/bin/tale-dev <command> <arguments>

Available Commands

install

Updates composer and installs composer dependencies, (*8)

check

Runs unit-tests:run, code-style:check and coverage:check in this order and fails as soon as one of the commands fail., (*9)

Return code is the return code of the failed command., (*10)

If --report is set, this command will generate code-coverage data and report it to code-climate., (*11)

I usually have a .travis.yml set up for this that contains something like, (*12)

addons:
    code_climate:
        repo_token: <your_code_climate_repo_token>

Check this repo's .travis.yml to get an idea. You can also check the repo of e.g. tale-stream to see how it's used in an actual library., (*13)

Notice: This is an outdated way to report coverage and I need to update it. Feel free to ignore it, even though it will probably still work for a while., (*14)

code-style:check

Automatically scans code for problems regarding PSR-2 and attempts to fix them if wanted., (*15)

This runs phpcs with a default config or a local config, if found., (*16)

code-style:fix

Automatically fixes code-problems regarding PSR-2., (*17)

This runs phpcbf with a default config or a local config, if found., (*18)

unit-tests:run

Runs unit tests located in ./tests., (*19)

You can pass --coverage-text and --coverage-clover=<targetXmlPath> to generate code-coverage information., (*20)

The --filter, --group and --testdox options are passed through to PHPUnit, if set., (*21)

coverage:check

Checks existing code-coverage data and fails if a specific percentage coverage (80% by default) is not reached., (*22)

Accepts --input-file=<targetXmlPath> that points to a coverage file generated by unit-tests:run --coverage-clover=<targetXmlPath>, (*23)

coverage:report

Reports coverage data to CodeClimate., (*24)

Accepts --input-file=<targetXmlPath> that points to a coverage file generated by unit-tests:run --coverage-clover=<targetXmlPath>, (*25)

The Versions

08/06 2018

dev-master

9999999-dev http://talesoft.codes

Talesoft unit tests, coverage and code style tools

  Sources   Download

MIT

The Requires

 

by Torben Koehn

dev tools tale

10/05 2018

0.2.3

0.2.3.0 http://talesoft.codes

Talesoft unit tests, coverage and code style tools

  Sources   Download

MIT

The Requires

 

by Torben Koehn

dev tools tale

10/05 2018

0.2.2

0.2.2.0 http://talesoft.codes

Talesoft unit tests, coverage and code style tools

  Sources   Download

MIT

The Requires

 

by Torben Koehn

dev tools tale

10/05 2018

0.2.1

0.2.1.0 http://talesoft.codes

Talesoft unit tests, coverage and code style tools

  Sources   Download

MIT

The Requires

 

by Torben Koehn

dev tools tale

06/04 2018
26/03 2018
11/10 2017

dev-cache-imports-handle

dev-cache-imports-handle http://phug-lang.com

  Sources   Download

MIT

The Requires

 

by Torben Koehn

template php html jade pug views render presentation dev tools phtml dialect phug

09/08 2017

0.1.11

0.1.11.0 http://phug-lang.com

  Sources   Download

MIT

The Requires

 

by Torben Koehn

template php html jade pug views render presentation dev tools phtml dialect phug

09/08 2017

0.1.10

0.1.10.0 http://phug-lang.com

  Sources   Download

MIT

The Requires

 

by Torben Koehn

template php html jade pug views render presentation dev tools phtml dialect phug

25/07 2017

0.1.9

0.1.9.0 http://phug-lang.com

  Sources   Download

MIT

The Requires

 

by Torben Koehn

template php html jade pug views render presentation dev tools phtml dialect phug

25/07 2017

0.1.8

0.1.8.0 http://phug-lang.com

  Sources   Download

MIT

The Requires

 

by Torben Koehn

template php html jade pug views render presentation dev tools phtml dialect phug

21/06 2017

0.1.7

0.1.7.0 http://phug-lang.com

  Sources   Download

MIT

The Requires

 

by Torben Koehn

template php html jade pug views render presentation dev tools phtml dialect phug

05/02 2017

0.1.6

0.1.6.0 http://phug-lang.com

  Sources   Download

MIT

The Requires

 

by Torben Koehn

template php html jade pug views render presentation dev tools phtml dialect phug

02/02 2017

dev-check-process

dev-check-process http://phug-lang.com

  Sources   Download

MIT

The Requires

 

by Torben Koehn

template php html jade pug views render presentation dev tools phtml dialect phug

28/12 2016

0.1.5

0.1.5.0 http://phug-lang.com

  Sources   Download

MIT

The Requires

 

by Torben Koehn

template php html jade pug views render presentation dev tools phtml dialect phug

28/12 2016

0.1.4

0.1.4.0 http://phug-lang.com

  Sources   Download

MIT

The Requires

 

by Torben Koehn

template php html jade pug views render presentation dev tools phtml dialect phug

28/12 2016

0.1.3

0.1.3.0 http://phug-lang.com

  Sources   Download

MIT

The Requires

 

by Torben Koehn

template php html jade pug views render presentation dev tools phtml dialect phug

28/12 2016

0.1.2

0.1.2.0 http://phug-lang.com

  Sources   Download

MIT

The Requires

 

by Torben Koehn

template php html jade pug views render presentation dev tools phtml dialect phug

28/12 2016

dev-fork-codeclimate

dev-fork-codeclimate http://phug-lang.com

  Sources   Download

MIT

The Requires

 

by Torben Koehn

template php html jade pug views render presentation dev tools phtml dialect phug

28/12 2016

0.1.1

0.1.1.0 http://phug-lang.com

  Sources   Download

MIT

The Requires

 

by Torben Koehn

template php html jade pug views render presentation dev tools phtml dialect phug

27/12 2016

0.1.0

0.1.0.0 http://phug-lang.com

  Sources   Download

MIT

The Requires

 

by Torben Koehn

template php html jade pug views render presentation dev tools phtml dialect phug