EVOLUTION-MANAGER
Edit File: runTests.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Runs the tests associated with this Shiny app</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for runTests {shiny}"><tr><td>runTests {shiny}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Runs the tests associated with this Shiny app</h2> <h3>Description</h3> <p>Sources the <code>.R</code> files in the top-level of <code style="white-space: pre;">tests/</code> much like <code style="white-space: pre;">R CMD check</code>. These files are typically simple runners for tests nested in other directories under <code style="white-space: pre;">tests/</code>. </p> <h3>Usage</h3> <pre> runTests(appDir = ".", filter = NULL, assert = TRUE, envir = globalenv()) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>appDir</code></td> <td> <p>The base directory for the application.</p> </td></tr> <tr valign="top"><td><code>filter</code></td> <td> <p>If not <code>NULL</code>, only tests with file names matching this regular expression will be executed. Matching is performed on the file name including the extension.</p> </td></tr> <tr valign="top"><td><code>assert</code></td> <td> <p>Logical value which determines if an error should be thrown if any error is captured.</p> </td></tr> <tr valign="top"><td><code>envir</code></td> <td> <p>Parent testing environment in which to base the individual testing environments.</p> </td></tr> </table> <h3>Details</h3> <p>Historically, <a href="https://rstudio.github.io/shinytest/">shinytest</a> recommended placing tests at the top-level of the <code style="white-space: pre;">tests/</code> directory. This older folder structure is not supported by runTests. Please see <code><a href="shinyAppTemplate.html">shinyAppTemplate()</a></code> for more details. </p> <h3>Value</h3> <p>A data frame classed with the supplemental class <code>"shiny_runtests"</code>. The data frame has the following columns:</p> <table summary="Rd table"> <tr> <td style="text-align: left;"> <strong>Name</strong> </td><td style="text-align: left;"> <strong>Type</strong> </td><td style="text-align: left;"> <strong>Meaning</strong> </td> </tr> <tr> <td style="text-align: left;"> <code>file</code> </td><td style="text-align: left;"> <code>character(1)</code> </td><td style="text-align: left;"> File name of the runner script in <code style="white-space: pre;">tests/</code> that was sourced. </td> </tr> <tr> <td style="text-align: left;"> <code>pass</code> </td><td style="text-align: left;"> <code>logical(1)</code> </td><td style="text-align: left;"> Whether or not the runner script signaled an error when sourced. </td> </tr> <tr> <td style="text-align: left;"> <code>result</code> </td><td style="text-align: left;"> any or <code>NA</code> </td><td style="text-align: left;"> The return value of the runner </td> </tr> <tr> <td style="text-align: left;"> </td> </tr> </table> <hr /><div style="text-align: center;">[Package <em>shiny</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> </body></html>