Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/paul-thebaud/phpunitgen-core

PhpUnitGen is a PHP tool to generate your unit tests' skeletons on your projects.
https://github.com/paul-thebaud/phpunitgen-core

Last synced: about 2 months ago
JSON representation

PhpUnitGen is a PHP tool to generate your unit tests' skeletons on your projects.

Awesome Lists containing this project

README

        

PhpUnitGen


Total Downloads
Latest Stable Version
Build Status
StyleCI
Quality Gate Status
Coverage

## :warning: PhpUnitGen end of life

After 7 years of existence, PhpUnitGen is not maintained anymore.
[Read the post](https://github.com/paul-thebaud/phpunitgen-core/issues/32)

## Installation

The CLI tool can be installed using:
```bash
composer require --dev phpunitgen/console
```

Detailed information and webapp version are available at
[https://phpunitgen.io](https://phpunitgen.io).

## About PhpUnitGen

> **Note:** this repository contains the core code of PhpUnitGen. If you want
> to use the tool on your browser, you can go on the
> [webapp](https://phpunitgen.io). If you want to use the tool on your console,
> you can install the
> [command line package](https://github.com/paul-thebaud/phpunitgen-console).

PhpUnitGen is an online and command line tool to generate your unit tests'
skeletons on your projects.

- [How does it work?](https://phpunitgen.io/docs#/en/how-does-it-work)
- [Configuration](https://phpunitgen.io/docs#/en/configuration)
- [Web application](https://phpunitgen.io/docs#/en/webapp)
- [Command line](https://phpunitgen.io/docs#/en/command-line)
- [Advanced usage](https://phpunitgen.io/docs#/en/advanced-usage)

### Key features

- Generates tests skeletons for your PHP classes
- Binds with Laravel "make" command
- Generates class instantiation using dummy parameters or mocks
- Adapts to PHPUnit or Mockery mocks generation

PhpUnitGen is not meant to generate your tests content but only the skeleton (except for getters/setters).

This is because inspecting your code to generate the appropriate test is
way too complex, and might result in missing some of the code's features
or marking them as "passed unit test" even if it contains errors.

## Roadmap

You can track the tasks we plan to do on our
[Taiga.io project](https://tree.taiga.io/project/paul-thebaud-phpunitgen/kanban).

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for more details.

Informal discussion regarding bugs, new features, and implementation of
existing features takes place in the
[Github issue page of Core repository](https://github.com/paul-thebaud/phpunitgen-core/issues).

## Credits

- [Paul Thébaud](https://github/paul-thebaud)
- [Killian Hascoët](https://github.com/KillianH)
- [Charles Corbel](https://dribbble.com/CorbelC)
- [All Contributors](https://github.com/paul-thebaud/phpunitgen-core/graphs/contributors)

## License

PhpUnitGen is an open-sourced software licensed under the
[MIT license](https://opensource.org/licenses/MIT).