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-console

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

Last synced: 4 months ago
JSON representation

PhpUnitGen is a command line 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 console 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 see the core code, you should
> go on [core package](https://github.com/paul-thebaud/phpunitgen-core).

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).