symbian os unit download
Home arrow Community Forum
Symbian OS Unit
Welcome, Guest
Please Login or Register.    Lost Password?
Re:testdriver.h (1 viewing) (1) Guest
This is the forumheader in the basic forum information
Go to bottom Post Reply Favoured: 0
TOPIC: Re:testdriver.h
#18
Maze (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Re:testdriver.h 2 Years, 6 Months ago Karma: 0  
No, you do not change the TestDriver file itself. That one gets created from other files, by the perl scripts you mentioned.
The idea is that you write the test cases and that the perl script takes care of creating the necessary files to really run your tests.
The perl script will extract form your file all the functions that start with "test"... the best is to follow the tutorial to understand what you have to change
Since C++ does not really allow introspection, you would need to register all your test functions, which can easily become a very painful task. Thus, the perl scripts.
If you want to disable the perl scripts you would need to disable it in the bld.inf file (where the make file is included, if I remember correctly... was quite a while since I lust touched this part and I ave made quite a few changes in my updated version of the framework), but then again, why would you like to do that, since the perl script is exactly what takes away a lot of the work.
Yes, the script does not check whether you have or haven't changed anything in your C++ file, and therefore (unnecessarily) recreate the TestDriver, but this is not really a too big problem, since you will recompile you test cases (and run them) when you have made changes.
 
Report to moderator   Logged Logged  
 
Last Edit: 2009/07/20 14:53 By Maze.
  The administrator has disabled public write access.
      Topics Author Date
    thread link
testdriver.h
amey2003 2009/06/20 14:38
    thread link
thread linkthread link Re:testdriver.h
Maze 2009/07/20 14:51
    thread link
thread linkthread linkthread link Re:testdriver.h
seller 2011/08/24 02:00
    thread link
thread linkthread link sNY5wH7g
rslifE01 2011/10/13 06:38
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Who's Online

We have 32 guests online

Login Form






Lost Password?
No account yet? Register