diff --git a/docs/references/testing.md b/docs/references/testing.md index 30766858a..67a993c41 100644 --- a/docs/references/testing.md +++ b/docs/references/testing.md @@ -33,3 +33,16 @@ class ActionsTest extends TestCase } } ``` + +## Improving the Speed of Running Tests + +By default, Shield has set the `Config\Auth::$hashCost = 12` due to the greater security of passwords. However, to increase the test execution time, we have set the `$hashCost = 4` for the test environment. + +If you use Shield in your project and your tests execution time is high, just set the `$hashCost = 4` in file **phpunit.xml.dist** of your project as follows: + +``` + + + + +``` \ No newline at end of file diff --git a/phpunit.xml.dist b/phpunit.xml.dist index af444e0a1..b25b4ca2a 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -79,6 +79,8 @@ + +