[ 
https://issues.apache.org/jira/browse/CALCITE-2345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16498694#comment-16498694
 ] 

Julian Hyde commented on CALCITE-2345:
--------------------------------------

In my opinion, a test should be as an integration test if it requires resources 
not in the standard development environment (say a MongoDB instance, or to be 
run on Windows).

For tests that run in the standard environment but take a long time, we have a 
flag {{-Dcalcite.test.slow}} and that tests assume to be false. For example:
{code}
  @Test public void testPosetBitsLarge2() {
    Assume.assumeTrue("too slow to run every day", CalciteAssert.ENABLE_SLOW);
    ...
  }
{code}

Developers could run these tests before they commit.

> add tests using Fongo to Mongo Adapter
> --------------------------------------
>
>                 Key: CALCITE-2345
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2345
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Andrei Sereda
>            Assignee: Michael Mior
>            Priority: Major
>
> Better test coverage for unit tests using 
> [Fongo|https://github.com/fakemongo/fongo] which is in-memory implementation 
> of Mongo API.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to