在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):antonioribeiro/tddd开源软件地址(OpenSource Url):https://github.com/antonioribeiro/tddd开源编程语言(OpenSource Language):Vue 71.8%开源软件介绍(OpenSource Introduction):TDDD - Test Driven Development DashboardA Self-Hosted TDD Dashboard & Tests WatcherWhat is it?TDD Dashboard, is an app (built as a Laravel PHP package) to watch and run all your tests during development. It supports any test framework working on terminal, and comes with some testers (PHPUnit, phpspec, behat, Jest, AVA...) preconfigured, but you can easily add yours, just tell it where the executable is and it's done. It also shows the progress of your tests, let you run a single test or all of them, and open your favorite code editor (PHPStorm, VSCode, Sublime Text, etc.) going right to the failing line of your test. If your test framework generate screenshots, it is also able to show it in the log page, with all the reds and greens you are used to see in your terminal. It uses Laravel as motor, but supports (and has been tested with) many languages, frameworks and testing frameworks:
Features
VideosScreenshotsDashboardError LogCommand Line InterfaceThe Artisan commands Watcher and Tester are responsible for watching resources and firing tests, respectively: WatcherKeep track of your files and enqueue your tests every time a project or test file is changed. If a project file changes, it will enqueue all your tests, if a test file changes, it will enqueue only that particular test. This is how you run it: php artisan tddd:watch TesterResponsible for taking tests from the run queue, execute it and log the results. Tester will only execute enabled tests. This is how you run it: php artisan tddd:test NotificationsIt uses JoliNotif, so if it's not working on macOS, you can try installing terminal-notifier: brew install terminal-notifier Test Framework CompatibilityThis package was tested and is known to be compatible with InstallingTL;DRlaravel new tddd
cd tddd
composer require pragmarx/tddd
php artisan vendor:publish --provider="PragmaRX\Tddd\Package\ServiceProvider"
valet link tddd
# configure database on your .env
php artisan migrate
php artisan tddd:watch & php artisan tddd:work &
open http://tddd.dev/tests-watcher/dashboard Examples & Starter AppFor lots of examples, check this starter app, which will also help you create an independent dashboard for your tests. The long versionRequire it with Composer: composer require pragmarx/tddd Create a database, configure on your Laravel app and migrate it php artisan migrate Publish Ci configuration: On Laravel 4.* Add the service provider to your app/config/app.php: 'PragmaRX\Tddd\Package\ServiceProvider', php artisan config:publish pragmarx/tddd On Laravel 5.* php artisan vendor:publish --provider="PragmaRX\Tddd\Package\ServiceProvider" Example of projectsLaravel Dusk'project bar (dusk)' => [
'path' => $basePath,
'watch_folders' => [
'app',
'tests/Browser'
],
'exclude' => [
'tests/Browser/console/',
'tests/Browser/screenshots/',
],
'depends' => [],
'tests_path' => 'tests',
'suites' => [
'browser' => [
'tester' => 'dusk',
'tests_path' => 'Browser',
'command_options' => '',
'file_mask' => '*Test.php',
'retries' => 0,
],
],
], TroubleshootingTests are running fine in terminal but failing in the dashboard?You have first to remember they are being executed in isolation, and, also, the environment is not exactly the same, so things like a cache and session may affect your results. Requirements
AuthorLicenseLaravel Ci is licensed under the BSD 3-Clause License - see the ContributingPull requests and issues are welcome. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论