-
Notifications
You must be signed in to change notification settings - Fork 107
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
Improve test suite focusing on the DAG's behavior #515
Conversation
… conditions in dependant groups
…epeat instances work
Also, take the chance to rename it from isParentOf, which was misleading
Also, take the chance to fix the new ref creation to copy not only the context's multiplicity value, but its predicates too.
Codecov Report
@@ Coverage Diff @@
## master #515 +/- ##
===========================================
+ Coverage 51.17% 51.38% +0.2%
- Complexity 3083 3109 +26
===========================================
Files 247 247
Lines 13854 13855 +1
Branches 2685 2685
===========================================
+ Hits 7090 7119 +29
+ Misses 5922 5898 -24
+ Partials 842 838 -4
Continue to review full report at Codecov.
|
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.
Overall great. Most of my comments are me thinking through things and don't necessarily need action. You may like some of the comment or renaming suggestions but I don't think any are critical. The only one I'd really like to see addressed is #515 (comment).
I have to say that I'm not excited about the DSL. It's a thin wrapper so I like it somewhat more than the one proposed at #454 but I'm not convinced that it's helpful. Using it still requires understanding the XForm structure and adds on another layer to study and understand.
I agree strongly that having the form definitions inline with the tests helps organize things and understand the test's context. But I don't see the benefit of the DSL over using string representations of the actual form definitions. Can you help me understand that? I'm ok with running with it because I think we have good momentum and don't want to slow things down but I'd really like to know your thinking.
src/test/java/org/javarosa/core/model/instance/TreeReferenceIsAncestorOfTest.java
Outdated
Show resolved
Hide resolved
So, regarding the DSL, here's my mindset about it:
|
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.
Thanks for describing some future plans for the DSL. I'd recommend putting some of that in a comment the same way you did with Scenario
so someone else coming along later can at least see some of the planned directions. I'll remain cautiously optimistic about it. 😊
I might have the wrong idea of what's happening here but should |
Yes, @seadowg, it was a mistake to rename it and not provide an alias, sorry! #519 already tracks this and @grzesiek2010 is working on a fix. |
@ggalmazor ach sorry I totally missed that! |
Don't worry ;) |
This PR improves the test suite by adding new tests and by providing a new DSL to define forms directly in tests.
How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
The only change that could affect users is a small change in
TreeReference.contextualize()
that could be considered fixing of a harmless formal bug. See 11262ae for more context about this.