[Mondrian] RE: Eigenbase perforce change 10142 for review

Julian Hyde jhyde at pentaho.org
Tue Nov 6 13:37:40 EST 2007

Your change looks good. Excellent work - thanks.


From: mondrian-bounces at pentaho.org [mailto:mondrian-bounces at pentaho.org] On
Behalf Of Ajit Vasudeo Joglekar
Sent: Tuesday, November 06, 2007 9:33 AM
To: julian at hydromatic.net
Cc: mondrian at pentaho.org
Subject: [Mondrian] RE: Eigenbase perforce change 10142 for review

Thanks Julian, 

I have made the test strategy changes 

I have added three specific test cases for different
NullMemberRepresentation values in megatest doAllTests() 

The tests that would have failed now recuse themselves whenever the
NullMemberRepresentation value is other than  default. Other possibility was
to form the expected result values using the current
NullMemberRepresentation value atleast in the case of non xml file based


"Julian Hyde" <jhyde at pentaho.org> 

11/04/2007 07:49 AM 

Please respond to
<julian at hydromatic.net>

"'Ajit Joglekar'" <ajogleka at thoughtworks.com> 

<mondrian at pentaho.org> 

RE: Eigenbase perforce change 10142 for review



The change looks great - but I'd have used a different testing strategy.

With properties which can't readily be changed at runtime, I generally use a
different testing strategy. I don't try to change the property at runtime,
but modify megatest to run the test with the property set both ways.
Sometimes a test has to recuse itself if the property setting is
incompatible with the test, but that's OK. The nice thing is that then all
tests can be run from Main, or indeed standalone.

To see this, change the line in bin/megatest from

 doTest jdk1.6 access


 doTest jdk1.6 access mondrian.olap.NullMemberRepresentation=TheNullMember

and you'll get about 10 failures. Can you fix up the suite so it works
whatever the value of the property. You should also be able to back out the
ant changes, such as the junit-nobuild-nomember target.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20071106/71b11bf0/attachment.html 

More information about the Mondrian mailing list