Unit Test case for complie/test

Discussion in 'Python' started by jitendra gupta, Feb 23, 2013.

  1. Hi,

    I am working one tool, which will do compile/run the workspace (that code
    is written on c/c++). on that my requirment is i need to compile subfolder
    also, i have wrote code for that also.
    My problem is , i am unable to write the Unit test case for that. Since
    my method (called run_subfolder) is not retrurning any thing (this will
    create one command line argument in that i am adding subfolder condition
    and passing to the another class which will do actual thing) . For this
    method i need to write unit test case. Since i dont have to workspace also
    , so that i can test this case . Please advise on this. what i need to do.
    this is possible or not, if not why.

    Some forum suggested use mox. but i dont have more idea on this . in mox
    how i will get thet output of the function



    Thanks
    Jitendra Kumar
     
    jitendra gupta, Feb 23, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VvanN
    Replies:
    5
    Views:
    517
    Phlip
    Apr 28, 2006
  2. Sean O'Dell

    Test::Unit non-auto-run test case?

    Sean O'Dell, Sep 18, 2003, in forum: Ruby
    Replies:
    1
    Views:
    123
    Sean O'Dell
    Sep 18, 2003
  3. endy_tj
    Replies:
    1
    Views:
    165
    Bret Pettichord
    May 7, 2006
  4. timr
    Replies:
    2
    Views:
    182
  5. Mark Lawrence

    Re: Unit Test case for complie/test

    Mark Lawrence, Feb 23, 2013, in forum: Python
    Replies:
    0
    Views:
    73
    Mark Lawrence
    Feb 23, 2013
Loading...

Share This Page