blob: d6d3e1742c914b6a9d9a037d6512fbe371b80840 (
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=%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ïc Hoguin <<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>> wrote:
><i> Tests should be in ./tests, not ./src/tests.
</I>><i>
</I>><i> If you put them in ./tests everything you mentioned will work.
</I>><i>
</I>><i>
</I>><i> On 03/03/2014 09:49 PM, Anton Koval' wrote:
</I>><i>
</I>>><i> Hello,
</I>>><i>
</I>>><i> I have next structure of my project:
</I>>><i> .
</I>>><i> ├── deps
</I>>><i> │ ├── cowboy
</I>>><i> │ ├── cowlib
</I>>><i> │ ├── erlang_iconv
</I>>><i> │ ├── erlydtl
</I>>><i> │ ├── mochiweb_xpath
</I>>><i> │ └── ranch
</I>>><i> ├── ebin
</I>>><i> │ ├── fetchers.beam
</I>>><i> │ ├── parsers.beam
</I>>><i> │ └── wasearch_sup.beam
</I>>><i> ├── erlang.mk <<A HREF="http://erlang.mk">http://erlang.mk</A>>
</I>>><i>
</I>>><i> ├── Makefile
</I>>><i> ├── _rel
</I>>><i> │ └── ....
</I>>><i> ├── relx
</I>>><i> ├── relx.config
</I>>><i> ├── src
</I>>><i> │ ├── fetchers.erl
</I>>><i> │ ├── main_handler.erl
</I>>><i> │ ├── parsers.erl
</I>>><i> │ ├── tests
</I>>><i> │ │ ├── parsers_SUITE_data
</I>>><i> │ │ ├── parsers_SUITE.erl
</I>>><i> │ │ ├── ....
</I>>><i> │ ├── wasearch_app.erl
</I>>><i> │ ├── wasearch.app.src
</I>>><i> │ └── wasearch_sup.erl
</I>>><i> └── templates
</I>>><i> └── index.dtl
</I>>><i>
</I>>><i> I would prefer to store tests not in `src` directory but rather in
</I>>><i> `tests` subdirectory.
</I>>><i> Erlang.mk README says: You can run an individual test suite by using the
</I>>><i> special |test_*| targets. For example if you have a common_test suite
</I>>><i> named |spdy| and you want to run only this suite and not the others, you
</I>>><i> can use the |make test_spdy| command.
</I>>><i> And of course `make test_parsers` returns `no rule to make target` error.
</I>>><i> Is there a way to run suites from custom directory with
</I>>><i> `make_<mod_name_with_suite>` command?
</I>>><i>
</I>>><i>
</I>>><i> _______________________________________________
</I>>><i> Extend mailing list
</I>>><i> <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A>
</I>>><i> <A HREF="https://lists.ninenines.eu/listinfo/extend">https://lists.ninenines.eu/listinfo/extend</A>
</I>>><i>
</I>>><i>
</I>><i> --
</I>><i> Loïc Hoguin
</I>><i> <A HREF="http://ninenines.eu">http://ninenines.eu</A>
</I>><i>
</I>-------------- next part --------------
An HTML attachment was scrubbed...
URL: <<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>>
</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>
|