Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Add tests for curvenote AST / myst / html / etc conversions #44

Closed
wants to merge 8 commits into from

Conversation

fwkoch
Copy link
Contributor

@fwkoch fwkoch commented Feb 3, 2022

This adds some declarative integration tests for curvenote schemas.

For now, inputs are defined like so:

description

+++ curvenote
type: doc
content:
  ...

+++ myst
...

+++ html
...

+++ text
...

+++ tex
...

For each format, it checks that the curvenote export matches the formatted text and the formatted text import matches the curvenote AST.

Potentially these input files could also be used to generate documentation of curvenote and/or myst functionality.

We should probably consider if there is a less-ad-hoc way to define the input files / test framework, but for now this works.

Base automatically changed from feat/json_yaml_serialization to main February 7, 2022 22:18
@fwkoch
Copy link
Contributor Author

fwkoch commented Mar 29, 2022

The bespoke (i.e. non YAML/JSON) test files (and corresponding test framework) aren't great, plus all these tests are now in myst-spec in better form: https://github.com/executablebooks/myst-spec/tree/main/docs/examples

@fwkoch fwkoch closed this Mar 29, 2022
@fwkoch fwkoch deleted the feat/format_test_framework branch March 29, 2022 17:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant