<div dir="ltr">Thank you for answer. <br>Is it common way (for OTP-based application) to store tests in `tests` subdirectory rather then in `src/tests/`?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 6, 2014 at 4:40 PM, Loïc Hoguin <span dir="ltr"><<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Tests should be in ./tests, not ./src/tests.<br>
<br>
If you put them in ./tests everything you mentioned will work.<div class=""><br>
<br>
On 03/03/2014 09:49 PM, Anton Koval' wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
Hello,<br>
<br>
I have next structure of my project:<br>
.<br>
├── deps<br>
│ ├── cowboy<br>
│ ├── cowlib<br>
│ ├── erlang_iconv<br>
│ ├── erlydtl<br>
│ ├── mochiweb_xpath<br>
│ └── ranch<br>
├── ebin<br>
│ ├── fetchers.beam<br>
│ ├── parsers.beam<br>
│ └── wasearch_sup.beam<br></div>
├── <a href="http://erlang.mk" target="_blank">erlang.mk</a> <<a href="http://erlang.mk" target="_blank">http://erlang.mk</a>><div><div class="h5"><br>
├── Makefile<br>
├── _rel<br>
│ └── ....<br>
├── relx<br>
├── relx.config<br>
├── src<br>
│ ├── fetchers.erl<br>
│ ├── main_handler.erl<br>
│ ├── parsers.erl<br>
│ ├── tests<br>
│ │ ├── parsers_SUITE_data<br>
│ │ ├── parsers_SUITE.erl<br>
│ │ ├── ....<br>
│ ├── wasearch_app.erl<br>
│ ├── wasearch.app.src<br>
│ └── wasearch_sup.erl<br>
└── templates<br>
└── index.dtl<br>
<br>
I would prefer to store tests not in `src` directory but rather in<br>
`tests` subdirectory.<br>
Erlang.mk README says: You can run an individual test suite by using the<br>
special |test_*| targets. For example if you have a common_test suite<br>
named |spdy| and you want to run only this suite and not the others, you<br>
can use the |make test_spdy| command.<br>
And of course `make test_parsers` returns `no rule to make target` error.<br>
Is there a way to run suites from custom directory with<br>
`make_<mod_name_with_suite>` command?<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
Extend mailing list<br>
<a href="mailto:Extend@lists.ninenines.eu" target="_blank">Extend@lists.ninenines.eu</a><br>
<a href="https://lists.ninenines.eu/listinfo/extend" target="_blank">https://lists.ninenines.eu/<u></u>listinfo/extend</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Loïc Hoguin<br>
<a href="http://ninenines.eu" target="_blank">http://ninenines.eu</a><br>
</font></span></blockquote></div><br></div>