Skip to content

Commit

Permalink
remove host label api (via #8)
Browse files Browse the repository at this point in the history
  • Loading branch information
remorhaz authored Sep 15, 2021
1 parent 130b7a9 commit b1ae884
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 33 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,12 @@ jobs:
php-version: ${{ matrix.php-version }}
extensions: pcntl, posix
coverage: xdebug

- name: Install dependencies
if: ${{ matrix.php-version != '8.1' }}
run: composer update
--prefer-dist
--no-progress
${{ matrix.composer-options }}
ini-values: error_reporting=E_ALL

- name: Install dependencies (experimental)
if: ${{ matrix.php-version == '8.1' }}
- name: Install dependencies
run: composer update
--prefer-dist
--no-progress
--ignore-platform-req=php
${{ matrix.composer-options }}

- name: Run tests
Expand Down
5 changes: 0 additions & 5 deletions src/Allure.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,6 @@ public static function lead(string $value): void
self::getInstance()->doLabel(Label::lead($value));
}

public static function host(string $value): void
{
self::getInstance()->doLabel(Label::host($value));
}

public static function package(string $value): void
{
self::getInstance()->doLabel(Label::package($value));
Expand Down
17 changes: 0 additions & 17 deletions test/AllureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -711,23 +711,6 @@ public function testLead_GivenValue_TestHasMatchingLabel(): void
self::assertSame('c', $label?->getValue());
}

public function testHost_GivenValue_TestHasMatchingLabel(): void
{
$test = new TestResult('a');
Allure::setLifecycleBuilder(
$this->createLifecycleBuilder(
$this->createResultFactoryWithTest($test),
$this->createLifecycleWithUpdatableTest($test),
),
);

Allure::setOutputDirectory('b');
Allure::host('c');
$label = $test->getLabels()[0] ?? null;
self::assertSame('host', $label?->getName());
self::assertSame('c', $label?->getValue());
}

public function testPackage_GivenValue_TestHasMatchingLabel(): void
{
$test = new TestResult('a');
Expand Down
1 change: 0 additions & 1 deletion test/Model/TemporaryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public function testLifecycle(): void
Allure::owner('Owner label');
Allure::lead('Lead label');
Allure::label('Label name', 'Label value');
Allure::host('Host label');
Allure::severity(Severity::critical());
Allure::parameter('Test param1 name', 'Test param1 value');
Allure::parameter('Test param2 name', null);
Expand Down

0 comments on commit b1ae884

Please sign in to comment.