Skip to content

Conversation

@strufkin
Copy link

@strufkin strufkin commented Dec 1, 2021

Context

If you have custom converter which makes an array from parameter string from feature file, allure will throw below exception upon report generation, hence we have to make this to be string back:

Could not read test result file allure\e3769575-aa8f-404e-9068-732f53e6db7c-result.json
com.fasterxml.jackson.databind.exc.MismatchedInputException: 
Cannot deserialize value of type `java.lang.String` from Array value (token `JsonToken.START_ARRAY`)
 at [Source: (sun.nio.ch.ChannelInputStream); line: 1, column: 15070] 
 (through reference chain: io.qameta.allure.model.TestResult["parameters"]->java.util.ArrayList[2]->io.qameta.allure.model.Parameter["value"])
        at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)

Checklist

@CLAassistant
Copy link

CLAassistant commented Dec 1, 2021

CLA assistant check
All committers have signed the CLA.

@delatrie
Copy link
Contributor

example_converters are removed in Pytest-BDD 5. Now, outline parameters are always strings.

#845 fixes it for pytest parameters (@pytest.mark.parametrize) and step-level args

@delatrie delatrie closed this Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants