-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from tienvx/add-queued-loop-path-reducer
Add queued loop path reducer
- Loading branch information
Showing
78 changed files
with
1,668 additions
and
681 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
coverage_clover: tests/logs/clover.xml | ||
json_path: tests/logs/coveralls-upload.json | ||
service_name: travis-ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
# Ignore files created during tests | ||
/tests/app/var/cache/ | ||
/tests/app/var/logs/ | ||
/tests/logs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,77 @@ | ||
# MbtBundle [![Build Status](https://travis-ci.org/tienvx/mbt-bundle.svg?branch=master)](https://travis-ci.org/tienvx/mbt-bundle) | ||
# MBT Bundle [![Build Status][travis_badge]][travis_link] [![Coverage Status][coveralls_badge]][coveralls_link] | ||
|
||
This Bundle provides ability to test your application using Model Based Testing | ||
techique. Before testing your project, you need to create new **symfony project** | ||
to load this bundle. Then by defining workflows (the way your system work) and | ||
entities (the way to interact with your system) in that project, it will test | ||
your project for you. | ||
techique. | ||
|
||
The major features are: | ||
1. Automatically generate test cases when a task is created. | ||
2. Automatically execute those test cases to test your application. | ||
3. Automatically reduce reproduce path when a bug is found. | ||
4. Automatically report the bug when the reproduce path is reduced. | ||
|
||
All you have to do: | ||
1. Define models to describe your application. | ||
2. Define subjects to interact with your application. | ||
3. Create tasks based on your need. e.g.: | ||
1. Test the whole application to make sure there are no bugs in the application. | ||
2. Test only models that have a tag to make sure the part of your application is still working while developing a feature. | ||
3. Test a model to make sure a bug that has been fixed is not regressed. | ||
4. Manage bugs that has been found. e.g. mark a bug has been fixed. | ||
|
||
## Requirements | ||
|
||
* PHP 7.1 / 7.2 | ||
* Symfony 4.1 | ||
* See also the `require` section of [composer.json](composer.json) | ||
|
||
## Installation | ||
|
||
### Step 1: Download the Bundle | ||
### Step 1: Create symfony project | ||
|
||
Open a command console, enter your project directory and execute the | ||
following command to download the latest stable version of this bundle: | ||
Before testing your application, you need to create new **symfony project** | ||
to use this bundle: | ||
|
||
```console | ||
$ composer create-project symfony/skeleton my-project | ||
``` | ||
|
||
### Step 2: Download the Bundle | ||
|
||
Install lastest version of this bundle: | ||
|
||
```console | ||
$ composer require tienvx/mbt-bundle "1.0.x-dev" | ||
``` | ||
|
||
This command requires you to have Composer installed globally, as explained | ||
in the [installation chapter](https://getcomposer.org/doc/00-intro.md) | ||
of the Composer documentation. | ||
### Step 3: Create models and subjects | ||
|
||
### Step 2: Enable the Bundle | ||
Model is the way to describe part your application. Subject is | ||
the way to tell this bundle to interact with your application. | ||
|
||
Then, enable the bundle by adding it to the list of registered bundles | ||
in the `app/AppKernel.php` file of your project: | ||
## Documentation | ||
|
||
```php | ||
<?php | ||
// app/AppKernel.php | ||
For the usage guide and reference, see [wiki][wiki] | ||
|
||
// ... | ||
class AppKernel extends Kernel | ||
{ | ||
public function registerBundles() | ||
{ | ||
$bundles = array( | ||
// ... | ||
new Tienvx\Bundle\MbtBundle\TienvxMbtBundle(), | ||
); | ||
## Contributing | ||
|
||
// ... | ||
} | ||
Pull requests are welcome, please [send pull requests][pulls]. | ||
|
||
// ... | ||
} | ||
``` | ||
If you found any bug, please [report issues][issues]. | ||
|
||
Thanks to | ||
[everyone who has contributed][contributors] already. | ||
|
||
## License | ||
|
||
This package is available under the [MIT license](LICENSE). | ||
|
||
### Note | ||
If you are using symfony version 4 or later, this step is not required. Symfony do it | ||
automatically for you. | ||
[travis_badge]: https://travis-ci.org/tienvx/mbt-bundle.svg?branch=master | ||
[travis_link]: https://travis-ci.org/tienvx/mbt-bundle | ||
|
||
## Resources | ||
[coveralls_badge]: https://coveralls.io/repos/tienvx/mbt-bundle/badge.svg?branch=master&service=github | ||
[coveralls_link]: https://coveralls.io/github/tienvx/mbt-bundle?branch=master | ||
|
||
* [Report issues](https://github.com/tienvx/mbt-bundle/issues) | ||
* [Send Pull Requests](https://github.com/tienvx/mbt-bundle/pulls) | ||
[wiki]: https://github.com/tienvx/mbt-bundle/wiki | ||
[contributors]: https://github.com/tienvx/mbt-bundle/graphs/contributors | ||
[pulls]: https://github.com/tienvx/mbt-bundle/pulls | ||
[issues]: https://github.com/tienvx/mbt-bundle/issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.