[feat] Support custom indexed and external references#3630
[feat] Support custom indexed and external references#3630vkarak merged 6 commits intoreframe-hpc:developfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3630 +/- ##
===========================================
+ Coverage 91.64% 91.70% +0.06%
===========================================
Files 62 62
Lines 13530 13713 +183
===========================================
+ Hits 12399 12576 +177
- Misses 1131 1137 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Giving it a final testing round on our actual tests, I discovered a bug. If a |
5149b44 to
327e59f
Compare
327e59f to
eaa61f4
Compare
|
Still not merging; I discovered a bug in the prefix calculation when the |
This PR extends the test's
referencesyntax to support arbitrary indexing on test attributes as well as other configuration parameters, such as the current partition, environment, processor and/or device details. If no special indexing is requested, the reference dictionary behaves exactly as before.Support for external reference files is also added, where the reference dict of a test can be in an external YAML file.
Check the docs for all the details of the new features.
Implementation details
The test's prefix is now passed as a metaclass parameter and is not set during the test's initialization.
This was needed to support the default external reference prefix, which coincides with the test's prefix, so we needed the test's prefix to be available during class creation and when thereferenceis defined in the test class body.Since the test prefix is known during the class creation it is more natural to move there. Also all prefix manipulations are handled in single place now.
Closes #3463