From 75c3e1a78ad21738609f710786fadb32bd75bcf6 Mon Sep 17 00:00:00 2001 From: Michael Chow Date: Fri, 3 May 2019 09:00:51 -0400 Subject: [PATCH] [LE-591] Update to use previous version of testthat (#4) * Update reporter-project.R to support fix in testthat * Bump patch version --- DESCRIPTION | 2 +- R/reporter-project.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index e5439f9..60ea2ef 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: IRkernel.testthat Title: What the Package Does (one line, title case) -Version: 0.2.0 +Version: 0.2.1 Authors@R: person("Michael", "Chow", email = "michael@datacamp.com", role = c("aut", "cre")) Description: Implements reporter for communicating testthat results to a jupyter client. License: All Rights Reserved diff --git a/R/reporter-project.R b/R/reporter-project.R index 1230871..3bb079c 100644 --- a/R/reporter-project.R +++ b/R/reporter-project.R @@ -46,7 +46,7 @@ ProjectReporter <- R6::R6Class("ProjectReporter", inherit = testthat::ListReport lapply(test$results, `[[`, 'message'), collapse = '\n') - res <- testthat:::sumarize_one_test_results(test) + res <- testthat:::summarize_one_test_results(test) success <- !any(res$failed, res$error) # figure out outcome, e.g. for counting errors later if (!success) {