allure-framework / allure-phpunit

Allure integrations for PHP test frameworks: PHPUnit
https://allurereport.org/
Apache License 2.0
60 stars 28 forks source link

After updating the allure-framework / allure-phpunit:^2.0, No option is available for whether to delete previous results on rerun #78

Open glo71317 opened 2 years ago

glo71317 commented 2 years ago

Describe the bug After updating the allure-framework/allure-phpunit:^2.0, No option is available for whether to delete previous results on rerun

To Reproduce Steps to reproduce the behaviour:

  1. run the command in your project - composer require allure-framework/allure-phpunit:^2
  2. configure the config file return [ // Path to output directory (default is build/allure-results) 'outputDirectory' => 'var/allure-results', 'deletePreviousResults' => true, //Whether to delete previous results on rerun 'ignoredAnnotations' => [ 'codingStandardsIgnoreStart' => 'codingStandardsIgnoreStart', ] ];
  3. now run/rerun the unit tests which is not deleting the old allure report from 'var/allure-results'

Expected behavior Only latest results allure report should be available and it was configurable in previous version

Screenshots

Screenshot 2022-09-14 at 8 41 23 PM

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

glo71317 commented 2 years ago

It would be great help if any other way we can do which are not able to get it.

remorhaz commented 2 years ago

It's not a bug. Dealing with any previous results is just not a responsibility of the Allure integration. You are free to use native shell commands to prepare the environment before running tests, including target directory cleanup.