Skip to content

[Bug]: tm_a_regression serverTests fail when verifying plot objects #971

@osenan

Description

@osenan

What happened?

In previous attempts to create testServer scenarios for module tm_a_regression the test pass when we call them using devtools::test() or similar but fail when called by covr::package_coverage.

The output error when using package_coverage is:

Error in `current[[1L]]`: object of type 'symbol' is not subsettable`

Tips to reproduce this issue:

  1. Add verifications of output in one testServer:
 output_result <- output_q()
 testthat::expect_true(inherits(output_result, "teal_data"))
 plot_result <- plot_r()
  1. Comment all other test in test-tm_a_regression.R
  2. Remove (temporarly) all other test files from folder tests/testthat but keep helper functions. (Hint in terminal:
mv test-tm_a_regression.R ../test-tm_a_regression.R
rm test*.R
mv ../test-tm_a_regression.R ./
  1. Run covr::package_coverage(clean = FALSE)

Also of your interest:

sessionInfo()

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Security Policy

  • I agree to follow this project's Security Policy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcore

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions