Download the PHP package howtomakeaturn/easy-coverage without Composer

On this page you can find all versions of the php package howtomakeaturn/easy-coverage. 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 easy-coverage

Introduction

A simple package to encourage/force developers to write tests.

Why I built this package?

I'm working with multiple junior developers in multiple projects.

I always want to find a way to encourage/force them to write tests.

And I want this process to be integrated into the CI/CD and pre-push workflow.

Installation

Usage

Let's say you think App\Services namespace is very important, and you want to force all developers to write tests for every public method under this namespace.

Here is the basic example:

Anytime you create a new test for the related methods, use PHP 8 Attribute Syntax to label them:

And that's it!

Anyone who creates new public methods in any classes under App\Services have to write tests!


If you want to ignore some methods, you can use

If you want to ignore some classes, you can use

If you want to ignore certain methods in classes, you can use

Recommended workflow

  1. You specify multiple namespaces that you think writing tests are necessary.

  2. Run EasyCoverage in PHPUnit & CI/CD & pre-push workflow.

  3. Anyone who writes new public methods under these namespaces will be forced to write tests!

How does this work behind the scenes?

  1. EasyCoverage finds out all the public & non-static methods under the namesapces you specify.

  2. EasyCoverage finds out all the class methods you labeled with Howtomakeaturn\EasyCoverage\Target attribute under the Tests namespace.

  3. EasyCoverage compares two array values from above and then return the result.

License

The EasyCoverage is open-sourced software licensed under the MIT license.


All versions of easy-coverage with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
haydenpierce/class-finder Version ^0.5.3
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 howtomakeaturn/easy-coverage contains the following files

Loading the files please wait ....