You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/01/30 10:13:53 UTC
[GitHub] [incubator-doris] morningman opened a new issue #2825: [UnitTest]
Support starting FE process and mocked Backend in unit test
morningman opened a new issue #2825: [UnitTest] Support starting FE process and mocked Backend in unit test
URL: https://github.com/apache/incubator-doris/issues/2825
When we write unit tests for some complex functions, we may need to mock a lot of method and
informations. Such as metadata information, and some interfaces related to RPC.
These mocks generate too much code and are difficult to reuse, which makes writing unit tests
more cumbersome.
I want to be able to start a real FE process directly in the unit test framework. This makes it
possible to construct metadata directly through statements. For example, the table structure required by the unit test is constructed directly through the CreateTableStmt. And a simulated BE
service thread is used to simulate the return result of the BE, so those methods that interact with
BE no longer need to be mocked.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] morningman closed issue #2825: [UnitTest] Support
starting FE process and mocked Backend in unit test
Posted by GitBox <gi...@apache.org>.
morningman closed issue #2825: [UnitTest] Support starting FE process and mocked Backend in unit test
URL: https://github.com/apache/incubator-doris/issues/2825
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org