<div dir="ltr">We just recently tried to adopt the **/*-spec convention for our unit tests, most of the tests in the test/ folders are old and were broken, so we went for this new naming when the unit-testing initiative started.<div>The choice came mostly from a blog post discussing the benefits specifically in the context of an Angular project IIRC, but I think it also applies nicely to node+mocha.<br></div><div><br></div><div>It might be that part of the team wasn't aware of this, since there have been some new tests added to test/ folders (I moved some of these in the -mediator repo myself), and I don't think we wrote it down anywhere, though!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 9, 2017 at 10:38 AM, Wojciech Trocki <span dir="ltr"><<a href="mailto:wtrocki@redhat.com" target="_blank">wtrocki@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Good observation David and really good timing. I think best would be to log new ticket's for those separate issues. <div>DevExp team already working now on unit tests coverage and as part of that we can make this more unified.<br><br></div><div>Team is also working on separation for angular code so this would be great feedback to consider.</div></div><div class="gmail_extra"><br clear="all"><div><div class="m_442409207902423501gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span style="color:rgb(153,153,153);font-size:small">Wojciech Trocki</span></div><div><div><font color="#999999" size="2">Software Engineer</font><font color="#999999" style="font-size:small">, </font><span style="font-size:small;color:rgb(153,153,153)">Red Hat Mobile</span></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote"><div><div class="h5">On Thu, Feb 9, 2017 at 10:20 AM, David Martin <span dir="ltr"><<a href="mailto:davmarti@redhat.com" target="_blank">davmarti@redhat.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hey folks,<div><br></div><div>As someone who is at page 0 of the Raincatcher stuff (trying to understand what it is and how it all fits together), I have a few questions about module structure.</div><div><br></div><div>First is about the location of client & server files.</div><div>I'm wondering why these files tend to be put together in the same directory? This has been a point of confusion when trying to understand the modules.</div><div>For example, the user-client.js & user-router.js files in <a href="https://github.com/feedhenry-raincatcher/raincatcher-user/tree/master/lib/user" target="_blank">https://github.com/feedhenr<wbr>y-raincatcher/raincatcher-<wbr>user/tree/master/lib/user</a> are intended for the browser and node.js respectively.</div><div>Is there a convention in place or docs that explain how to easily tell if a file is client or server side?</div><div>Will all client side files have -client in the name?<br clear="all"><div><br></div><div>This doesn't seem to always be the case either.</div><div>In this module, all the client side files (bar 1?) are in an angular folder <a href="https://github.com/feedhenry-raincatcher/raincatcher-sync/tree/master/lib" target="_blank">https://github.com/feed<wbr>henry-raincatcher/raincatcher-<wbr>sync/tree/master/lib</a></div><div>Is anyone else having this difficulty when getting started?</div><div><br></div><div><br></div><div>Second is about the location of location of tests (and related fixtures & mocks).<br></div><div>In 1 repo, there's a top level 'test' folder</div><div><a href="https://github.com/feedhenry-raincatcher/raincatcher-sync/tree/master/test" target="_blank">https://github.com/feedhenry-r<wbr>aincatcher/raincatcher-sync/tr<wbr>ee/master/test</a><br></div><div>and all tests for both client & server seem to be beneath that.</div><div>In another, there are -spec files alongside the code <a href="https://github.com/feedhenry-raincatcher/raincatcher-user/tree/master/lib/user" target="_blank">https://github.com/feedhe<wbr>nry-raincatcher/raincatcher-<wbr>user/tree/master/lib/user</a></div><div>Similar to above question, is there a convention for where to put test files.</div><div>Is the plan to follow 1 convention for all raincatcher modules?</div><span class="m_442409207902423501HOEnZb"><font color="#888888"><div><br></div><div><br></div><div><br></div>-- <br><div class="m_442409207902423501m_6125537294450591560gmail_signature"><div dir="ltr"><div><div dir="ltr">David Martin<div>Red Hat Mobile</div><div>Twitter: <span style="font-size:12.8px">@irldavem</span></div><div><span style="font-size:12.8px">IRC: @irldavem (feedhenry, mobile-internal)</span></div></div></div></div></div>
</font></span></div></div>
<br></div></div>______________________________<wbr>_________________<br>
Feedhenry-raincatcher mailing list<br>
<a href="mailto:Feedhenry-raincatcher@redhat.com" target="_blank">Feedhenry-raincatcher@redhat.c<wbr>om</a><br>
<a href="https://www.redhat.com/mailman/listinfo/feedhenry-raincatcher" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/feedhenry-raincatche<wbr>r</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Feedhenry-raincatcher mailing list<br>
<a href="mailto:Feedhenry-raincatcher@redhat.com">Feedhenry-raincatcher@redhat.<wbr>com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/feedhenry-raincatcher" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/feedhenry-<wbr>raincatcher</a><br>
<br></blockquote></div><br></div>