Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doctest() should not interfere with @testset in jldoctest #2605

Open
fingolfin opened this issue Nov 10, 2024 · 1 comment
Open

doctest() should not interfere with @testset in jldoctest #2605

fingolfin opened this issue Nov 10, 2024 · 1 comment

Comments

@fingolfin
Copy link
Contributor

For various reasons we have a jldoctest that includes @testset (indirectly).

Unfortunately that causes pain because this has some output. We run the doctests twice in our CI (in different places): once when building the manual; and once via an explicit call to doctest.

In one case, apparently Documenter wraps the jldoctest content into a @testset of its own. As a result, our @testset does not output anything. In the other case, this outer @testset seems to be absent, and we do get output.

It would have been much simpler if both cases behaved the same. Even better was if they both did not interfere with the @testset in the doctest so that it behaves "as it would in the REPL"

@fingolfin
Copy link
Contributor Author

Actually this may be as simple as changing Documenters top-level @testset to use verbose=true. But of course that should be tested (and tests written etc.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants