Skip to content

Don't only rely on isinteractive for triggering the input prompt #8

@Evizero

Description

@Evizero

So far this package decides whether or not an input prompt is to be triggered, by simply checking the result of isinteractive(). Thus, the input prompt is pretty much only displayed if the user is executing the tests from the REPL by calling include("test/runtests.jl"). @oxinabox made the argument that this is a bit restrictive, which I tend to agree with.

We had a brief chat in slack about it and thought of some other strategies:

  • using a environment variable to detect CI
  • using a environment variable to activate the input prompt
  • read the callstack to see if Pkg.test(...) triggered the test run

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