×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2007
    Location
    USA
    Posts
    120

    S60 5e C++ Dev Lib v2.1 > Testing your software chapter refers to outdated example

    S60 5e C++ Developer's Library v2.1 > Testing > Testing your software > Setting up a test project > Tool setup

    This page points the reader to S60 Platform: Location Example (v1.2), but asks to extract it to C:\temp\MapEx. Nothing wrong yet, except that there's a hint of a mismatch between LocationExample and MapEx which is the main problem in completing the exercise by simply following directions.

    Next page, "Creating the unit test project" the sample code for TestHeader.h has two references to CMapExampleSmsEngine but in the code extracted in step above, it is actually CLocationExampleSmsEngine. This doesn't cause a problem until tests are actually implemented but it will confuse the reader at that point.

    On the same page, step 6, in bld.inf if "makefile ExtraTestBuildTasks.bldmake" is used as suggested, there seems to be a problem with nmake (which there's an pointer to an outdated version in the tool setup section). To avoid running into this issue, change that to "gnumakefile ExtraTestBuildtasks.bldmake" as suggested by user IceBlue in the C++ forums.

    On the next page, "Stubbing dependencies" again references to CMapEx... should be changed to CLocationExample...

    The list of empty functions shown here don't match the errors I get from the linker at this point. They were actually needed later, but that this point several other symbols were undefined.

    On the next page "Implementing tests" this is where I first discovered the problem with TestHeader.h I mentioned earlier, and had to be fixed. The rest of the process went OK, but I had to refer to the provided TestSource.cpp because I found the descriptions a little inadequate.

    A suggestion I might make as an addition to this tutorial would be to make at least one test fail. If not, one can go through the whole tutorial and not experience that and get to see how SymbianOSUnit shows failures and how to go about fixing it.

    Otherwise the tutorial was quite good and covers many important concepts in unit testing & also refactoring. Good work!
    --Himanshu
    Nokia N8-00 (Symbian Belle, NAM RM-596)
    Nokia 5800 XpressMusic (S60 5th Ed., NAM RM-428, v51.2.007)
    S/w: ADT v1.4 + S60 5.0 SDK on Win7 x64

  2. #2
    Nokia Developer Expert
    Join Date
    Sep 2006
    Posts
    140

    Re: S60 5e C++ Dev Lib v2.1 > Testing your software chapter refers to outdated exampl

    Thanks for the feedback! This is very useful and will be checked by the library writers.
    Heli
    Forum Nokia

Similar Threads

  1. Pointer to obsolete nmake in S60/5e C++ DevLib v2.0
    By hgohel in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 3
    Last Post: 2010-08-19, 05:03
  2. Image files missing from sample descriptions in S6/5e C++ DevLib v2.0
    By hgohel in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 5
    Last Post: 2009-11-29, 22:11
  3. Incorrect pointer to Contacts DB example in S60/5e C++ DevLib v2.0
    By hgohel in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 4
    Last Post: 2009-08-26, 04:02
  4. Broken link to eunit.ppt in S60 5e C++ Dev Lib
    By hgohel in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 3
    Last Post: 2009-08-26, 03:56
  5. Phone software is outdated
    By ArunShankar in forum Near Field Communication
    Replies: 3
    Last Post: 2007-07-09, 12:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×