Skip to content

Conversation

@m7pr
Copy link
Contributor

@m7pr m7pr commented Jan 23, 2024

🥇

@m7pr m7pr added the core label Jan 23, 2024
@m7pr m7pr requested a review from averissimo January 23, 2024 10:50
@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 2024

badge

Code Coverage Summary

Filename                         Stmts    Miss  Cover    Missing
-----------------------------  -------  ------  -------  ------------------
R/cdisc_data.R                       1       1  0.00%    38
R/default_cdisc_join_keys.R         11      11  0.00%    16-34
R/deprecated.R                      57      57  0.00%    19-344
R/dummy_function.R                   2       2  0.00%    14-15
R/formatters_var_labels.R           36      11  69.44%   60, 69-80
R/join_key.R                        38       0  100.00%
R/join_keys-c.R                     12       0  100.00%
R/join_keys-extract.R              128       0  100.00%
R/join_keys-names.R                 15       0  100.00%
R/join_keys-parents.R               30       0  100.00%
R/join_keys-print.R                 45       0  100.00%
R/join_keys-utils.R                 73       3  95.89%   35-38
R/join_keys.R                       21       0  100.00%
R/teal_data-class.R                 25       1  96.00%   69
R/teal_data-datanames.R             10       0  100.00%
R/teal_data-get_code.R              14       0  100.00%
R/teal_data-show.R                   4       4  0.00%    14-19
R/teal_data.R                       22       9  59.09%   31, 40-46, 49
R/testhat-helpers.R                 26       0  100.00%
R/topological_sort.R                32       0  100.00%
R/utils-get_code_dependency.R      128       0  100.00%
R/verify.R                          42      11  73.81%   63, 93-97, 100-104
R/zzz.R                             10      10  0.00%    4-16
TOTAL                              782     120  84.65%

Diff against main

Filename      Stmts    Miss  Cover
----------  -------  ------  --------
TOTAL             0       0  +100.00%

Results for commit: a77391f

Minimum allowed coverage is 80%

♻️ This comment has been updated with latest results

@github-actions
Copy link
Contributor

Unit Tests Summary

  1 files   14 suites   1s ⏱️
176 tests 174 ✅ 2 💤 0 ❌
244 runs  242 ✅ 2 💤 0 ❌

Results for commit a77391f.

@m7pr m7pr changed the title Append testthat prefix for join_keys tests Append testthat prefix for join_keys tests Jan 23, 2024
Copy link
Contributor

@averissimo averissimo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a few that were missing.

Seems good!

Q: Can you point me to documentation or issue where this convention of prefixing test´that:: is defined?

Copy link
Contributor

@chlebowa chlebowa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

@chlebowa
Copy link
Contributor

Q: Can you point me to documentation or issue where this convention of prefixing test´that:: is defined?

I don't believe there is one but the conventions is: in tests, prefix everything not native to the package tested. This goes even for shiny in Depends: shiny packages such as teal,

@averissimo
Copy link
Contributor

The insightsengineering packages are the first place I see this being applied for {testthat} expectations, test_that() and other {testthat} functions, hence the question.

My question was solely about {testthat} :-) shiny & others make obvious sense.

@chlebowa
Copy link
Contributor

Like many NEST conventions, I wasn't here when they were adopted, so I merely pass them on 🙂

@averissimo averissimo self-assigned this Jan 23, 2024
@m7pr m7pr merged commit dd1c67c into main Jan 23, 2024
@m7pr m7pr deleted the testthat_prefix@main branch January 23, 2024 12:08
@averissimo
Copy link
Contributor

@pawelru care to give some context? 😁

@pawelru
Copy link
Contributor

pawelru commented Jan 23, 2024

hmmm can't recall tbh
either way it's ok - the most important thing is to stay consistent within a package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants