#' log_test_fails_summary
#'
#' Get a summary of the failed tests in the mobile logs
#' @param df The test dataframe
#' @export
log_test_fails_summary <- function(df) {
require(lubridate)
require(tidyverse)
os_name <- ifelse('device_model' %in% names(df),'iOS','Android')
df2 <- df %>%
filter(test_perfect == FALSE) %>%
select(event_name:test_schema_fails,date) %>%
distinct() %>%
arrange(event_name) %>%
mutate(os = os_name,
date = ymd(date))
return(df2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.