Skip to content

Commit

Permalink
test(test): Update pest command to include colors
Browse files Browse the repository at this point in the history
- Updated the pest command in composer.json to include the colors option for better readability.
  • Loading branch information
guanguans committed Jul 12, 2024
1 parent fceddcd commit a8b0641
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
8 changes: 7 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,11 @@ public function register(): void
);
}

public function boot(): void {}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
// ...
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
"mark-start": "printf '\\n!\\n!\\t\\033[0;36m%s\\033[0m\\n!\\n\\n' \"Started\"",
"md-fix": "@md-lint --fix",
"md-lint": "lint-md --config .lintmdrc ./*.md ./.github/ ./docs/",
"pest": "@php ./vendor/bin/pest --coverage --profile",
"pest": "@php ./vendor/bin/pest --coverage --profile --colors=always",
"pest-coverage": "@pest --coverage-html=./build/phpunit/ --coverage-clover=./clover.xml",
"pest-migrate-configuration": "@pest --migrate-configuration",
"pest-type-coverage": "@pest --type-coverage",
Expand Down
31 changes: 31 additions & 0 deletions tests/ArchTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

declare(strict_types=1);

/**
* Copyright (c) 2019-2024 guanguans<ityaozm@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/guanguans/music-dl
*/

namespace Tests;

// arch('will not use debugging functions')
// ->expect([
// 'echo',
// 'print',
// 'die',
// 'exit',
// 'printf',
// 'vprintf',
// 'var_dump',
// 'dump',
// 'dd',
// 'ray',
// 'print_r',
// 'var_export',
// ])
// ->each->not->toBeUsed();

0 comments on commit a8b0641

Please sign in to comment.