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
Support testing
inside checking
and make checking
options optional
#65
Support testing
inside checking
and make checking
options optional
#65
Conversation
testing
inside checking
and make checking
options optional
4dbf2af
to
2a8b5fa
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.
I didn't write this code and don't have enough of the clojure.test internals in my head to be able to easily judge if the approach makes sense; if you're confident it does and that it's not a breaking change for users, then I don't mind merging it
I'll give it another look next week and confirm whether it's breaking. I was pretty happy with it when I wrote it. |
Nothing has come to mind that might be breaking. After another read, I'm pretty sure we're just (carefully) adding logging information. The |
(f)) | ||
|
||
:cljs | ||
(binding [*chuck-captured-reports* reports-atom | ||
cljs.test/*current-env* (cljs.test/empty-env ::chuck-capture)] | ||
ct/*current-env* (assoc (ct/empty-env ::chuck-capture) | ||
:testing-contexts (:testing-contexts (ct/get-current-env)))] |
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.
is one of these keywords supposed to be namespaced? I'm comparing to the (new) line 112 in particular
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.
Good question, I don't think so.
This forwards the current :testing-contexts
to (new) lines 50, 55, 60, 65 so then we can attach them to the report via ::testing-contexts
. Then, ::testing-contexts
is retrieved in -report
.
The same idea is done for :clj
on line 65
.
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.
To be clearer, these cannot be namespaced because it's working with envs from cljs.test
, which uses :testing-contexts
as a field.
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.
Left a single comment/question; I'll merge and release assuming the answer isn't prohibitive.
thanks!
Thanks! |
Released as |
Thanks for the feedback! |
<!-- Specify linked issues and REMOVE THE UNUSED LINES --> test.chuck now supports `testing` within `checking`: gfredericks/test.chuck#65. <!-- Describe your PR for reviewers. Don't forget to set correct labels (User Facing / Beta / Feature Flag) If there is UI change please add a screen capture. --> <!-- UNCOMMENT THIS SECTION IF NEEDED <a name="iroh-services-clients">[§](#iroh-services-clients)</a> IROH Services Clients ===================================================================================== Put all informations that need to be communicated to IROH Services Clients. Typically IROH-UI, ATS Integration, Orbital, etc... --> <a name="qa">[§](#qa)</a> QA ============================ <!-- Describe the steps to test your PR. 1. 2. 3. Or if no QA is needed keep it as is. --> No QA is needed. <!-- UNCOMMENT THIS SECTION IF NEEDED <a name="ops">[§](#ops)</a> Ops =============================== Specify Ops related issues and documentation - Config change needed: threatgrid/tenzin# - Migration needed: threatgrid/tenzin# - How to enable/disable that feature: (ex remove service from `bootstrap.cfg`, add scope to org) --> <!-- UNCOMMENT THIS SECTION IF NEEDED <a name="documentation">[§](#documentation)</a> Documentation ============================================================= Public Facing documentation section; - Public documentation updated needed: threatgrid/iroh-ui# See internal [doc file](./services/iroh-auth/doc/public-doc.org) --> <a name="release-notes">[§](#release-notes)</a> Release Notes ============================================================= <!-- REMOVE UNUSED LINES --> ``` intern: Use new test.chuck logging features ``` <a name="squashed-commits">[§](#squashed-commits)</a> Squashed Commits ======================================================================
Close #57
This PR adds support for nesting
testing
insidechecking
forms and makes the options argument tochecking
optional.