-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[refactor] Move builtins in a separate module file and improve make_test()
#2470
Conversation
Hello @vkarak, Thank you for updating! Cheers! There are no PEP8 issues in this Pull Request!Do see the ReFrame Coding Style Guide Comment last updated at 2022-03-15 19:16:20 UTC |
make_test
make_test()
Codecov Report
@@ Coverage Diff @@
## master #2470 +/- ##
==========================================
+ Coverage 85.69% 85.70% +0.01%
==========================================
Files 56 57 +1
Lines 10534 10544 +10
==========================================
+ Hits 9027 9037 +10
Misses 1507 1507
Continue to review full report at Codecov.
|
@jenkins-cscs retry daint |
This PR moves all the builtins in the module
reframe.core.builtins
. This is to allow their use with themake_test()
utility function that defines tests dynamically. Builtins that were manipulating the directly the namespace of the class were refactored so that they don't need to do it. There is one exception, which is also the only builtin that didn't move to the new module: thebind()
builtin. This builtin needs to bind a free function to the test class and therefore needs to manipulate the test class namespace. Unit tests are also added to testmake_test()
with builtins. Finally, this PR moves all the documentation of the builtins in the source code avoiding duplication we had previously. The overall documentation for builtins is also slightly refactored.This PR is a prerequisite for #2458.
Fixes #2427.