-
Notifications
You must be signed in to change notification settings - Fork 318
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
Comments
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). |
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. |
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. |
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.
The text was updated successfully, but these errors were encountered: