help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open^H^H^H^HVisiting code & unit test files


From: Glauber Alex Dias Prado
Subject: Re: Open^H^H^H^HVisiting code & unit test files
Date: Mon, 09 Aug 2010 05:46:13 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Gary <address@hidden> writes:

> Is there any way to do the following without using some huge package
> like cedet or something?
>
> I have a project directory structure like this
>
> myproject
>  |
>  |- Src
>  |   |- Foo.php
>  |   .
>  |   ... more source files
>  |
>  |- Test
>  |   |- Foo-Test.php
>  |   .
>  |   ... more unit test files
>  etc.
>
> In order for the unit test files (e.g. Foo-Test.php) to know what it
> should test it includes some text like "require_once 'Foo.php';". The
> include path is set when I actually run the unit test via the
> Makefile. What I would like to happen is that when I put my cursor on
> the "'Foo.php'" text, I can run find-file-at-point or something similar,
> and have emacs visit myproject/Src/Foo.php without any further user
> intervention. Currently I have to adapt the path manually.
>
> If it helps, all unit test files are in the Test directory (or
> subdirectories thereof) follow the naming convention x-Test.php, and
> they correspond to the source file a matching named directory under Src
> called x (where x is some descriptive name).

Check out rinari it have a feature that makes this kind of association.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]