Просмотр исходного кода

Merge pull request #11460 from thalesmg/integration-tests-dir-20230816

ci: add `integration_test` dir to `emqx` application
Thales Macedo Garitezi 2 лет назад
Родитель
Сommit
f03733ba6b

+ 1 - 1
.github/workflows/run_emqx_app_tests.yaml

@@ -56,7 +56,7 @@ jobs:
         ./rebar3 xref
         ./rebar3 dialyzer
         ./rebar3 eunit -v
-        ./rebar3 ct --name 'test@127.0.0.1' -v --readable=true
+        ./rebar3 as standalone_test ct --name 'test@127.0.0.1' -v --readable=true
         ./rebar3 proper -d test/props
     - uses: actions/upload-artifact@v3
       if: failure()

+ 0 - 0
apps/emqx/integration_test/.gitkeep


+ 10 - 0
apps/emqx/rebar.config

@@ -41,6 +41,16 @@
 {extra_src_dirs, [{"etc", [recursive]}]}.
 {profiles, [
     {test, [
+        {deps, [
+            {meck, "0.9.2"},
+            {proper, "1.4.0"},
+            {bbmustache, "1.10.0"},
+            {emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.8.6"}}}
+        ]},
+        {extra_src_dirs, [{"test", [recursive]},
+                          {"integration_test", [recursive]}]}
+    ]},
+    {standalone_test, [
         {deps, [
             {meck, "0.9.2"},
             {proper, "1.4.0"},