<div dir="ltr">At some point being able to more easily test command-line programs was one of the goals of my &quot;typ&quot; package, so I have at least heard about such a project :).<div><br></div><div>However, I never really got it to a point where I found that it was easier than just adding scaffolding and fixtures into python unittest files as needed. At least in my experience, you pretty quickly want to do things like setting up the filesystem (or machine) into particular states, or doing non-trivial parsing of the output of the command, and needing more and more of a programming language.</div><div><br></div><div>So, I&#39;d probably encourage you to just see if you can set up a similar approach on top of pytest.</div><div><br></div><div>[ Side note: if you&#39;re reading this and thinking to yourself, &quot;I&#39;ve never heard of this typ thing, I should check it out&quot;, it&#39;s a package used to test a bunch of stuff for Chromium, but it&#39;s pretty idiosyncratically tied to Chromium&#39;s testing infrastructure, and I wouldn&#39;t encourage you to look at it. Use pytest instead :). ]</div><div><br></div><div>-- Dirk</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 26, 2019 at 10:24 AM Zbigniew Reszela &lt;<a href="mailto:reszelaz@gmail.com">reszelaz@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I would like to write a generic test case in python (unittest, pytest, etc) for testing executables/programs (this can be python/C++/Java or whatever applications).</div><div><br></div><div>So, I would need to pass command line arguments for the progam execution, and maybe sometimes need to terminate the applications under test programmatically e.g. if these are GUI apps. Ideally this generic test case should be easilly parametrizable to just pass a list of strings (program name and arguments). The asserts could be on the exit codes or the stderr stream.</div><div><br></div><div>The motivation behind this is to have a <i>cheap</i> way to smoke test a bunch of our project. </div><div><br></div><div>I googled a little bit if there is already something existing but without success. Have you heared about such a project?</div><div><br></div><div>Any comments on that would be appreciated.</div><div><div><br></div>-- <br><div dir="ltr" class="gmail-m_3920597603638148892gmail_signature">Best regards,<br><div>Zibi</div></div></div></div>
_______________________________________________<br>
testing-in-python mailing list<br>
<a href="mailto:testing-in-python@lists.idyll.org" target="_blank">testing-in-python@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/testing-in-python" rel="noreferrer" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
</blockquote></div>