Skip to content

Accessing an artifact inside a doctest #1963

@mroavi

Description

@mroavi

I'm using Documenter.doctest(MyPackage; manual=false) inside runtests.jl to run the doctests in my package (as explained here). In one of the doctests, I need to access an artifact. e.g. artifact"myartifact" . I'm getting the following error when I run the tests:

Cannot locate '(Julia)Artifacts.toml' file when attempting to use artifact 'myartifact' in 'Main'

Isn't this currently supported, or do I need to store Artifacts.toml in a specific directory? Storing it in the package root dir, docs dir, or test dir does not seem to work.

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