summaryrefslogtreecommitdiffstats
path: root/archives/extend/2014-March/000344.html
blob: d6d3e1742c914b6a9d9a037d6512fbe371b80840 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!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=%3CCAD9h6NHaXQFX518wFdLNpycFVuu0bXN4NKzMqztnVN0rLu6BeA%40mail.gmail.com%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="000343.html">
   <LINK REL="Next"  HREF="000345.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[99s-extend] usage of make_* command</H1>
    <B>Anton Koval'</B> 
    <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20usage%20of%20make_%2A%20command&In-Reply-To=%3CCAD9h6NHaXQFX518wFdLNpycFVuu0bXN4NKzMqztnVN0rLu6BeA%40mail.gmail.com%3E"
       TITLE="[99s-extend] usage of make_* command">psihonavt at gmail.com
       </A><BR>
    <I>Thu Mar  6 15:50:01 CET 2014</I>
    <P><UL>
        <LI>Previous message: <A HREF="000343.html">[99s-extend] usage of make_* command
</A></li>
        <LI>Next message: <A HREF="000345.html">[99s-extend] usage of make_* command
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#344">[ date ]</a>
              <a href="thread.html#344">[ thread ]</a>
              <a href="subject.html#344">[ subject ]</a>
              <a href="author.html#344">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Thank you for answer.
Is it common way (for OTP-based application) to store tests in `tests`
subdirectory rather then in `src/tests/`?


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>&gt; wrote:

&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;&gt;<i> Hello,
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> I have next structure of my project:
</I>&gt;&gt;<i> .
</I>&gt;&gt;<i> &#9500;&#9472;&#9472; deps
</I>&gt;&gt;<i> &#9474;   &#9500;&#9472;&#9472; cowboy
</I>&gt;&gt;<i> &#9474;   &#9500;&#9472;&#9472; cowlib
</I>&gt;&gt;<i> &#9474;   &#9500;&#9472;&#9472; erlang_iconv
</I>&gt;&gt;<i> &#9474;   &#9500;&#9472;&#9472; erlydtl
</I>&gt;&gt;<i> &#9474;   &#9500;&#9472;&#9472; mochiweb_xpath
</I>&gt;&gt;<i> &#9474;   &#9492;&#9472;&#9472; ranch
</I>&gt;&gt;<i> &#9500;&#9472;&#9472; ebin
</I>&gt;&gt;<i> &#9474;   &#9500;&#9472;&#9472; fetchers.beam
</I>&gt;&gt;<i> &#9474;   &#9500;&#9472;&#9472; parsers.beam
</I>&gt;&gt;<i> &#9474;   &#9492;&#9472;&#9472; wasearch_sup.beam
</I>&gt;&gt;<i> &#9500;&#9472;&#9472; erlang.mk &lt;<A HREF="http://erlang.mk">http://erlang.mk</A>&gt;
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> &#9500;&#9472;&#9472; Makefile
</I>&gt;&gt;<i> &#9500;&#9472;&#9472; _rel
</I>&gt;&gt;<i> &#9474;   &#9492;&#9472;&#9472; ....
</I>&gt;&gt;<i> &#9500;&#9472;&#9472; relx
</I>&gt;&gt;<i> &#9500;&#9472;&#9472; relx.config
</I>&gt;&gt;<i> &#9500;&#9472;&#9472; src
</I>&gt;&gt;<i> &#9474;   &#9500;&#9472;&#9472; fetchers.erl
</I>&gt;&gt;<i> &#9474;   &#9500;&#9472;&#9472; main_handler.erl
</I>&gt;&gt;<i> &#9474;   &#9500;&#9472;&#9472; parsers.erl
</I>&gt;&gt;<i> &#9474;   &#9500;&#9472;&#9472; tests
</I>&gt;&gt;<i> &#9474;   &#9474;   &#9500;&#9472;&#9472; parsers_SUITE_data
</I>&gt;&gt;<i> &#9474;   &#9474;   &#9500;&#9472;&#9472; parsers_SUITE.erl
</I>&gt;&gt;<i> &#9474;   &#9474;   &#9500;&#9472;&#9472; ....
</I>&gt;&gt;<i> &#9474;   &#9500;&#9472;&#9472; wasearch_app.erl
</I>&gt;&gt;<i> &#9474;   &#9500;&#9472;&#9472; wasearch.app.src
</I>&gt;&gt;<i> &#9474;   &#9492;&#9472;&#9472; wasearch_sup.erl
</I>&gt;&gt;<i> &#9492;&#9472;&#9472; templates
</I>&gt;&gt;<i>      &#9492;&#9472;&#9472; index.dtl
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> I would prefer to store tests not in `src` directory but rather in
</I>&gt;&gt;<i> `tests` subdirectory.
</I>&gt;&gt;<i> Erlang.mk README says: You can run an individual test suite by using the
</I>&gt;&gt;<i> special |test_*| targets. For example if you have a common_test suite
</I>&gt;&gt;<i> named |spdy| and you want to run only this suite and not the others, you
</I>&gt;&gt;<i> can use the |make test_spdy| command.
</I>&gt;&gt;<i> And of course `make test_parsers`  returns `no rule to make target` error.
</I>&gt;&gt;<i> Is there a way to run suites from custom directory with
</I>&gt;&gt;<i> `make_&lt;mod_name_with_suite&gt;` command?
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> _______________________________________________
</I>&gt;&gt;<i> Extend mailing list
</I>&gt;&gt;<i> <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A>
</I>&gt;&gt;<i> <A HREF="https://lists.ninenines.eu/listinfo/extend">https://lists.ninenines.eu/listinfo/extend</A>
</I>&gt;&gt;<i>
</I>&gt;&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>-------------- next part --------------
An HTML attachment was scrubbed...
URL: &lt;<A HREF="http://lists.ninenines.eu/archives/extend/attachments/20140306/6fa8fe3b/attachment.html">http://lists.ninenines.eu/archives/extend/attachments/20140306/6fa8fe3b/attachment.html</A>&gt;
</PRE>

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

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