Test Tool cluster in .ecf

2 messages Options
Embed this post
Permalink
Bernd Schoeller-3

Test Tool cluster in .ecf

Reply Threaded More More options
Print post
Permalink
Hi,

the specification of the test tool

        http://dev.eiffel.com/Testing_Tool_%28Specification%29

says that there is a way to specify test custers in an ecf file, but it
does not say how. Can somebody help? Otherwise I would have to add all
tests to the main class to include them in the system.

Bernd

--
Bernd Schoeller, PhD, CTO, Partner
Comerge AG, Bubenbergstrasse 11, CH-8045 Zurich, www.comerge.net
fivaarno

Re: Test Tool cluster in .ecf

Reply Threaded More More options
Print post
Permalink

Hi Bernd,

what version of EiffelStudio are you using? Until 6.4 you are required to put your tests into a so called tests cluster in order to have AutoTest (EiffelStudio's testing tool) detect them. Test clusters have the same semantics and attributes as normal clusters, except that you have to define them in the ecf as:

<tests name="tests" location="...">

</tests>

The only restriction is that tests cluster can not have normal clusters as subclusters.


With 6.5 tests cluster are obsolete as the AutoTest Tool scans all clusters in your project for tests. In the tool you can initiate that by pressing the refresh button, You can also tell it to do it automatically after every compilation.
The reason for having tests cluster in the first place was that the GUI used to be blocked during the scan. So to make the blocking as short as possible, one had to tell AutoTest where to look for tests. Now the scan is done in the background, which allows AutoTest to scan the complete project.

Most information on the wiki page is outdated, as it refers to the Testing Tool in 6.3. See http://docs.eiffel.com/category/tags/testing for the latest documentation on using AutoTest.


Arno


--- In [hidden email], Bernd Schoeller <bernd.schoeller@...> wrote:

>
> Hi,
>
> the specification of the test tool
>
> http://dev.eiffel.com/Testing_Tool_%28Specification%29
>
> says that there is a way to specify test custers in an ecf file, but it
> does not say how. Can somebody help? Otherwise I would have to add all
> tests to the main class to include them in the system.
>
> Bernd
>
> --
> Bernd Schoeller, PhD, CTO, Partner
> Comerge AG, Bubenbergstrasse 11, CH-8045 Zurich, www.comerge.net
>