Pass Command Line Parameter to getest test case

"Brian Heilig" <Brian.Heilig-tdt4z+Mb/[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.general
Message-ID <[email protected]>
Guys,

I'd like to pass a command-line argument to one of my test classes. 
There are two reasons for this:

1. The test is every so slightly different if it is running on 
Windows or on Unix. The test is very large and I don't want to 
duplicate it for a small change.
2. The test requires the tester to add a loopback plug to the 
corresponding serial device. It would be nice if the tester could 
specify which device he connected the plug to.

How would you do this?

I can, for example, define an environment variable:

geant test -Ddevice=COM1

Is there another way?

I've also thought of having two test classes, one for Unix and one 
for Windows. These would inherit most of their functionality from a 
common ancestor. But then, would getest be able to find the test 
routines inherited from the ancestor? Or would I have to put test_* 
stubs in the two test classes?

Thanks,
Brian







To Post a message, send it to:   [email protected]
To Unsubscribe, send a blank message to: [email protected] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/gobo-eiffel/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.