Decorate test cases
https://bugs.dpdk.org/show_bug.cgi?id=1460
Bug ID: 1460
Summary: Decorate test cases
Product: DPDK
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: DTS
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Target Milestone: ---
Assigning attributes to test cases, which are functions, is easier done if the test cases were to be decorated with e.g. @test. By doing so, the test cases could also be represented by a metaclass to Mypy, enabling static type checking and hinting on function attributes. Moreover this metaclass could implement Protocols define some attributes that could be shares across several classes.
Attributes are also a way to configure the test case environment more easily, reducing the boilerplate code.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.