Skip to content

hwong-earls/TestUnitBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Earls TestUnit Builder

It is a Symfony bundle which implement a console command for auto create TestUnits for your project. This tool explore ./src and create ./tests folder in where all the TestUnit will be alocated follow the same folder structure from the host bundle.

##Installation

composer.json:

"require": {
	"earls/TestBuilderBundle": "dev-master"
},

"repositories": [
	{
    	"type": "vcs",
        "url": "https://github.com/hwong-earls/TestUnitBuilder"
    }
]

Execute composer.phar update

app/AppKernel.php add:

new Earls\TestBuilderBundle\TestBuilderBundle(),

##Configuration

config.yml inside earls/TestBuilderBundle/Earls/TestBuilderBundle/Resources/config

Sections:
startpoint:
Location of the source, start point for scan the project.

excludeDir:
List of directories for ignore.

excludeFile:
List of files for ignore. Use regular expresion.

Example:

startpoint: /src
excludeDir:
    - Tests
    - DependencyInjection
    - Command
    - RhinoReportBundle
excludeFile:
    - .*Bundle\.php
    - .*Test\.php
    - .*\.phar
    - FieldFilterType.php
    - NumberFilterType.php

About

Repository for host the TestUnit Builder library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors