GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Allure PHPUnit extension is not recognising the parameter path if the phpunit.xml.dist is placed in a different directory than root. #106 by manishranjan-adobe · Pull Request #107 · allure-framework/allure-phpunit

Conversation

@manishranjan-adobe

@manishranjan-adobe manishranjan-adobe commented Oct 9, 2024 •
edited by baev
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

If phpunit.xml.dist file is placed in a different path other than root. Then in CLI, if I am running below command from project root:

./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist

It is giving below error:

There was 1 PHPUnit test runner warning:

Bootstrapping of extension Qameta\Allure\PHPUnit\AllureExtension failed: Config file allure/allure.config.php doesn't exist
#0 /opt/homebrew/var/www/project/vendor/allure-framework/allure-phpunit/src/AllureExtension.php(39): Qameta\Allure\PHPUnit\AllureExtension->loadConfigData('allure/allure.c...')
#1 /opt/homebrew/var/www/project/vendor/allure-framework/allure-phpunit/src/AllureExtension.php(99): Qameta\Allure\PHPUnit\AllureExtension->createTestLifecycle('allure/allure.c...')
#2 /opt/homebrew/var/www/project/vendor/phpunit/phpunit/src/Runner/Extension/ExtensionBootstrapper.php(73): Qameta\Allure\PHPUnit\AllureExtension->bootstrap(Object(PHPUnit\TextUI\Configuration\Configuration), Object(PHPUnit\Runner\Extension\Facade), Object(PHPUnit\Runner\Extension\ParameterCollection))
#3 /opt/homebrew/var/www/project/vendor/phpunit/phpunit/src/TextUI/Application.php(418): PHPUnit\Runner\Extension\ExtensionBootstrapper->bootstrap('Qameta\\Allure\\P...', Array)
#4 /opt/homebrew/var/www/project/vendor/phpunit/phpunit/src/TextUI/Application.php(131): PHPUnit\TextUI\Application->bootstrapExtensions(Object(PHPUnit\TextUI\Configuration\Configuration))
#5 /opt/homebrew/var/www/project/vendor/phpunit/phpunit/phpunit(104): PHPUnit\TextUI\Application->run(Array)
#6 /opt/homebrew/var/www/project/vendor/bin/phpunit(122): include('/opt/homebrew/v...')
#7 {main}

Steps to reproduce the behavior:

  1. Clone this repository https://github.com/manishranjan-adobe/php-testing-allure
  2. Run composer install
  3. From the project's root directory, run the below command.
    vendor/bin/phpunit -c allure/phpunit.xml tests/UserTest.php

Expected behavior
It was supposed to work smoothly with all configurations being used properly and allure reports being generated.

Actual behavior
Getting error as described in description and no allure reports are getting generated. AllureExtension is not taking absolute path as it should be. This behaviour was working correctly with PHPUnit 9 config file.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

nishant04412, MoT3rror, arjun-tm, and JosephLeedy reacted with thumbs up emoji
All reactions
  • 👍 4 reactions
@manishranjan-adobe
Allure PHPUnit extension is not recognising the parameter path if the…
cd0fefb
… phpunit.xml.dist is placed in a different directory than root
@CLAassistant

CLAassistant commented Oct 9, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nishant04412

nishant04412 commented Oct 9, 2024

Copy link
Copy Markdown

This PR will fix issue #106

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@manishranjan-adobe

manishranjan-adobe commented Oct 17, 2024

Copy link
Copy Markdown
Author

@remorhaz I hope you're doing well! I’ve submitted a pull request that addresses #106.

It would be great if you could take a moment to review it when you have the time. I’ve made sure to follow the contribution guidelines, but I’d appreciate any feedback or suggestions for improvement.

Looking forward to your insights!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nishant04412 nishant04412 mentioned this pull request Oct 21, 2024
[v2] Use external config instead of arguments in phpunit.xml #66
Open
@nishant04412 nishant04412 mentioned this pull request Mar 6, 2025
Can't run unit test magento/magento2#36702
Closed
5 tasks
@candemiralp

candemiralp commented May 14, 2025

Copy link
Copy Markdown

Hello,

This issue is a blocker for running unit tests on Magento 2. Could you please review the proposed changes in the pull-request?

Best Regards,
Can

nishant04412 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nishant04412

nishant04412 commented May 14, 2025

Copy link
Copy Markdown

@candemiralp Thank you for the confirmation. To help bring more visibility to the issue, please consider giving it a thumbs-up so the appropriate team can take notice.

In the meantime, for Magento 2 users, this issue is documented in the official Adobe guide:
Running CLI Commands with PHPUnit 10, which also includes steps for resolving it locally.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@delatrie
delatrie self-requested a review June 6, 2025 09:01
@delatrie
delatrie removed their request for review November 12, 2025 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@manishranjan-adobe @CLAassistant @nishant04412 @candemiralp
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.