[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [dtp-dev] Where can I get the unit tests for o.e.d.modelbase?
Thanks, I have found the parser test plugin that you mentioned and I believe I have confirmed one of the bugs I have encountered by adding a test to that test suite and verifying that the test fails. I am happy to create a bugzilla entry for the bug. Should I just file the bug, or does a member of the dev team want to confirm it first?
The minimal query that reproduces the bug is:
select * from (select colA from t1, t2) query1;
Running this query through the test method parserVerifySuccess() fails with this message:
junit.framework.AssertionFailedError: generated SQL does not match template SQL:
generated: SELECT * FROM (SELECT QUERY1.COLA FROM T1, T2) QUERY1
template: SELECT * FROM (SELECT COLA FROM T1, T2) QUERY1
Not only does the generated SQL not match, but it is broken.
On Mon, Apr 9, 2012 at 2:17 PM, Brian Payton <bpayton@xxxxxxxxxx>
The DTP modelbase plugins don't have
any test code in the modelbase plugins directly. (One reason is that
95% of the modelbase code is generated by EMF from model diagrams. See
the "model" folders in each plugin.)
However the modelbase "query"
plugins are exercised pretty well by the SQL parser test plugin, org.eclipse.datatools.sqltools.parsers.sql.query.test.
DTP PMC Lead
Data Tools Development
IBM Silicon Valley Laboratory
Chris Hines <eclipse-bugzilla@xxxxxxxxxx>
04/06/2012 10:53 AM
can I get the unit tests for o.e.d.modelbase?
Hello DTP developers,
I think I have found a couple of bugs in DTP modelbase
but I want to confirm them before I submit reports to bugzilla. To that
end I am looking for the existing test code for o.e.d.modelbase so I can
write some new tests within the existing framework.
I have already cloned the GIT repository for o.e.d.modelbase,
but I didn't see any tests.
If there is no existing test suite, then I will proceed
without it, but I feel like I'm just missing something.
dtp-dev mailing list
dtp-dev mailing list