summaryrefslogtreecommitdiff
path: root/rel/files/eunit.config
blob: 4e49c6d177c9a46b965df65253f34c3feffd0149 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% Licensed under the Apache License, Version 2.0 (the "License"); you may not
% use this file except in compliance with the License. You may obtain a copy of
% the License at
%
%   http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable law or agreed to in writing, software
% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
% License for the specific language governing permissions and limitations under
% the License.

[
    {kernel, [{error_logger, silent}]},
    {sasl, [{sasl_error_logger, false}]},

    % When fabric is configured with eunit_run=true it will ask erlfdb for a
    % test database. The default behavior for erlfdb in this case is start a
    % new fdbserver process for the test. If you would rather have erlfdb
    % connect to an existing FoundationDB cluster, you can supply the path
    % to the cluster file as a binary string here.
    %
    % NOTE: the unit tests will erase all the data in the cluster!
    %
    % The docker-compose configuration in the .devcontainer activates this
    % application setting using ERL_ZFLAGS in the container environment, so
    % any tests will use the fdbserver running in the fdb container.
    % {erlfdb, [{test_cluster_file, <<"/usr/local/etc/foundationdb/fdb.cluster">>}]},
    {fabric, [{eunit_run, true}]}
].