Skip to content

TST: migrate test output to minimal build #87

@story645

Description

@story645

I think it'd be easier to test the behavior of directives and if there were sample built pages to look out. As a model, matplotlib and sphinx gallery both build minimal documents to test their directives:

TL;DR is that tinybuild is designed as a minimal full sphinx doc build that you can run with make html from the tinybuild/doc to get a traditional build experience, but also gets run in test_full.py so you can check for html or rst output. So basically you can think of stuff in test_full.py as pytests that have access to a full site built with sphinx-build.

One gotcha at the moment is that you might need to run make clean in tinybuild/doc for the pytest version to run properly

Originally posted by @larsoner in sphinx-gallery/sphinx-gallery#1222 (comment)

This isn't too different from the current sample output but I think more robust.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions