<div dir="auto">Yeah, that's right. But I was referring to session start, ssh stuff and interactive user input.<div dir="auto"><br></div><div dir="auto">Uli</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Melroy van den Berg <<a href="mailto:melroy89@protonmail.com">melroy89@protonmail.com</a>> schrieb am Mi., 20. Mai 2020, 18:32:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Uli,<br>
<br>
Thanks for the links to Xorg.<br>
<br>
> As always this is quite difficult to achieve for a client/server setup<br>
> with interactive tools....<br>
<br>
I don't agree. Unit testing is a test technique were you isolate the code from the rest of the context and create a stub/mock in place of that.<br>
This allows you you test pieces of your code (like a function) in isolation.<br>
<br>
Moreover, when something is hard to test means that you may want to invest time in refactoring for test ability.<br>
Only for integration testcases between client & server you need to create a test approach, like you may want to mock the whole server side (if you want to test the client side).<br>
<br>
But the important take away from this mail is that there are different levels of testing. Where unit testing in the first level and can easily be done.<br>
<br>
Regards,<br>
Melroy van den Berg<br>
<br>
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br>
Op woensdag, mei 20, 2020 5:44 PM, Ulrich Sibiller <<a href="mailto:ulrich.sibiller@gmail.com" target="_blank" rel="noreferrer">ulrich.sibiller@gmail.com</a>> schreef:<br>
<br>
> On Wed, May 20, 2020 at 5:20 PM Melroy van den Berg<br>
> <a href="mailto:melroy89@protonmail.com" target="_blank" rel="noreferrer">melroy89@protonmail.com</a> wrote:<br>
><br>
> > I'm afraid I was the cause of the start of the discussion. I'm also using VS Code now, which has a built-in way to auto format the code (incl C++).<br>
> > Using the shortcut: Ctrl + Shift + I (capital i)<br>
> > Yet there are otherwise, like clang auto formatter. Instead of using right away. We may need to discuss and agree as a community which tool we will use.<br>
> > And also which settings will be used, ideally be stored into the git repo (root folder), which then get picked up by the relevant tool.<br>
><br>
> For Xorg they simply used a shell script that took care of a clean<br>
> formatting, see e.g. here:<br>
> <a href="https://github.com/XQuartz/xorg-server/commit/9838b7032ea9792bec21af424c53c07078636d21" rel="noreferrer noreferrer" target="_blank">https://github.com/XQuartz/xorg-server/commit/9838b7032ea9792bec21af424c53c07078636d21</a><br>
><br>
> > In fact, I'm would like to go to next level, namely automated CI/CD. Which may include auto-formatter, other tools maybe like static code analysis (cppcheck), generation of documentation (from source code) and running testcases within a pipeline.<br>
><br>
> Maybe Mihai and Mike#1 can explain what we already have here. IIRC<br>
> there's jenkins server and there are nightly builds ("heuler" repos).<br>
> For nx-libs we have some stuff on travis (including cppcheck) and on<br>
> LGTM (non-working because it does not find the C sources for unknown<br>
> reasons).<br>
><br>
> > Read my message #62 on bug report: <a href="https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1469#62" rel="noreferrer noreferrer" target="_blank">https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1469#62</a><br>
> > Ps. Where are the testcases? We may need to start creating (integration/unit) testcases to avoid regression issues when changing code.<br>
><br>
> As always this is quite difficult to achieve for a client/server setup<br>
> with interactive tools....<br>
><br>
> Uli<br>
<br>
<br>
</blockquote></div>