Author:halw

Date:2009-02-25T15:28:38.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@197 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
halw
2009-02-25 15:28:38 +00:00
parent 56ffb8b753
commit c3aa41677c
4 changed files with 21 additions and 12 deletions

View File

@@ -86,16 +86,16 @@ These options are shortcuts to the various tag roots that we just discussed:
#'''Types''' displays the sub-tree under the tag root '''type'''
Any tagging system that you devise will also show up in the View box. Let's edit the manual test and add a second line of testing information with some tags that we just made up.
Any tagging system that you devise will also show up in the View box. Let's edit our tests and add an additional line of testing information to each with some arbitrary hierarchical tags.
So, now the entire test now looks like this:
So, now the manual test now looks like this:
<code>
test_deposit_01
-- New test routine
note
testing: "covers/{BANK_ACCOUNT}.deposit"
testing: "my_tag_1/my_tag_1_4/my_tag_1_4_2"
testing: "my_tag_1/my_tag_1_1/my_tag_1_1_1"
local
l_ba: BANK_ACCOUNT
do
@@ -104,6 +104,14 @@ So, now the entire test now looks like this:
end
</code>
In the extracted test targeting <code>{BANK_ACCOUNT}.withdraw</code> this line has been added:
<code>
testing: "my_tag_1/my_tag_1_1/my_tag_1_1_2"
</code>
and in the synthesized test which targets <code>{BANK_ACCOUNT}.withdraw</code> we add this line:
<code>
testing: "my_tag_1/my_tag_1_2/my_tag_1_2_1"
</code>
As soon as we compile and look at the View box, we see that the root for our new tag shows up. And if we expand it completely, we find the test that we tagged.