Merge pull request #1006 from lohanidamodar/feat-tests-time
feat-tests-time
This commit is contained in:
commit
96d13aa996
|
@ -15,7 +15,10 @@
|
|||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {"Tests\\E2E\\": "tests/e2e"}
|
||||
"psr-4": {
|
||||
"Tests\\E2E\\": "tests/e2e",
|
||||
"Appwrite\\Tests\\": "tests/extensions"
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.4.0",
|
||||
|
|
2
composer.lock
generated
2
composer.lock
generated
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "15b6e4ddce09e6fb642988603d734aa8",
|
||||
"content-hash": "40de7f78c6b3d14b63c4ec178dcfe1a2",
|
||||
"packages": [
|
||||
{
|
||||
"name": "adhocore/jwt",
|
||||
|
|
|
@ -8,6 +8,9 @@
|
|||
processIsolation="false"
|
||||
stopOnFailure="false"
|
||||
>
|
||||
<extensions>
|
||||
<extension class="Appwrite\Tests\TestHook" />
|
||||
</extensions>
|
||||
<testsuites>
|
||||
<testsuite name="Application Test Suite">
|
||||
<directory>./tests/e2e/</directory>
|
||||
|
|
15
tests/extensions/TestHook.php
Normal file
15
tests/extensions/TestHook.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
namespace Appwrite\Tests;
|
||||
|
||||
use PHPUnit\Runner\AfterTestHook;
|
||||
|
||||
class TestHook implements AfterTestHook
|
||||
{
|
||||
public function executeAfterTest(string $test, float $time): void
|
||||
{
|
||||
printf("%s ended in %s seconds\n",
|
||||
$test,
|
||||
$time
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue