<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi there,<div><br></div><div>I have found pexpect (<a href="https://pexpect.readthedocs.io/">https://pexpect.readthedocs.io/</a>), in combination to pytest to be quite useful for a similar case.</div><div><br></div><div>If you want to do something more fancy such as a DSL to write the example inputs and outputs without writing Python code for each test, you might want to take a look at &quot;Working with non-python tests&quot; in the pytest documentation: <a href="https://docs.pytest.org/en/latest/example/nonpython.html">https://docs.pytest.org/en/latest/example/nonpython.html</a>.</div><div><br></div><div>Cheers,</div><div><br></div><div>André</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 26, 2019 at 1:28 PM 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_8282147523819045756gmail_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>