File tree 6 files changed +25
-3
lines changed
6 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -122,12 +122,12 @@ test-pub-%:
122
122
.PHONY : test-draft-jats test-draft-preprint test-draft-%
123
123
test-draft-jats :
124
124
$(INARA_TEST_CMD ) -o jats example/paper.md
125
- diff test/expected-paper.jats/paper.jats example/jats/paper.jats
125
+ diff test/expected-draft/ paper.jats/paper.jats example/jats/paper.jats
126
126
test-draft-preprint : GOLDEN_FILE = paper.preprint.tex
127
127
test-draft-% : GOLDEN_FILE = paper.$*
128
128
test-draft-% :
129
129
$(INARA_TEST_CMD ) -o $* example/paper.md
130
- diff test/expected-$(GOLDEN_FILE ) example/$(GOLDEN_FILE )
130
+ diff test/expected-draft/ $(GOLDEN_FILE ) example/$(GOLDEN_FILE )
131
131
132
132
NCBI_FTP = "ftp://ftp.ncbi.nih.gov/pub/jats/publishing/1.2/xsd/"
133
133
test/JATS-Publishing-1-2-MathML2-XSD.zip :
@@ -141,6 +141,6 @@ test/JATS-journalpublishing1.xsd: \
141
141
rm -rf /tmp/JATS-Publishing-1-2-MathML2-XSD
142
142
143
143
.PHONY : validate-jats
144
- validate-jats : test/expected-paper.jats/paper.jats \
144
+ validate-jats : test/expected-draft/ paper.jats/paper.jats \
145
145
test/JATS-journalpublishing1.xsd
146
146
xmllint --schema test/JATS-journalpublishing1.xsd $< --noout
Original file line number Diff line number Diff line change
1
+ # Testing
2
+
3
+ Testing in Inara works by checking both the _ draft_ mode and
4
+ _ production_ mode (i.e., compiled with ` -p ` ) for the following artifacts
5
+ using the ` diff ` command:
6
+
7
+ 1 . JATS XML (` jats ` )
8
+ 2 . Crossref XML (` crossref ` )
9
+ 3 . Preprint LaTeX (` preprint ` )
10
+ 4 . PDF (` pdf ` ), though note this is a binary comparison
11
+
12
+ The _ draft_ golden standard files are in the [ expected-draft] ( expected-draft ) folder while
13
+ the _ production_ golden standard files are in the [ expected-pub] ( expected-pub ) folder.
14
+
15
+ ## Maintaining the Golden Standard Files
16
+
17
+ If you make updates to the underlying [ paper.md] ( ../example/paper.md ) file in the ` /examples `
18
+ folder, you'll need to update at minimum the preprint and PDF. If you update the metadata
19
+ in the ` paper.md ` or make changes to the templates, you might also have to update the JATS
20
+ and Crossref XML files.
21
+
22
+ ** How to update the golden standard files** - TBA
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments