Create a nested tibble of issues and tests
Source:R/CompileIssueTestMatrix.R
CompileIssueTestMatrix.RdCombine the data from CompileTestResults() and FetchRepoIssues() into a
nested tibble organized by milestone, with each milestone containing issues
and associated tests.
Arguments
- dfRepoIssues
(
qcthat_Issuesor data frame) Data frame of GitHub issues as returned byFetchRepoIssues().- dfTestResults
(
qcthat_TestResultsor data frame) Data frame of test results as returned byCompileTestResults().
Value
A qcthat_IssueTestMatrix object, which is a tibble with columns:
Milestone: The milestone title associated with the issues.Issue: Issue number.Title: Issue title.Body: Issue body (the full text of the issue).Labels: List column of character vectors of issue labels.State: Issue state (openorclosed).StateReason: Reason for issue state (e.g.,completed) orNAif not applicable.Type: Issue type or"Issue"if no issue type is available.Url: URL of the issue on GitHub.ParentOwner: GitHub username or organization name of the parent issue if applicable, otherwiseNA.ParentRepo: GitHub repository name of the parent issue if applicable, otherwiseNA.ParentNumber: GitHub issue number of the parent issue if applicable, otherwiseNA.CreatedAt:POSIXcttimestamp of when the issue was created.ClosedAt:POSIXcttimestamp of when the issue was closed, orNAif the issue is still open.Test: Thedescfield of the test fromtestthat::test_that().File: File where the test is defined.Disposition: Factor with levelspass,fail, andskipindicating the overall outcome of the test.
Examples
if (FALSE) { # interactive()
lTestResults <- testthat::test_local(
stop_on_failure = FALSE,
reporter = "silent"
)
CompileIssueTestMatrix(
dfRepoIssues = FetchRepoIssues(),
dfTestResults = CompileTestResults(lTestResults)
)
}