-
Notifications
You must be signed in to change notification settings - Fork 5
[INFRA] Adding tests #117
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
[INFRA] Adding tests #117
Conversation
- devtools::check() [ FAIL 0 | WARN 0 | SKIP 0 | PASS 28 ] - covr::package_coverage() bpmnVisualization Coverage: 100.00% R/bpmnVisualization.R: 100.00% R/funs.R: 100.00%
|
Thanks for your contribution, we are going to review it in the next days. |
|
Sure thing. Yes, that's an issue with {htmlwidgets} that depends on {shiny} but doesn't actually import it, yet it still needs it in its renderer (which seems to be a bug in {htmlwidget}?). Anyway, feel like the issue was there from before my tests (package might not be working if you only had {htmlwidgets} installed), but I'll add the dep in the widget builder so that it works. What do you prefer :
? |
|
Thanks for the details about Anyway, tests are proving the issue, so let's fix this. I would prefer solution 2 because our code doesn't depend on |
Also, added {rlang} as dep and {shiny} as suggest
|
Hey, I just updated the code to reflect these changes :) Cheers, |
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 a lot @ColinFay I really appreciate this contribution: it detects and fix an issue with the missing {shiny} dependency, it improves the documentation of the functions and the function extraction makes the code easier to read 💯
As mentioned in #33 (comment), this PR includes additional formatting of the code, but this is perfectly acceptable as the project currently has no formatting guidelines.
This is definitely something we will have to work on soon!
csouchet
left a comment
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.
Thank you very much for your contribution and for your help on this part 🙏🏻
I will be happy if you want to help us on another subject 🙂
|
Hi @ColinFay and thanks again for your contributions. ❓ I have one last question because I am curious 😸 . |
This closes #6
Funs has been moved to another file, so that they can be tested independently.
[ FAIL 0 | WARN 0 | SKIP 0 | PASS 28 ]
bpmnVisualization Coverage: 100.00%
R/bpmnVisualization.R: 100.00%
R/funs.R: 100.00%