-
Notifications
You must be signed in to change notification settings - Fork 343
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
nrunner: reorganization of unittests #5966
nrunner: reorganization of unittests #5966
Conversation
f165220
to
597a771
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @clebergnu, the overall changes LGTM. I have just one proposal about removing some tests, but we can merge it without it. And one proposal to commit format which would help me to finish the review.
a468d77
to
68f5f5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @clebergnu, thank you for your updates. I have one more comment to the runner_tap.py
path. Please let me know what do you think.
The temp directory is being used simply to hold the content of runnable recipes (JSON files) which are created by means of Runnable.write_json(). But, Runnable.write_json() itself is utter uninteresting, being simply a convenience around Runnable.get_json(). Signed-off-by: Cleber Rosa <[email protected]>
This avoids some codepaths that can mock the loading of the JSON schema, instead of the opening of the recipe file. Signed-off-by: Cleber Rosa <[email protected]>
There are some "blind spots" in the runnable code, such as when dealing with serialization from JSON files and Runnable's configuration. To allow for a clearer view of the current coverage of Runnable's features, let's reorganize their tests in a file of its own, and based on the usage and where the data is coming from or going to. Signed-off-by: Cleber Rosa <[email protected]>
Signed-off-by: Cleber Rosa <[email protected]>
68f5f5e
to
c97ca92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the changes it LGTM, thanks @clebergnu.
There are some "blind spots" in the runnable code, such as when dealing with serialization from JSON files and Runnable's configuration.
To allow for a clearer view of the current coverage of Runnable's features, let's reorganize their tests in a file of its own, and based on the usage and where the data is coming from or going to.