Download the PHP package nebulosar/codeception-coverage-checker without Composer

On this page you can find all versions of the php package nebulosar/codeception-coverage-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package codeception-coverage-checker

Codeception Coverage Checker Build Status

Extension for codeception. Can be used to fail tests if they are under the coverage threshold.

What it does

CoverageChecker is an extension made for Codeception. You can let your build fail when your code coverage is not high enough using this simple extension. If code coverage checks are the only thing you need from an analyser, this is what you want. No need for expensive cloud analysers!

Example
Take for example your build on Travis. By running your tests with codeception you can see if your code still works. Now, you can also check if there is enough code covered by those tests! This repository is a living example of that.

Install

What you need:
Codeception
This is pretty obvious hence it is a Codeception extension. See Codeception for more info on extensions

XDebug
Used for generating the code coverage report. See the XDebug download page to find your installation. If you are unsure which download you need, you could use the XDebug wizard to find the right one.

To install using composer:

Simple add the CoverageReporter to the codeception.yml file:

Also make sure you enable the code coverage option of Codeception:

Usage

To use this extension you need to add the --coverage command line option when you run your tests. It works just the same as when you use codeception to generate a coverage report for you. Enabling the coverage tag in your codeception.yml file simply is not enough.

Configuration options

All configuration for this plugin can be done under the coverage tag in your codeception.yml file. Here is an example of all the options. They are explained below.

Enabled
This setting is a default Codeception setting which needs to be set to true when you want to use the coverage part of codeception. At this moment, CoverageChecker also listens to this setting to determine whether to check you coverage or not.

Check
This is the extension setting. When you add this attribute you have three types you can add: classes, methods and lines. This determines what you want to check. If you are only interested in line coverage you can simple use the line check: lines and the extension will work.

Limit Each type of check has two attributes you may set. These are the low_limit and the high_limit.

If you choose not to supply a limit, it will take the default which are 60% (low limit) and 80% (high limit).

Command line options

Coverage option
The --coverage options is mandatory, but can also be replaced by any of the coverage options. Listed they are:

Colours Some people like things flat and take console output very serious. Because of this, support is added for the --no-colors option. When using this option, output will be colourless.

Support

When you find something that does not work like it should:
When you find something that can be improved:
When you think you are a neat open source programmer:

Help improve this extension for all! File an issue, the steps to reproduce and, if you can, open a pull request with the suggested fix!

License

MIT
(see license page)


All versions of codeception-coverage-checker with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.0
codeception/codeception Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nebulosar/codeception-coverage-checker contains the following files

Loading the files please wait ....