Allure report displays "%NA%", with no coverage report of Pytest result & "UnrecognizedPropertyException: Unrecognized field "titlePath" #3114
Replies: 1 comment 1 reply
-
Please update allure-commandline to the latest version. See https://stackoverflow.com/a/78751733/3915166 for the details. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Everyone,
I'm trying to generate a coverage report containing the pytest unit test cases result, using Allure tool. I ran the pytest through a Tox command. In the tox file, the Allure tool is invoked by the following command:
`
deps =
pytest
allure-pytest
-rrequirements.txt
; Let's remove any output files/directories from previous pytest run
commands_pre = python {[utilities]root_dir}/clean_report_dir.py {[reports]root_dir}/pytest
; Let's run pytest
commands =
- pytest {posargs: {toxinidir}/tests}
--alluredir={[reports]root_dir}/pytest/allure
allowlist_externals=*
; Let's run the allure report server
commands_post = python {[utilities]root_dir}/allure/allure-2.13.3/bin/run_allure_server.py {[reports]root_dir}/pytest/allure`
I've noticed on the Allure tool command prompt, it says "Could not read test result file C:\git-repos\aster_DEV\aster..." & "UnrecognizedPropertyException: Unrecognized field "titlePath""
LOGS:
Could not read test result file C:\git-repos\aster_DEV\aster\tests\reports\pytest\allure\fe398185-c1c5-4673-a69f-f668a8da8135-result.json com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "titlePath" (class io.qameta.allure.model.TestResult), not marked as ignorable (18 known properties: "start", "descriptionHtml", "parameters", "name", "historyId", "statusDetails", "status", "links", "fullName", "uuid", "description", "testCaseId", "stage", "labels", "stop", "steps", "rerunOf", "attachments"]) at [Source: (sun.nio.ch.ChannelInputStream); line: 1, column: 1041] (through reference chain: io.qameta.allure.model.TestResult["titlePath"]) at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61) at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:823) at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:1153) at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1589)
Beta Was this translation helpful? Give feedback.
All reactions