• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mong / tmongr / 1191
87%

Build:
DEFAULT BRANCH: master
Ran 19 Apr 2020 06:27PM UTC
Jobs 1
Files 14
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1191

push

travis-ci

web-flow
Use moduleServer instead of callModule setup (#89)

`testModule` is no longer a part of `shiny`, so we have to use `testServer` to test our modules. `callModule` way of running modules and regular functions way of making modules can not be tested by `testServer`. Thus, we have to use `moduleServer` to make modules (and run the modules as regular functions). This is also the recommended way according to `?shiny::callModule`:

> Starting in Shiny 1.5.0, we recommend using moduleServer instead of callModule, because the syntax is a little easier to understand, and modules created with moduleServer can be tested with testServer().

In practice I have replaced all
```R
mymodule <- function(input, output, session, arg1, arg2) {
```
with
```R
mymodule <- function(id, arg1, arg2) {
   shiny::moduleServer(id, function(input, output, session) {
```
in the module part, and replaced all
```R
shiny::callModule(mymodule, "myID", arg1 = "blablabla", arg2 = "blablabla2")
```
with
```R
mymodule("myID", arg1 = "blablabla", arg2 = "blablabla2")
```
where we call modules.

32 of 32 new or added lines in 4 files covered. (100.0%)

856 of 980 relevant lines covered (87.35%)

14.19 hits per line

Jobs
ID Job ID Ran Files Coverage
2 1191.2 (_R_CHECK_TESTS_NLINES_=0) 19 Apr 2020 06:27PM UTC 0
87.35
Travis Job 1191.2
Source Files on build 1191
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1191
  • acaf57ea on github
  • Prev Build on master (#1176)
  • Next Build on master (#1196)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc