https://github.com/ghostwriter/testify
Testify - Automated test Generation for PHP code.
https://github.com/ghostwriter/testify
Last synced: about 1 year ago
JSON representation
Testify - Automated test Generation for PHP code.
- Host: GitHub
- URL: https://github.com/ghostwriter/testify
- Owner: ghostwriter
- License: other
- Created: 2024-01-19T21:31:48.000Z (over 2 years ago)
- Default Branch: 0.1.x
- Last Pushed: 2025-04-22T00:53:39.000Z (about 1 year ago)
- Last Synced: 2025-04-22T01:31:22.088Z (about 1 year ago)
- Language: PHP
- Size: 1.28 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# Testify
[](https://github.com/sponsors/ghostwriter)
[](https://github.com/ghostwriter/testify/actions/workflows/automation.yml)
[](https://www.php.net/supported-versions)
[](https://packagist.org/packages/ghostwriter/testify)
Automated test Generation for PHP code.
> [!WARNING]
>
> This project is not finished yet, work in progress.
## Installation
You can install the package via composer:
``` bash
composer require ghostwriter/testify --dev
```
### Star ⭐️ this repo if you find it useful
You can also star (🌟) this repo to find it easier later.
## Usage
Call the `testify` command with the path to the directory you want to generate tests for.
```sh
vendor/bin/testify --verbose --dry-run
```
### Commands
```sh
Description:
Generate missing Tests.
Usage:
bin/testify [options] [--] [ []]
Arguments:
source The path to search for missing tests. [default: "src"]
tests The path used to create tests. [default: "tests"]
Options:
-d, --dry-run Do not write any files.
-f, --force Overwrite existing files.
-h, --help Display help for the given command. When no command is given display help for the bin/testify command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
```
#### Example
```sh
vendor/bin/testify app tests --dry-run
vendor/bin/testify app/Middleware --dry-run --verbose
vendor/bin/testify # default path is `src`
```
### Credits
- [Nathanael Esayeas](https://github.com/ghostwriter)
- [All Contributors](https://github.com/ghostwriter/testify/contributors)
### Changelog
Please see [CHANGELOG.md](./CHANGELOG.md) for more information on what has changed recently.
### License
Please see [LICENSE](./LICENSE) for more information on the license that applies to this project.
### Security
Please see [SECURITY.md](./SECURITY.md) for more information on security disclosure process.