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
Issue/574 sys props restore v2 #700
Issue/574 sys props restore v2 #700
Conversation
Hey 👋 |
Drafted. |
…sue/574-sys-props-restore-v2
Add module dependency
Added tests
* Some test improvements for sys props
…sue/574-sys-props-restore-v2
This MR is ready to go other than I am getting one spotlessJavaCheck error in the EnvironmentVariablesExtensionDemo.java file. I don't see what it's complaining about - any suggestions would be helpful. Also, I didn't see a Gradle way to generate the user docs from the .adoc files - Is there a way to do that? |
Co-authored-by: Daniel Kraus <daniel.kraus@mailbox.org>
…junit-pioneer into issue/574-sys-props-restore-v2
Co-authored-by: Daniel Kraus <daniel.kraus@mailbox.org>
Co-authored-by: Daniel Kraus <daniel.kraus@mailbox.org>
Co-authored-by: Daniel Kraus <daniel.kraus@mailbox.org>
I think I have addressed all requested changes. Of all the items in the reviews, the one that stands out as perhaps only partly resolved is if the |
And use `Deque` interface as in other test.
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.
Once again: sorry it took so long. We can now merge this PR – thanks for the hard work! 🎉
Add restore functionality to SystemProps & EnvironmentVars Extensions (#574 / #700)
To allow users to modify System.Properties and Env Vars directly in their test code outside of the existing
set
andclear
annotations, newrestore
annotations revert these resources to their pre-test state.The new
restore
annotations can be used at the class or method level and the functionality wasadded to the existing extension classes.
Closes #574
PR: #700
PR checklist
The following checklist shall help the PR's author, the reviewers and maintainers to ensure the quality of this project.
It is based on our contributors guidelines, especially the "writing code" section.
It shall help to check for completion of the listed points.
If a point does not apply to the given PR's changes, the corresponding entry can be simply marked as done.
Documentation (general)
.adoc
file in thedocs
folder, e.g.docs/report-entries.adoc
.adoc
file references demo insrc/demo/java
instead of containing code blocks as text.adoc
files)Documentation (new extension)
docs/docs-nav.yml
navigation has an entry for the new extensionpackage-info.java
contains information about the new extensionCode
Contributing
README.md
mentions the new contribution (real name optional)