Skip to content

Consider changes to tests #327

@k-doering-NOAA

Description

@k-doering-NOAA

I noticed when running the ASAR tests on codespaces (ubuntu linux)
that a few times the tests halted and I was asked to provide yes/no input on whether I wanted a file overwritten. I'm not sure if this is the case on windows, too.

My understanding about testing is that it is preferable for the tests to run end-to-end without asking for developer input, so it would be good to set that up if possible!

Edit: I also noticed that the std_output.rda file was modified during the tests. It is ideal to leave the person running the test's computer unchanged. One approach to consider is writing files to a temporary directory and deleting the directory once the tests are complete: https://github.com/nmfs-ost/ghactions4r/blob/a9bf1dd9467cfb9b210f88de7f9b07750e761f8c/tests/testthat/test-use_r_workflows.R#L1-L6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions