Extend cartesian tests with parameterized record #772
Labels
⚙️ component: Pioneer
Issues about Pioneer own things (e.g. utils)
🚦 status: blocked
📖 theme: extensions
🏗️ type: enhancement
When writing a set of cartesian tests, there are cases where all test methods need the same set of arguments. Instead of configuring the argument sets for the cartesian product for each test method separately, the methods could accept a record whose components are annotated accordingly. E.g.:
Implementing this feature would require Java 16+, which is when records were introduced. While it would probably be possible to work around the additions to the reflection API, the
@Values
annotation would also need to be changed to targetRECORD_COMPONENT
, which was of course also added in 16.The text was updated successfully, but these errors were encountered: