-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Labels
O: code-hygieneObjective: aims to improve code hygieneObjective: aims to improve code hygieneO: maintainabilityObjective: cause to ease modification, fault corrections and improve code understandingObjective: cause to ease modification, fault corrections and improve code understandingO: testingObjective: aims to improve testing coverageObjective: aims to improve testing coverage
Description
Improvement Summary
Currently, some of the rust tests contain a group of table/data-driven tests. These tests will fail if one in the group fails.
We want to treat each testcases individually. If one fails, the others in the group may continue.
Proposal
The current Rust release doesn't support this feature. The common opinion in the Rust community is to keep each testcases in a separate test method, potentially using a macro.
We don't want to implement/maintain our macro. So we will use rstest as a solution. The following is a refactored code of the above example using rstest.
Metadata
Metadata
Assignees
Labels
O: code-hygieneObjective: aims to improve code hygieneObjective: aims to improve code hygieneO: maintainabilityObjective: cause to ease modification, fault corrections and improve code understandingObjective: cause to ease modification, fault corrections and improve code understandingO: testingObjective: aims to improve testing coverageObjective: aims to improve testing coverage