<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto">On 16 Oct 2022, at 1:58, Russell Sim wrote:</p>
</div><div class="plaintext" style="white-space: normal;"><blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;"><p dir="auto">Mirko Vukovic <mirko.vukovic@gmail.com> writes:</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; border-left-color: #999999; color: #999999;"><p dir="auto">somewhat off-topic to the original question:</p>
<p dir="auto">Can :static-file be used for files part of unit tests? Such as unit tests
<br>
for log-parsers.</p>
</blockquote><p dir="auto">My understanding is that :static-file components are used to specify any
<br>
non-lisp file dependencies of the system. The lisp parts of the unit
<br>
tests should use :file declarations.</p>
<p dir="auto">I have used them for things like, css, graphics, test fixtures,
<br>
templates etc, pretty much any file that I know the system depends on,
<br>
that aren't common lisp files.</p>
</blockquote></div>
<div class="markdown" style="white-space: normal;">
<p dir="auto">That is correct. I would expect test definitions, and even fixture code, would go in normal <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">:file</code> components (but only for a test system, not for the system under test). Test <em>data</em>, though (e.g., XML documents for XMLS) would be static files.</p>
</div>
</div>
</body>
</html>