Skip to content

Commit

Permalink
Updated namespace to DrevOps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Skrypnyk committed Jul 27, 2021
1 parent 6897457 commit 1a627f2
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 32 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Behat Screenshot Extension
Behat extension and step definitions to create HTML and image screenshots on demand or when tests fail.

[![CircleCI](https://circleci.com/gh/integratedexperts/behat-screenshot.svg?style=shield)](https://circleci.com/gh/integratedexperts/behat-screenshot)
[![Latest Stable Version](https://poser.pugx.org/integratedexperts/behat-screenshot/v/stable)](https://packagist.org/packages/integratedexperts/behat-screenshot)
[![Total Downloads](https://poser.pugx.org/integratedexperts/behat-screenshot/downloads)](https://packagist.org/packages/integratedexperts/behat-screenshot)
[![License](https://poser.pugx.org/integratedexperts/behat-screenshot/license)](https://packagist.org/packages/integratedexperts/behat-screenshot)
[![CircleCI](https://circleci.com/gh/drevops/behat-screenshot.svg?style=shield)](https://circleci.com/gh/drevops/behat-screenshot)
[![Latest Stable Version](https://poser.pugx.org/drevops/behat-screenshot/v/stable)](https://packagist.org/packages/drevops/behat-screenshot)
[![Total Downloads](https://poser.pugx.org/drevops/behat-screenshot/downloads)](https://packagist.org/packages/drevops/behat-screenshot)
[![License](https://poser.pugx.org/drevops/behat-screenshot/license)](https://packagist.org/packages/drevops/behat-screenshot)

## Features
* Create a screenshot using `I save screenshot` or `save screenshot` step definition.
Expand All @@ -16,7 +16,7 @@ Behat extension and step definitions to create HTML and image screenshots on dem

## Installation

composer require --dev integratedexperts/behat-screenshot
composer require --dev drevops/behat-screenshot

## Usage

Expand All @@ -26,10 +26,10 @@ default:
suites:
default:
contexts:
- IntegratedExperts\BehatScreenshotExtension\Context\ScreenshotContext
- DrevOps\BehatScreenshotExtension\Context\ScreenshotContext
- FeatureContext
extensions:
IntegratedExperts\BehatScreenshotExtension: ~
DrevOps\BehatScreenshotExtension: ~
```

or with parameters:
Expand All @@ -39,10 +39,10 @@ default:
suites:
default:
contexts:
- IntegratedExperts\BehatScreenshotExtension\Context\ScreenshotContext
- DrevOps\BehatScreenshotExtension\Context\ScreenshotContext
- FeatureContext
extensions:
IntegratedExperts\BehatScreenshotExtension:
DrevOps\BehatScreenshotExtension:
dir: '%paths.base%/screenshots'
fail: true
fail_prefix: 'failed_'
Expand Down
4 changes: 2 additions & 2 deletions behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ default:
-
docroot: "%paths.base%/tests/behat/features/fixtures"
host: "phpserver"
- IntegratedExperts\BehatScreenshotExtension\Context\ScreenshotContext
- DrevOps\BehatScreenshotExtension\Context\ScreenshotContext
- FeatureContext:
-
screenshot_dir: "%paths.base%/screenshots"
Expand All @@ -23,7 +23,7 @@ default:
wd_host: "http://selenium:4444/wd/hub"
capabilities: { "browser": "chrome", "version": "*", "marionette": true }
javascript_session: selenium2
IntegratedExperts\BehatScreenshotExtension:
DrevOps\BehatScreenshotExtension:
dir: "%paths.base%/screenshots"
fail: true
purge: true
4 changes: 2 additions & 2 deletions behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ default:
default:
contexts:
- FeatureContext
- IntegratedExperts\BehatScreenshotExtension\Context\ScreenshotContext
- DrevOps\BehatScreenshotExtension\Context\ScreenshotContext
extensions:
IntegratedExperts\BehatScreenshotExtension:
DrevOps\BehatScreenshotExtension:
dir: %paths.base%/screenshots
fail: true
purge: false
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "integratedexperts/behat-screenshot",
"name": "drevops/behat-screenshot",
"description": "Behat extension and step definitions to create HTML and image screenshots on demand or when tests fail",
"type": "library",
"license": "GPL-2.0-or-later",
Expand All @@ -25,7 +25,7 @@
},
"autoload": {
"psr-0": {
"IntegratedExperts\\BehatScreenshot": "src/"
"DrevOps\\BehatScreenshot": "src/"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php
/**
* @file
* This file is part of the IntegratedExperts\BehatScreenshot package.
* This file is part of the DrevOps\BehatScreenshot package.
*/

namespace IntegratedExperts\BehatScreenshotExtension\Context\Initializer;
namespace DrevOps\BehatScreenshotExtension\Context\Initializer;

use Behat\Behat\Context\Context;
use Behat\Behat\Context\Initializer\ContextInitializer;
use IntegratedExperts\BehatScreenshotExtension\Context\ScreenshotAwareContext;
use DrevOps\BehatScreenshotExtension\Context\ScreenshotAwareContext;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Behat context interface to enable Screenshot.
*/

namespace IntegratedExperts\BehatScreenshotExtension\Context;
namespace DrevOps\BehatScreenshotExtension\Context;

use Behat\Behat\Context\Context;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Behat context to enable Screenshot support in tests.
*/

namespace IntegratedExperts\BehatScreenshotExtension\Context;
namespace DrevOps\BehatScreenshotExtension\Context;

use Behat\Behat\Context\SnippetAcceptingContext;
use Behat\Behat\Hook\Scope\AfterStepScope;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Behat screenshot extension.
*/

namespace IntegratedExperts\BehatScreenshotExtension\ServiceContainer;
namespace DrevOps\BehatScreenshotExtension\ServiceContainer;

use Behat\Behat\Context\ServiceContainer\ContextExtension;
use Behat\Testwork\ServiceContainer\Extension as ExtensionInterface;
Expand All @@ -23,7 +23,7 @@ class BehatScreenshotExtension implements ExtensionInterface
/**
* Extension configuration ID.
*/
const MOD_ID = 'integratedexperts_screenshot';
const MOD_ID = 'drevops_screenshot';

/**
* {@inheritdoc}
Expand Down Expand Up @@ -64,13 +64,13 @@ public function configure(ArrayNodeDefinition $builder)
*/
public function load(ContainerBuilder $container, array $config)
{
$definition = new Definition('IntegratedExperts\BehatScreenshotExtension\Context\Initializer\ScreenshotContextInitializer', [
$definition = new Definition('DrevOps\BehatScreenshotExtension\Context\Initializer\ScreenshotContextInitializer', [
$config['dir'],
$config['fail'],
$config['fail_prefix'],
$config['purge'],
]);
$definition->addTag(ContextExtension::INITIALIZER_TAG, ['priority' => 0]);
$container->setDefinition('integratedexperts_screenshot.screenshot_context_initializer', $definition);
$container->setDefinition('drevops_screenshot.screenshot_context_initializer', $definition);
}
}
2 changes: 1 addition & 1 deletion tests/behat/bootstrap/BehatCliTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function behatCliWriteScreenshotContextBehatYml(PyStringNode $value)
-
docroot: "%paths.base%/tests/behat/features/fixtures"
host: "phpserver"
- IntegratedExperts\BehatScreenshotExtension\Context\ScreenshotContext
- DrevOps\BehatScreenshotExtension\Context\ScreenshotContext
extensions:
Behat\MinkExtension:
goutte: ~
Expand Down
14 changes: 7 additions & 7 deletions tests/behat/features/behatcli.screenshot.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Feature: Screenshot context
Scenario: Test Screenshot context with all parameters defined in behat.yml
Given screenshot context behat configuration with value:
"""
IntegratedExperts\BehatScreenshotExtension:
DrevOps\BehatScreenshotExtension:
dir: "%paths.base%/screenshots"
fail: true
purge: true
Expand All @@ -25,7 +25,7 @@ Feature: Screenshot context
Scenario: Test Screenshot context with no parameters defined in behat.yml
Given screenshot context behat configuration with value:
"""
IntegratedExperts\BehatScreenshotExtension: ~
DrevOps\BehatScreenshotExtension: ~
"""
And scenario steps tagged with "@phpserver":
"""
Expand All @@ -40,7 +40,7 @@ Feature: Screenshot context
Scenario: Test Screenshot context with 'fail' set to 'true' which will save screenshot on fail
Given screenshot context behat configuration with value:
"""
IntegratedExperts\BehatScreenshotExtension:
DrevOps\BehatScreenshotExtension:
fail: true
"""
And scenario steps tagged with "@phpserver":
Expand All @@ -55,7 +55,7 @@ Feature: Screenshot context
Scenario: Test Screenshot context with 'fail' set to 'false' which will not save screenshot on fail
Given screenshot context behat configuration with value:
"""
IntegratedExperts\BehatScreenshotExtension:
DrevOps\BehatScreenshotExtension:
fail: false
"""
And scenario steps tagged with "@phpserver":
Expand All @@ -70,7 +70,7 @@ Feature: Screenshot context
Scenario: Test Screenshot context with 'purge' set to 'false' which will not purge files between runs
Given screenshot context behat configuration with value:
"""
IntegratedExperts\BehatScreenshotExtension:
DrevOps\BehatScreenshotExtension:
purge: false
"""
And scenario steps tagged with "@phpserver":
Expand All @@ -96,7 +96,7 @@ Feature: Screenshot context
Scenario: Test Screenshot context with 'purge' set to 'true' which will purge files between runs
Given screenshot context behat configuration with value:
"""
IntegratedExperts\BehatScreenshotExtension:
DrevOps\BehatScreenshotExtension:
purge: true
"""
And scenario steps tagged with "@phpserver":
Expand All @@ -122,7 +122,7 @@ Feature: Screenshot context
Scenario: Test Screenshot context with 'purge' set to 'false', but env variable set to 'true' which will purge files between runs.
Given screenshot context behat configuration with value:
"""
IntegratedExperts\BehatScreenshotExtension:
DrevOps\BehatScreenshotExtension:
purge: false
"""
And scenario steps tagged with "@phpserver":
Expand Down

0 comments on commit 1a627f2

Please sign in to comment.