Unit testing delivery in Document module stylesheets?

Documents can be modified for delivery using the $DeliveryMode flag. Does anyone do unit tests specifically for delivery? Why or why not? Does the test framework support it? I looked around a little and didn't find any delivery specific tests, have they been found too hard to maintain? Is it being done but I can't find them?

Answers

  • You should be able to do a delivery xsl test the same way as the normal XSL tests except by calling the overloaded method that takes the IDictionary< string, object > additionalParameters. Add {"DeliveryMode", true} to the dictionary, and then be sure that your expected data is the FO xml.