Difference between revisions of "New Citation Style HowTo"
Jump to navigation
Jump to search
m (→Steps) |
m (→Steps) |
||
Line 19: | Line 19: | ||
## define path to the new item list in the <code>itemListsFIleNames</code> hash | ## define path to the new item list in the <code>itemListsFIleNames</code> hash | ||
##: put("Test", "target/test-classes/testFiles/Test/TestCollection.xml"); | ##: put("Test", "target/test-classes/testFiles/Test/TestCollection.xml"); | ||
## create new JUnit test: <code>testCitationStyleTest</code> specific for new ctation style test. Life circle: validation, compilation, output. ## set <code>testCitationStyles</code> to <code>@Ignore</code> | ## create new JUnit test: <code>testCitationStyleTest</code> specific for new ctation style test. Life circle: validation, compilation, output. | ||
## set <code>testCitationStyles</code> to <code>@Ignore</code> | |||
# start test with | # start test with | ||
#:<pre>$mvn -Dtest=TestCitationManager test</pre> | #:<pre>$mvn -Dtest=TestCitationManager test</pre> |
Revision as of 00:10, 12 May 2010
This is a protected page.
Prerequisites[edit]
- java SDK 6
- svn
- maven
- jEdit
Steps[edit]
$svn co https://zim02.gwdg.de/repos/common/trunk/common_services
$cd common_services/citationmanager
- check whether co was OK:
$mvn clean install
$cd src/main/resources/CitationStyles
$cp rm Default Test; rm -rf Test/.svn
- add new citation style
Test
in thesrc/main/resources/Schemas/explain-styles.xml
, defineoutput-formats
- get nice items-list XML from PubMan live, create src/test/resources/testFiles/Test directory, and save the XML into it.
- changes in
src/test/java/test/TestCitationManager.java
:- define path to the new item list in the
itemListsFIleNames
hash- put("Test", "target/test-classes/testFiles/Test/TestCollection.xml");
- create new JUnit test:
testCitationStyleTest
specific for new ctation style test. Life circle: validation, compilation, output. - set
testCitationStyles
to@Ignore
- define path to the new item list in the
- start test with
$mvn -Dtest=TestCitationManager test
- check console output and
target/surefire-reports/test.TestCitationManager.txt
for errors. - check generated outputs in formats: pdf and escidoc_snippet in
target/
directory. The outputs should be not empty.
...
$mvn -Dtest=TestCitationManager test