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

Tests for BibTeX <-> XML conversion #201

Closed
davidweichiang opened this issue Mar 21, 2019 · 3 comments
Closed

Tests for BibTeX <-> XML conversion #201

davidweichiang opened this issue Mar 21, 2019 · 3 comments

Comments

@davidweichiang
Copy link
Collaborator

I routinely test the BibTeX to XML conversion by converting all the old BibTeX files and diffing them. I assume that's too big for CI, right? But maybe we should make a small set of tough cases.

@mbollmann
Copy link
Member

We're currently building the full site in CI, so I doubt this would be too big, as long as the tests are reliable (and run in a reasonable amount of time).

@mbollmann mbollmann reopened this Mar 22, 2019
@davidweichiang
Copy link
Collaborator Author

Oh, ok. So the test would simply involve diffing the .bib files against the previously-built ones?

I guess the reverse (bib->xml) direction is not under the Anthology, so not worth discussing here.

@mbollmann
Copy link
Member

You can run a script that interacts with the .bib files as they are produced during the build, yes. I'm not sure what exactly you'd be trying to do, since a plain diff would also produce mismatches if the fields were in a order or formatted differently, which is certainly not what you want?

But as long as there's a command that reliably exits with 0 if all is okay, and with 1 (or sth else) only if there actually is a clear error, then it can be integrated into CI.

@mbollmann mbollmann closed this as not planned Won't fix, can't repro, duplicate, stale Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants