test: add eunit test for schema dump

This commit is contained in:
Zaiming (Stone) Shi 2022-02-28 09:58:55 +01:00
parent 29a898cc2e
commit 4a336b6b4e
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,13 @@
%%--------------------------------------------------------------------
%% Copyright (c) 2022 EMQ Technologies Co., Ltd. All Rights Reserved.
%%--------------------------------------------------------------------
-module(emqx_conf_schema_tests).
-include_lib("eunit/include/eunit.hrl").
doc_gen_test() ->
Dir = "tmp",
ok = filelib:ensure_dir(filename:join("tmp", foo)),
_ = emqx_conf:dump_schema(Dir),
ok.

View File

@ -0,0 +1,13 @@
%%--------------------------------------------------------------------
%% Copyright (c) 2022 EMQ Technologies Co., Ltd. All Rights Reserved.
%%--------------------------------------------------------------------
-module(emqx_enterprise_conf_schema_tests).
-include_lib("eunit/include/eunit.hrl").
doc_gen_test() ->
Dir = "tmp",
ok = filelib:ensure_dir(filename:join("tmp", foo)),
_ = emqx_conf:dump_schema(Dir, emqx_enterprise_conf_schema),
ok.