Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Unit Test case for complie/test

Thread Tools

Unit Test case for complie/test

jitendra gupta
Posts: n/a

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

Jitendra Kumar

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Unit Test case for complie/test Mark Lawrence Python 0 02-23-2013 10:16 AM
contradicting unit test regarding blocks pass, bug in unit/test? timr Ruby 2 11-20-2010 06:30 AM
doing something before and after each test case in Test::Unit endy_tj Ruby 1 05-07-2006 10:03 PM
Test::Unit non-auto-run test case? Sean O'Dell Ruby 1 09-18-2003 06:19 PM
test test test test test test test Computer Support 2 07-02-2003 06:02 PM