allure2 icon indicating copy to clipboard operation
allure2 copied to clipboard

DevOps Plugin - Unknown Test Runner

Open digikiwam opened this issue 7 years ago • 8 comments

Running Plugin in Azure DevOps generated the following error.

Unable to process command '##vso[results.publish type=Allure;mergeResults=true;publishRunAttachments=true;resultFiles=D:\a\1\s\allure-report\20181218.4;]' successfully. Please reference documentation (http://go.microsoft.com/fwlink/?LinkId=817296)

Unknown Test Runner.

I have the test results pointing to the solutions folder.

$(Build.SourcesDirectory)\MyTest\MyTest\bin$(BuildConfiguration))allure-results

Only solution out there is a workaround of using the command line task to gen the report. There is no documentation in the wiki for DevOps or VSTS Plugin (only one missing).

Suggestions?

digikiwam avatar Dec 18 '18 20:12 digikiwam

@digikiwam am I right that you are having troubles with https://marketplace.visualstudio.com/items?itemName=Molecula.allure-test-reports ?

baev avatar Jan 14 '19 15:01 baev

Yes,

I have a build in VSTS that uses the Allure VSTS report generator add in.

When I run the build, the Generate Allure Report task fails. I have tried numerous paths to the results location – no luck. I have some success using a command line, however results are still not generated.

[cid:[email protected]]

I searched for other users that have this issue, the only post I could find was this… https://stackoverflow.com/questions/48691288/allure-plugin-for-vsts-returns-error-unknown-test-runner

and I have tried both the suggestions workaround, no luck.

I have this repo on my external VSTS and can share if you want to take a look (there is no proprietary code in this repo).

Thanks

From: Dmitry Baev [mailto:[email protected]] Sent: Monday, January 14, 2019 9:36 AM To: allure-framework/allure2 [email protected] Cc: John Stewart [email protected]; Mention [email protected] Subject: Re: [allure-framework/allure2] DevOps Plugin - Unknown Test Runner (#880)

@digikiwamhttps://github.com/digikiwam am I right that you are having troubles with https://marketplace.visualstudio.com/items?itemName=Molecula.allure-test-reports ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/allure-framework/allure2/issues/880#issuecomment-454047698, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOiBTRKuhB_4j4dIHoavuKi2pKMNypS6ks5vDKPigaJpZM4Z-RQX.

Please consider the impact on the environment before printing this email and/or its attachments.

This email and the associated attachments may contain information that is proprietary, privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient or otherwise have received this message in error, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you are not the intended recipient or otherwise have received this message in error, please notify us immediately, destroy any paper copies and delete all electronic files of the message. Thank you. Digi-Key Electronics.

digikiwam avatar Jan 14 '19 19:01 digikiwam

Hi Team,

Allure Test Reports plugin is not working on Azure, i am getting below error could you please look into it.

I have checked C:\agent_work\2\s\target\allure-results contains multiple files

2020-02-12T09:42:21.9156093Z ##[section]Starting: Generate Allure Report 2020-02-12T09:42:22.0589528Z ============================================================================== 2020-02-12T09:42:22.0589617Z Task : Generate Allure Report 2020-02-12T09:42:22.0589645Z Description : Generates Allure report based on the test results 2020-02-12T09:42:22.0589673Z Version : 1.0.0 2020-02-12T09:42:22.0589697Z Author : Molecula 2020-02-12T09:42:22.0589727Z Help : More Information 2020-02-12T09:42:22.0589752Z ============================================================================== 2020-02-12T09:42:22.9191463Z [command]C:\Program Files\nodejs\node.exe C:\agent_work_tasks\AllureGenerate_5c975f9d-1c3a-469f-b7c2-8907bf3eacfb\1.0.0\node_modules\allure-commandline\bin\allure generate --output C:\agent_work\2\s\allure-report\20200212.10 C:\agent_work\2\s\target\allure-results 2020-02-12T09:42:26.9963352Z Command aborted due to exception {}.

2020-02-12T09:42:26.9963671Z Exception in thread "main" ru.yandex.qatools.allure.data.ReportGenerationException: Could not find any allure results

2020-02-12T09:42:26.9963753Z org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)

2020-02-12T09:42:26.9963833Z at ru.yandex.qatools.allure.data.AllureReportGenerator.generate(AllureReportGenerator.java:58) 2020-02-12T09:42:26.9963900Z at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404) 2020-02-12T09:42:26.9964290Z at ru.yandex.qatools.allure.data.AllureReportGenerator.generate(AllureReportGenerator.java:53) 2020-02-12T09:42:26.9964350Z at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166) 2020-02-12T09:42:26.9964634Z at ru.yandex.qato

stambecg avatar Feb 12 '20 10:02 stambecg

Has the same error as @stambecg 2020-03-02T15:11:27.3512712Z ##[section]Starting: Generate Allure Report 2020-03-02T15:11:27.3629874Z ============================================================================== 2020-03-02T15:11:27.3630373Z Task : Generate Allure Report 2020-03-02T15:11:27.3630702Z Description : Generates Allure report based on the test results 2020-03-02T15:11:27.3630987Z Version : 1.0.0 2020-03-02T15:11:27.3631230Z Author : Molecula 2020-03-02T15:11:27.3631598Z Help : More Information 2020-03-02T15:11:27.3632039Z ============================================================================== 2020-03-02T15:11:27.6307062Z [command]C:\Program Files\nodejs\node.exe D:\a_tasks\AllureGenerate_5c975f9d-1c3a-469f-b7c2-8907bf3eacfb\1.0.0\node_modules\allure-commandline\bin\allure generate --output D:\a\1\s\allure-report\20200302.11 D:\a\1\s\Interdan.UI.Automation.Tests\bin\Debug\netcoreapp3.1\allure-results 2020-03-02T15:11:38.1776411Z Exception in thread "main" ru.yandex.qatools.allure.data.ReportGenerationException: Could not find any allure results 2020-03-02T15:11:38.1777217Z Command aborted due to exception {}. 2020-03-02T15:11:38.1778001Z at ru.yandex.qatools.allure.data.AllureReportGenerator.generate(AllureReportGenerator.java:58) 2020-03-02T15:11:38.1778542Z org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) 2020-03-02T15:11:38.1779230Z at ru.yandex.qatools.allure.data.AllureReportGenerator.generate(AllureReportGenerator.java:53) 2020-03-02T15:11:38.1779716Z at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404) 2020-03-02T15:11:38.1780329Z at ru.yandex.qatools.allure.AllureMain.main(AllureMain.java:48) 2020-03-02T15:11:38.1780844Z at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166) 2020-03-02T15:11:38.1781593Z at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:153) 2020-03-02T15:11:38.1782186Z at ru.yandex.qatools.allure.command.ReportGenerate.runUnsafe(ReportGenerate.java:48) 2020-03-02T15:11:38.1782808Z at ru.yandex.qatools.allure.command.AbstractCommand.run(AbstractCommand.java:52) 2020-03-02T15:11:38.1783356Z at ru.yandex.qatools.allure.CommandLine.main(CommandLine.java:46) 2020-03-02T15:11:38.1784577Z org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) 2020-03-02T15:11:38.1785214Z at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)

The reports are present in D:\a\1\s\Interdan.UI.Automation.Tests\bin\Debug\netcoreapp3.1\allure-results:

http://prntscr.com/rae9re

VStepulo avatar Mar 02 '20 15:03 VStepulo

Do you have any updates by this issue?

Garynychxxx avatar Mar 04 '20 15:03 Garynychxxx

@Garynychxxx seems to be nobody is maintaining this plugin.

https://github.com/allure-framework/allure2/issues/919

fescobar avatar Mar 04 '20 16:03 fescobar

Will someone fix this issue?

ElkRom avatar Dec 30 '21 08:12 ElkRom

having the same error with playwright allure in azure

alexzavg avatar Aug 15 '22 21:08 alexzavg

having the same error with playwright allure in azure

The same here! Any update?

Thanks!

uLucasFraga avatar Dec 29 '22 11:12 uLucasFraga

Same issue ! Any update or workaround, i'm using tech maven+java+playwright?

Thanks

ManuSharma22796 avatar Aug 17 '23 19:08 ManuSharma22796

Duplicate of #1140

baev avatar Jan 08 '24 18:01 baev

Official Allure extension for Azure Pipelines are now available https://marketplace.visualstudio.com/items?itemName=qameta.allure-azure-pipelines

History isn't yet supported, but we'll get there! Please submit feedback to our discussions

baev avatar Feb 01 '24 12:02 baev