<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Test dependencies exist already. <div><br></div><div><div style="display: block;" class=""><div style="-webkit-user-select: all; -webkit-user-drag: element; display: inline-block;" class="apple-rich-link" draggable="true" role="link" data-url="https://guide.macports.org/#reference.dependencies"><a style="border-radius:10px;font-family:-apple-system, Helvetica, Arial, sans-serif;display:block;-webkit-user-select:none;width:300px;user-select:none;-webkit-user-modify:read-only;user-modify:read-only;overflow:hidden;text-decoration:none;" class="lp-rich-link" rel="nofollow" href="https://guide.macports.org/#reference.dependencies" dir="ltr" role="button" draggable="false" width="300"><table style="table-layout:fixed;border-collapse:collapse;width:300px;background-color:#E9E9EB;font-family:-apple-system, Helvetica, Arial, sans-serif;" class="lp-rich-link-emailBaseTable" cellpadding="0" cellspacing="0" border="0" width="300"><tbody><tr><td vertical-align="center"><table bgcolor="#E9E9EB" cellpadding="0" cellspacing="0" width="300" style="font-family:-apple-system, Helvetica, Arial, sans-serif;table-layout:fixed;background-color:rgba(233, 233, 235, 1);" class="lp-rich-link-captionBar"><tbody><tr><td style="padding:8px 0px 8px 0px;" class="lp-rich-link-captionBar-textStackItem"><div style="max-width:100%;margin:0px 16px 0px 16px;overflow:hidden;" class="lp-rich-link-captionBar-textStack"><div style="word-wrap:break-word;font-weight:500;font-size:12px;overflow:hidden;text-overflow:ellipsis;text-align:left;" class="lp-rich-link-captionBar-textStack-topCaption-leading"><a rel="nofollow" href="https://guide.macports.org/#reference.dependencies" style="text-decoration: none" draggable="false"><font color="#000000" style="color: rgba(0, 0, 0, 1);">MacPorts Guide</font></a></div><div style="word-wrap:break-word;font-weight:400;font-size:11px;overflow:hidden;text-overflow:ellipsis;text-align:left;" class="lp-rich-link-captionBar-textStack-bottomCaption-leading"><a rel="nofollow" href="https://guide.macports.org/#reference.dependencies" style="text-decoration: none" draggable="false"><font color="#A2A2A9" style="color: rgba(60, 60, 67, 0.6);">guide.macports.org</font></a></div></div></td><td style="padding:0px 12px 0px 0px;" class="lp-rich-link-captionBar-rightIconItem" width="36"><a rel="nofollow" href="https://guide.macports.org/#reference.dependencies" draggable="false"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAQAAAD/5HvMAAANBGlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY0dyYXlHYW1tYTJfMgAAWIWlVwdck9cWv9/IAJKwp4ywkWVAgQAyIjOA7CG4iEkggRBiBgLiQooVrFscOCoqilpcFYE6UYtW6satD2qpoNRiLS6svpsEEKvte+/3vvzud//fPefcc8495557A4DuRo5EIkIBAHliuTQikZU+KT2DTroHyMAYaAN3oM3hyiSs+PgYyALE+WI++OR5cQMgyv6am3KuT+n/+BB4fBkX9idhK+LJuHkAIOMBIJtxJVI5ABqT4LjtLLlEiUsgNshNTgyBeDnkoQzKKh+rCL6YLxVy6RFSThE9gpOXx6F7unvS46X5WULRZ6z+f588kWJYN2wUWW5SNOzdof1lPE6oEvtBfJDLCUuCmAlxb4EwNRbiYABQO4l8QiLEURDzFLkpLIhdIa7PkoanQBwI8R2BIlKJxwGAmRQLktMgNoM4Jjc/WilrA3GWeEZsnFoX9iVXFpIBsRPELQI+WxkzO4gfS/MTlTzOAOA0Hj80DGJoB84UytnJg7hcVpAUprYTv14sCIlV6yJQcjhR8RA7QOzAF0UkquchxEjk8co54TehQCyKjVH7RTjHl6n8hd9EslyQHAmxJ8TJcmlyotoeYnmWMJwNcTjEuwXSyES1v8Q+iUiVZ3BNSO4caViEek1IhVJFYoraR9J2vjhFOT/MEdIDkIpwAB/kgxnwzQVi0AnoQAaEoECFsgEH5MFGhxa4whYBucSwSSGHDOSqOKSga5g+JKGUcQMSSMsHWZBXBCWHxumAB2dQSypnyYdN+aWcuVs1xh3U6A5biOUOoIBfAtAL6QKIJoIO1UghtDAP9iFwVAFp2RCP1KKWj1dZq7aBPmh/z6CWfJUtnGG5D7aFQLoYFMMR2ZBvuDHOwMfC5o/H4AE4QyUlhRxFwE01Pl41NqT1g+dK33qGtc6Eto70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H6IVE8dVlLXK7tHQFOJUizm9JGdBXUUGTuQI1rOd9zgtmBiW5CUvIqwiUTf5tmibMvBJ2VEi+M4e5R311Ba1GPEKy5k3YsYKSd77U9KeNO/ZIG7iqsddzApnxjqmeMTlTZut4v4gdZ4XUkV4A9rDRipOUmK0cW8XxdxsLyt3b2CLFAewPqcJxLnPebuMNyAghfV0HSJ7kVpjaKhcIHlLYdyhcZPdpDMvdGdyQELcafUdk39mWa3Q9aCcdHHTEEGN4xy2KBlCGCUq8mmSrQreV7EUwGCvFRuKOBmnud/38FQZRQ2vKGc9lKSJCDxDpu5YUop3H506JPGY26twq7qyRJPShuxjqLLiKA+41/nrv8cc/vCa42yUkoSyO1XWd2AtyECQgSADQQaCDAQZKDYD/wFNi7tReOKIaAAAAABJRU5ErkJggg==" draggable="false" style="pointer-events:none !important;display:inline-block;width:36px;height:36px;" class="lp-rich-link-captionBar-rightIcon" width="36" height="36" data-unique-identifier=""></a></td></tr></tbody></table></td></tr></tbody></table></a></div><br></div><br><div dir="ltr">--<div>Daniel J. Luke</div></div><div dir="ltr"><br><blockquote type="cite">On Oct 30, 2022, at 7:30 AM, Nils Breunese <nils@breun.nl> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="ltr"></div><div dir="ltr">Maybe MacPorts could introduce the concept of ‘test dependencies’ (dependencies only required for running tests). I work with Apache Maven quite a bit, and apart from build and runtime dependencies (which MacPorts already distinguishes) it also supports declaring test scope dependencies, that don’t need to be installed until tests are actually run: <a href="https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope">https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope</a></div><div dir="ltr"><br></div><div dir="ltr">Nils.</div><div dir="ltr"><br><blockquote type="cite">Op 30 okt. 2022 om 11:23 heeft Ryan Schmidt <ryandesign@macports.org> het volgende geschreven:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>On Oct 28, 2022, at 21:33, Daniel J. Luke wrote:</span><br><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>I don't think implementation difficulty is the barrier here - but that all variants should just have the same behavior.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>In my mind, the real problem is the need for +test variants, there should be a way to just use the test phase - and perhaps changes to base/ to enable that are a better option.</span><br></blockquote><span></span><br><span>In one of my ports that has a tests variant, the reason why the variant exists is that the build system looks for certain test dependencies at configure time. If they're not there, it doesn't build the test suite and doesn't allow tests to be run later. I'm not sure how MacPorts could be improved to handle that better in the absence of a tests variant. Would you have MacPorts do the configuration in the configure phase, do the build in the build phase, and then redo the configuration and build in the test phase? Or would you suggest in this case that the test dependencies that are needed at configure time should be added unconditionally, so that even users who won't be running the tests need to install them? In my port's case the dependencies are probably small and that wouldn't make much of a difference, but I'm not sure it'll always be that way for all ports.</span><br><span></span><br><span></span><br></div></blockquote></div></blockquote></div></body></html>