{"id":19693563,"url":"https://github.com/ezsystems/behat-screenshot-image-driver-cloudinary","last_synced_at":"2025-04-29T09:31:48.194Z","repository":{"id":44894816,"uuid":"149115621","full_name":"ezsystems/behat-screenshot-image-driver-cloudinary","owner":"ezsystems","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-20T07:48:31.000Z","size":34,"stargazers_count":28,"open_issues_count":0,"forks_count":0,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-05T14:51:12.398Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ezsystems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-17T11:35:28.000Z","updated_at":"2022-08-16T06:49:07.000Z","dependencies_parsed_at":"2022-09-15T11:20:41.978Z","dependency_job_id":null,"html_url":"https://github.com/ezsystems/behat-screenshot-image-driver-cloudinary","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezsystems%2Fbehat-screenshot-image-driver-cloudinary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezsystems%2Fbehat-screenshot-image-driver-cloudinary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezsystems%2Fbehat-screenshot-image-driver-cloudinary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezsystems%2Fbehat-screenshot-image-driver-cloudinary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ezsystems","download_url":"https://codeload.github.com/ezsystems/behat-screenshot-image-driver-cloudinary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251473481,"owners_count":21595055,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T19:17:13.566Z","updated_at":"2025-04-29T09:31:46.851Z","avatar_url":"https://github.com/ezsystems.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"ImageDriver-Cloudinary for Behat-ScreenshotExtension\n=========================\n\nThis package is an image driver for the [bex/behat-screenshot](https://github.com/elvetemedve/behat-screenshot) behat extension which can upload the screenshot to [Cloudinary](http://cloudinary.com) and print the url of the uploaded image.\n\nInstallation\n------------\n\nInstall by adding to your `composer.json`:\n\n```bash\ncomposer require --dev ezsystems/behat-screenshot-image-driver-cloudinary\n```\n\nConfiguration\n-------------\n\nEnable the image driver in the Behat-ScreenshotExtension's config in `behat.yml`:\n\n```yml\ndefault:\n  extensions:\n    Bex\\Behat\\ScreenshotExtension:\n      active_image_drivers: cloudinary\n```\n\nYou can choose how to upload files:\n- signed upload: export the Cloudinary values (cloud name, API Key and API Secret) as environmental variables\n- unsigned upload: set the cloud_name and preset in configuration\n\n```yml\ndefault:\n  extensions:\n      Bex\\Behat\\ScreenshotExtension:\n          active_image_drivers: cloudinary\n          image_drivers:\n              cloudinary:\n                  screenshot_directory: /tmp/behat-screenshot/\n                  cloud_name: X\n                  preset: Y\n```\n\nOther options:\n- limit: specifies the number of screenshots that can be taken in a single Behat run. It's based on number of files in `screenshot_directory`, so make sure that the folder is empty before the tests are run and cleaned only after the whole suite, not after every test. Limit checking can be disabled by exporting the `DISABLE_BEHAT_SCREENSHOT_LIMIT` variable.\n\nUsage\n-----\n\nWhen a step fails a screenshot will be taken and uploaded to Cloudinary. URL of the uploaded image will be displayed in the Behat log.\n\n```bash\n  Scenario:                           # features/feature.feature:2\n    Given I have a step               # FeatureContext::passingStep()\n    When I have a failing step        # FeatureContext::failingStep()\n      Error (Exception)\nScreenshot has been taken. Open image at https://res.cloudinary.com/cloud_name/image/upload/IMAGE_LINK.png\n    Then I should have a skipped step # FeatureContext::skippedStep()\n```\n\n## COPYRIGHT\nCopyright (C) 1999-2021 Ibexa AS (formerly eZ Systems AS). All rights reserved.\n\n## LICENSE\nThis source code is available separately under the following licenses:\n\nA - Ibexa Business Use License Agreement (Ibexa BUL),\nversion 2.4 or later versions (as license terms may be updated from time to time)\nIbexa BUL is granted by having a valid Ibexa DXP (formerly eZ Platform Enterprise) subscription,\nas described at: https://www.ibexa.co/product\nFor the full Ibexa BUL license text, please see:\n- LICENSE-bul file placed in the root of this source code, or\n- https://www.ibexa.co/software-information/licenses-and-agreements (latest version applies)\n\nAND\n\nB - GNU General Public License, version 2\nGrants an copyleft open source license with ABSOLUTELY NO WARRANTY. For the full GPL license text, please see:\n- LICENSE file placed in the root of this source code, or\n- https://www.gnu.org/licenses/old-licenses/gpl-2.0.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezsystems%2Fbehat-screenshot-image-driver-cloudinary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fezsystems%2Fbehat-screenshot-image-driver-cloudinary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezsystems%2Fbehat-screenshot-image-driver-cloudinary/lists"}