summaryrefslogblamecommitdiffstats
path: root/archives/extend/2014-March/000345.html
blob: 1da559eb0b9a4ab88af1b5ecb0ac7f87f10b6f05 (plain) (tree)



















































































































































                                                                                                                                                                                                              
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
 <HEAD>
   <TITLE> [99s-extend] usage of make_* command
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20usage%20of%20make_%2A%20command&In-Reply-To=%3C53188B8E.5010803%40ninenines.eu%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <style type="text/css">
       pre {
           white-space: pre-wrap;       /* css-2.1, curent FF, Opera, Safari */
           }
   </style>
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="000344.html">
   <LINK REL="Next"  HREF="000341.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[99s-extend] usage of make_* command</H1>
    <B>Lo&#239;c Hoguin</B> 
    <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20usage%20of%20make_%2A%20command&In-Reply-To=%3C53188B8E.5010803%40ninenines.eu%3E"
       TITLE="[99s-extend] usage of make_* command">essen at ninenines.eu
       </A><BR>
    <I>Thu Mar  6 15:51:58 CET 2014</I>
    <P><UL>
        <LI>Previous message: <A HREF="000344.html">[99s-extend] usage of make_* command
</A></li>
        <LI>Next message: <A HREF="000341.html">[99s-extend] Cowboy pre request filter
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#345">[ date ]</a>
              <a href="thread.html#345">[ thread ]</a>
              <a href="subject.html#345">[ subject ]</a>
              <a href="author.html#345">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Sorry I meant ./test/ not ./tests/

But yes. That's how OTP does it.

On 03/06/2014 03:50 PM, Anton Koval' wrote:
&gt;<i> Thank you for answer.
</I>&gt;<i> Is it common way (for OTP-based application) to store tests in `tests`
</I>&gt;<i> subdirectory rather then in `src/tests/`?
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> On Thu, Mar 6, 2014 at 4:40 PM, Lo&#239;c Hoguin &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>
</I>&gt;<i> &lt;mailto:<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>&gt;&gt; wrote:
</I>&gt;<i>
</I>&gt;<i>     Tests should be in ./tests, not ./src/tests.
</I>&gt;<i>
</I>&gt;<i>     If you put them in ./tests everything you mentioned will work.
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>     On 03/03/2014 09:49 PM, Anton Koval' wrote:
</I>&gt;<i>
</I>&gt;<i>         Hello,
</I>&gt;<i>
</I>&gt;<i>         I have next structure of my project:
</I>&gt;<i>         .
</I>&gt;<i>         &#9500;&#9472;&#9472; deps
</I>&gt;<i>         &#9474;   &#9500;&#9472;&#9472; cowboy
</I>&gt;<i>         &#9474;   &#9500;&#9472;&#9472; cowlib
</I>&gt;<i>         &#9474;   &#9500;&#9472;&#9472; erlang_iconv
</I>&gt;<i>         &#9474;   &#9500;&#9472;&#9472; erlydtl
</I>&gt;<i>         &#9474;   &#9500;&#9472;&#9472; mochiweb_xpath
</I>&gt;<i>         &#9474;   &#9492;&#9472;&#9472; ranch
</I>&gt;<i>         &#9500;&#9472;&#9472; ebin
</I>&gt;<i>         &#9474;   &#9500;&#9472;&#9472; fetchers.beam
</I>&gt;<i>         &#9474;   &#9500;&#9472;&#9472; parsers.beam
</I>&gt;<i>         &#9474;   &#9492;&#9472;&#9472; wasearch_sup.beam
</I>&gt;<i>         &#9500;&#9472;&#9472; erlang.mk &lt;<A HREF="http://erlang.mk">http://erlang.mk</A>&gt; &lt;<A HREF="http://erlang.mk">http://erlang.mk</A>&gt;
</I>&gt;<i>
</I>&gt;<i>         &#9500;&#9472;&#9472; Makefile
</I>&gt;<i>         &#9500;&#9472;&#9472; _rel
</I>&gt;<i>         &#9474;   &#9492;&#9472;&#9472; ....
</I>&gt;<i>         &#9500;&#9472;&#9472; relx
</I>&gt;<i>         &#9500;&#9472;&#9472; relx.config
</I>&gt;<i>         &#9500;&#9472;&#9472; src
</I>&gt;<i>         &#9474;   &#9500;&#9472;&#9472; fetchers.erl
</I>&gt;<i>         &#9474;   &#9500;&#9472;&#9472; main_handler.erl
</I>&gt;<i>         &#9474;   &#9500;&#9472;&#9472; parsers.erl
</I>&gt;<i>         &#9474;   &#9500;&#9472;&#9472; tests
</I>&gt;<i>         &#9474;   &#9474;   &#9500;&#9472;&#9472; parsers_SUITE_data
</I>&gt;<i>         &#9474;   &#9474;   &#9500;&#9472;&#9472; parsers_SUITE.erl
</I>&gt;<i>         &#9474;   &#9474;   &#9500;&#9472;&#9472; ....
</I>&gt;<i>         &#9474;   &#9500;&#9472;&#9472; wasearch_app.erl
</I>&gt;<i>         &#9474;   &#9500;&#9472;&#9472; wasearch.app.src
</I>&gt;<i>         &#9474;   &#9492;&#9472;&#9472; wasearch_sup.erl
</I>&gt;<i>         &#9492;&#9472;&#9472; templates
</I>&gt;<i>               &#9492;&#9472;&#9472; index.dtl
</I>&gt;<i>
</I>&gt;<i>         I would prefer to store tests not in `src` directory but rather in
</I>&gt;<i>         `tests` subdirectory.
</I>&gt;<i>         Erlang.mk README says: You can run an individual test suite by
</I>&gt;<i>         using the
</I>&gt;<i>         special |test_*| targets. For example if you have a common_test
</I>&gt;<i>         suite
</I>&gt;<i>         named |spdy| and you want to run only this suite and not the
</I>&gt;<i>         others, you
</I>&gt;<i>         can use the |make test_spdy| command.
</I>&gt;<i>         And of course `make test_parsers`  returns `no rule to make
</I>&gt;<i>         target` error.
</I>&gt;<i>         Is there a way to run suites from custom directory with
</I>&gt;<i>         `make_&lt;mod_name_with_suite&gt;` command?
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>         _________________________________________________
</I>&gt;<i>         Extend mailing list
</I>&gt;<i>         <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A> &lt;mailto:<A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A>&gt;
</I>&gt;<i>         <A HREF="https://lists.ninenines.eu/__listinfo/extend">https://lists.ninenines.eu/__listinfo/extend</A>
</I>&gt;<i>         &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">https://lists.ninenines.eu/listinfo/extend</A>&gt;
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>     --
</I>&gt;<i>     Lo&#239;c Hoguin
</I>&gt;<i>     <A HREF="http://ninenines.eu">http://ninenines.eu</A>
</I>&gt;<i>
</I>&gt;<i>
</I>
-- 
Lo&#239;c Hoguin
<A HREF="http://ninenines.eu">http://ninenines.eu</A>

</PRE>

<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000344.html">[99s-extend] usage of make_* command
</A></li>
	<LI>Next message: <A HREF="000341.html">[99s-extend] Cowboy pre request filter
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#345">[ date ]</a>
              <a href="thread.html#345">[ thread ]</a>
              <a href="subject.html#345">[ subject ]</a>
              <a href="author.html#345">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
mailing list</a><br>
</body></html>