Repository: artusjs/core
Pull request #71 (2022-05-16 12:52:10)

Chore/filename
#56 


Patch:
diff --git a/artus-exception.yaml b/artus_exception.yaml
similarity index 100%
rename from artus-exception.yaml
rename to artus_exception.yaml
diff --git a/src/configuration/index.ts b/src/configuration/index.ts
index 6655619..3780745 100644
--- a/src/configuration/index.ts
+++ b/src/configuration/index.ts
@@ -2,7 +2,7 @@ import { Injectable } from '@artus/injection';
 import { ARTUS_DEFAULT_CONFIG_ENV, ARTUS_SERVER_ENV } from '../constraints';
 import { ManifestItem } from '../loader';
 import { mergeConfig } from '../loader/utils/merge';
-import compatibleRequire from '../utils/compatible-require';
+import compatibleRequire from '../utils/compatible_require';
 import { DefineConfigHandle } from './decorator';
 
 export type ConfigObject = Record<string, any>;
diff --git a/src/constraints.ts b/src/constraints.ts
index 4a321e5..502b217 100644
--- a/src/constraints.ts
+++ b/src/constraints.ts
@@ -47,7 +47,7 @@ export const PLUGIN_CONFIG_PATTERN = 'plugin.*';
 export const CONFIG_PATTERN = 'config.*';
 export const PLUGIN_META = ['meta.json', 'meta.yaml', 'meta.yml'];
 export const PACKAGE_JSON = 'package.json';
-export const EXCEPTION_FILE = 'artus-exception.yaml';
+export const EXCEPTION_FILE = 'artus_exception.yaml';
 
 export const DEFAULT_LOADER_LIST_WITH_ORDER = [
   'exception',
diff --git a/src/loader/factory.ts b/src/loader/factory.ts
index 4fd95dc..1603a62 100644
--- a/src/loader/factory.ts
+++ b/src/loader/factory.ts
@@ -4,7 +4,7 @@ import { ArtusInjectEnum, DEFAULT_LOADER, HOOK_FILE_LOADER, LOADER_NAME_META } f
 import { Manifest, ManifestItem, LoaderConstructor, LoaderHookUnit, LoaderCheckOptions } from './types';
 import ConfigurationHandler from '../configuration';
 import { LifecycleManager } from '../lifecycle';
-import compatibleRequire from '../utils/compatible-require';
+import compatibleRequire from '../utils/compatible_require';
 
 export class LoaderFactory {
   private container: Container;
diff --git a/src/loader/impl/config.ts b/src/loader/impl/config.ts
index 02813b1..f1a3045 100644
--- a/src/loader/impl/config.ts
+++ b/src/loader/impl/config.ts
@@ -4,7 +4,7 @@ import ConfigurationHandler from '../../configuration';
 import { ArtusInjectEnum, ARTUS_DEFAULT_CONFIG_ENV, CONFIG_PATTERN } from '../../constraints';
 import { DefineLoader } from '../decorator';
 import { ManifestItem, Loader, LoaderCheckOptions } from '../types';
-import compatibleRequire from '../../utils/compatible-require';
+import compatibleRequire from '../../utils/compatible_require';
 import { isMatch } from '../../utils';
 
 @DefineLoader('config')
diff --git a/src/loader/impl/exception.ts b/src/loader/impl/exception.ts
index 7a88618..c3f7d28 100644
--- a/src/loader/impl/exception.ts
+++ b/src/loader/impl/exception.ts
@@ -3,7 +3,7 @@ import { DefineLoader } from '../decorator';
 import { ManifestItem, Loader, LoaderCheckOptions } from '../types';
 import { ExceptionItem } from '../../exception/types';
 import { ExceptionHandler } from '../../exception';
-import { loadMetaFile } from '../../utils/load-meta-file';
+import { loadMetaFile } from '../../utils/load_meta_file';
 import { EXCEPTION_FILE } from '../../constraints';
 import { isMatch } from '../../utils';
 
diff --git a/src/loader/impl/frameworkConfig.ts b/src/loader/impl/framework_config.ts
similarity index 85%
rename from src/loader/impl/frameworkConfig.ts
rename to src/loader/impl/framework_config.ts
index 86e112e..3802b08 100644
--- a/src/loader/impl/frameworkConfig.ts
+++ b/src/loader/impl/framework_config.ts
@@ -1,7 +1,7 @@
 import ConfigurationHandler from '../../configuration';
 import { DefineLoader } from '../decorator';
 import { ManifestItem, Loader, LoaderCheckOptions } from '../types';
-import compatibleRequire from '../../utils/compatible-require';
+import compatibleRequire from '../../utils/compatible_require';
 import { ArtusInjectEnum, ARTUS_DEFAULT_CONFIG_ENV, FRAMEWORK_PATTERN } from '../../constraints';
 import ConfigLoader from './config';
 import { isMatch } from '../../utils';
@@ -33,13 +33,10 @@ class FrameworkConfigLoader extends ConfigLoader implements Loader {
     }
 
     const configHandler = this.container.get(ConfigurationHandler);
-    configHandler.addFramework(
-      item.source || 'app',
-      configObj,
-      {
-        env,
-        unitName: item.unitName || ''
-      });
+    configHandler.addFramework(item.source || 'app', configObj, {
+      env,
+      unitName: item.unitName || '',
+    });
   }
 }
 
diff --git a/src/loader/impl/index.ts b/src/loader/impl/index.ts
index 0d05df1..18d66ee 100644
--- a/src/loader/impl/index.ts
+++ b/src/loader/impl/index.ts
@@ -2,9 +2,9 @@ import ModuleLoader from './module';
 import ConfigLoader from './config';
 import ExceptionLoader from './exception';
 import LifecycleLoader from './lifecycle';
-import PluginMetaLoader from './pluginMeta';
-import PluginConfigLoader from './pluginConfig';
-import FrameworkConfigLoader from './frameworkConfig';
+import PluginMetaLoader from './plugin_meta';
+import PluginConfigLoader from './plugin_config';
+import FrameworkConfigLoader from './framework_config';
 import PackageLoader from './package';
 
 export {
diff --git a/src/loader/impl/lifecycle.ts b/src/loader/impl/lifecycle.ts
index 6e5431f..0e474e9 100644
--- a/src/loader/impl/lifecycle.ts
+++ b/src/loader/impl/lifecycle.ts
@@ -4,7 +4,7 @@ import { LifecycleManager } from '../../lifecycle';
 import { ApplicationLifecycle } from '../../types';
 import { DefineLoader } from '../decorator';
 import { ManifestItem, Loader } from '../types';
-import compatibleRequire from '../../utils/compatible-require';
+import compatibleRequire from '../../utils/compatible_require';
 
 @DefineLoader('lifecycle-hook-unit')
 class LifecycleLoader implements Loader {
diff --git a/src/loader/impl/module.ts b/src/loader/impl/module.ts
index b5b149c..6556f1e 100644
--- a/src/loader/impl/module.ts
+++ b/src/loader/impl/module.ts
@@ -1,7 +1,7 @@
 import { Container, InjectableDefinition } from '@artus/injection';
 import { DefineLoader } from '../decorator';
 import { ManifestItem, Loader } from '../types';
-import compatibleRequire from '../../utils/compatible-require';
+import compatibleRequire from '../../utils/compatible_require';
 
 @DefineLoader('module')
 class ModuleLoader implements Loader {
diff --git a/src/loader/impl/package.ts b/src/loader/impl/package.ts
index 7c00f33..a1dfdab 100644
--- a/src/loader/impl/package.ts
+++ b/src/loader/impl/package.ts
@@ -2,7 +2,7 @@ import { Container } from '@artus/injection';
 import ConfigurationHandler from '../../configuration';
 import { DefineLoader } from '../decorator';
 import { ManifestItem, Loader, LoaderCheckOptions } from '../types';
-import compatibleRequire from '../../utils/compatible-require';
+import compatibleRequire from '../../utils/compatible_require';
 import { PACKAGE_JSON } from '../../constraints';
 import { isMatch } from '../../utils';
 
diff --git a/src/loader/impl/pluginConfig.ts b/src/loader/impl/plugin_config.ts
similarity index 100%
rename from src/loader/impl/pluginConfig.ts
rename to src/loader/impl/plugin_config.ts
diff --git a/src/loader/impl/pluginMeta.ts b/src/loader/impl/plugin_meta.ts
similarity index 91%
rename from src/loader/impl/pluginMeta.ts
rename to src/loader/impl/plugin_meta.ts
index d94ee59..37204e4 100644
--- a/src/loader/impl/pluginMeta.ts
+++ b/src/loader/impl/plugin_meta.ts
@@ -1,7 +1,7 @@
 import { Container } from '@artus/injection';
 import { DefineLoader } from '../decorator';
 import { ManifestItem, Loader } from '../types';
-import { loadMetaFile } from '../../utils/load-meta-file';
+import { loadMetaFile } from '../../utils/load_meta_file';
 import { PluginMetadata } from '../../plugin/types';
 
 @DefineLoader('plugin-meta')
diff --git a/src/plugin/impl.ts b/src/plugin/impl.ts
index e607690..9bc5814 100644
--- a/src/plugin/impl.ts
+++ b/src/plugin/impl.ts
@@ -1,6 +1,6 @@
 import path from 'path';
 import { BasePlugin } from './base';
-import { loadMetaFile } from '../utils/load-meta-file';
+import { loadMetaFile } from '../utils/load_meta_file';
 import { exisis } from '../utils/fs';
 
 export class ArtusPlugin extends BasePlugin {


Test patch:
diff --git a/src/utils/compatible-require.ts b/src/utils/compatible_require.ts
similarity index 100%
rename from src/utils/compatible-require.ts
rename to src/utils/compatible_require.ts
diff --git a/src/utils/load-meta-file.ts b/src/utils/load_meta_file.ts
similarity index 100%
rename from src/utils/load-meta-file.ts
rename to src/utils/load_meta_file.ts
diff --git a/test/app.test.ts b/test/app.test.ts
index 8f71574..ebf3724 100644
--- a/test/app.test.ts
+++ b/test/app.test.ts
@@ -6,7 +6,7 @@ describe('test/app.test.ts', () => {
   describe('app koa with ts', () => {
     it('should run app', async () => {
       // Skip Controller
-      const HelloController = await import('./fixtures/app-koa-with-ts/src/controllers/hello');
+      const HelloController = await import('./fixtures/app_koa_with_ts/src/controllers/hello');
       assert(HelloController);
       expect(await new HelloController.default().index()).toStrictEqual({
         content: 'Hello Artus',
@@ -18,7 +18,7 @@ describe('test/app.test.ts', () => {
         const {
           main,
           isListening
-        } = await import('./fixtures/app-koa-with-ts/src/bootstrap');
+        } = await import('./fixtures/app_koa_with_ts/src/bootstrap');
         const app = await main();
         const testResponse = await axios.get('http://127.0.0.1:3000', {
           headers: {
diff --git a/test/config.test.ts b/test/config.test.ts
index 75d9edf..b0f3f55 100644
--- a/test/config.test.ts
+++ b/test/config.test.ts
@@ -5,7 +5,7 @@ describe('test/app.test.ts', () => {
   describe('app with config', () => {
     it('should config load on application', async () => {
       process.env[ARTUS_SERVER_ENV] = 'production';
-      const { main } = await import('./fixtures/app-with-config/bootstrap');
+      const { main } = await import('./fixtures/app_with_config/bootstrap');
       const app = await main();
       expect(app.config).toEqual({ name: 'test-for-config', test: 1, arr: [ 4, 5, 6 ] })
       process.env[ARTUS_SERVER_ENV] = undefined;
diff --git a/test/exception.test.ts b/test/exception.test.ts
index 8cedc83..58e6120 100644
--- a/test/exception.test.ts
+++ b/test/exception.test.ts
@@ -72,7 +72,7 @@ describe('test/app.test.ts', () => {
       try {
         const {
           main
-        } = await import('./fixtures/exception-with-ts-yaml/bootstrap');
+        } = await import('./fixtures/exception_with_ts_yaml/bootstrap');
         const app = await main();
 
         try {
diff --git a/test/fixtures/app-koa-with-ts/package.json b/test/fixtures/app_koa_with_ts/package.json
similarity index 100%
rename from test/fixtures/app-koa-with-ts/package.json
rename to test/fixtures/app_koa_with_ts/package.json
diff --git a/test/fixtures/app-koa-with-ts/src/app.ts b/test/fixtures/app_koa_with_ts/src/app.ts
similarity index 97%
rename from test/fixtures/app-koa-with-ts/src/app.ts
rename to test/fixtures/app_koa_with_ts/src/app.ts
index ee69120..cb5806a 100644
--- a/test/fixtures/app-koa-with-ts/src/app.ts
+++ b/test/fixtures/app_koa_with_ts/src/app.ts
@@ -7,7 +7,7 @@ import { ArtusApplication } from '../../../../src';
 import { LifecycleHookUnit, LifecycleHook, WithApplication, WithContainer } from '../../../../src/decorator';
 import { ApplicationLifecycle } from '../../../../src/types';
 
-import KoaApplication from './koaApp';
+import KoaApplication from './koa_app';
 import HelloController from './controllers/hello';
 
 export let server: Server;
diff --git a/test/fixtures/app-koa-with-ts/src/artus-exception.yaml b/test/fixtures/app_koa_with_ts/src/artus_exception.yaml
similarity index 100%
rename from test/fixtures/app-koa-with-ts/src/artus-exception.yaml
rename to test/fixtures/app_koa_with_ts/src/artus_exception.yaml
diff --git a/test/fixtures/app-koa-with-ts/src/bootstrap.ts b/test/fixtures/app_koa_with_ts/src/bootstrap.ts
similarity index 91%
rename from test/fixtures/app-koa-with-ts/src/bootstrap.ts
rename to test/fixtures/app_koa_with_ts/src/bootstrap.ts
index 51bac1c..db13dcf 100644
--- a/test/fixtures/app-koa-with-ts/src/bootstrap.ts
+++ b/test/fixtures/app_koa_with_ts/src/bootstrap.ts
@@ -15,14 +15,14 @@ async function main() {
         source: 'app'
       },
       {
-        path: path.resolve(__dirname, './koaApp'),
+        path: path.resolve(__dirname, './koa_app'),
         extname: '.ts',
         filename: 'koaApp.ts',
         loader: 'module',
         source: 'app'
       },
       {
-        path: path.resolve(__dirname, './httpTrigger'),
+        path: path.resolve(__dirname, './http_trigger'),
         extname: '.ts',
         filename: 'httpTrigger.ts',
         loader: 'module',
diff --git a/test/fixtures/app-koa-with-ts/src/config/config.default.ts b/test/fixtures/app_koa_with_ts/src/config/config.default.ts
similarity index 100%
rename from test/fixtures/app-koa-with-ts/src/config/config.default.ts
rename to test/fixtures/app_koa_with_ts/src/config/config.default.ts
diff --git a/test/fixtures/app-koa-with-ts/src/config/plugin.d.ts b/test/fixtures/app_koa_with_ts/src/config/plugin.d.ts
similarity index 100%
rename from test/fixtures/app-koa-with-ts/src/config/plugin.d.ts
rename to test/fixtures/app_koa_with_ts/src/config/plugin.d.ts
diff --git a/test/fixtures/app-koa-with-ts/src/config/plugin.default.ts b/test/fixtures/app_koa_with_ts/src/config/plugin.default.ts
similarity index 52%
rename from test/fixtures/app-koa-with-ts/src/config/plugin.default.ts
rename to test/fixtures/app_koa_with_ts/src/config/plugin.default.ts
index d69d2bf..9ef66e0 100644
--- a/test/fixtures/app-koa-with-ts/src/config/plugin.default.ts
+++ b/test/fixtures/app_koa_with_ts/src/config/plugin.default.ts
@@ -3,10 +3,10 @@ import path from 'path';
 export default {
   redis: {
     enable: true,
-    path: path.resolve(__dirname, '../redis-plugin')
+    path: path.resolve(__dirname, '../redis_plugin')
   },
   mysql: {
     enable: false,
-    path: path.resolve(__dirname, '../mysql-plugin')
+    path: path.resolve(__dirname, '../mysql_plugin')
   },
 };
diff --git a/test/fixtures/app-koa-with-ts/src/controllers/hello.ts b/test/fixtures/app_koa_with_ts/src/controllers/hello.ts
similarity index 100%
rename from test/fixtures/app-koa-with-ts/src/controllers/hello.ts
rename to test/fixtures/app_koa_with_ts/src/controllers/hello.ts
diff --git a/test/fixtures/app-koa-with-ts/src/httpTrigger.ts b/test/fixtures/app_koa_with_ts/src/http_trigger.ts
similarity index 100%
rename from test/fixtures/app-koa-with-ts/src/httpTrigger.ts
rename to test/fixtures/app_koa_with_ts/src/http_trigger.ts
diff --git a/test/fixtures/app-koa-with-ts/src/koaApp.ts b/test/fixtures/app_koa_with_ts/src/koa_app.ts
similarity index 100%
rename from test/fixtures/app-koa-with-ts/src/koaApp.ts
rename to test/fixtures/app_koa_with_ts/src/koa_app.ts
diff --git a/test/fixtures/app-koa-with-ts/src/mysql-plugin/app.ts b/test/fixtures/app_koa_with_ts/src/mysql_plugin/app.ts
similarity index 100%
rename from test/fixtures/app-koa-with-ts/src/mysql-plugin/app.ts
rename to test/fixtures/app_koa_with_ts/src/mysql_plugin/app.ts
diff --git a/test/fixtures/app-koa-with-ts/src/mysql-plugin/meta.yaml b/test/fixtures/app_koa_with_ts/src/mysql_plugin/meta.yaml
similarity index 100%
rename from test/fixtures/app-koa-with-ts/src/mysql-plugin/meta.yaml
rename to test/fixtures/app_koa_with_ts/src/mysql_plugin/meta.yaml
diff --git a/test/fixtures/app-koa-with-ts/src/redis-plugin/app.ts b/test/fixtures/app_koa_with_ts/src/redis_plugin/app.ts
similarity index 100%
rename from test/fixtures/app-koa-with-ts/src/redis-plugin/app.ts
rename to test/fixtures/app_koa_with_ts/src/redis_plugin/app.ts
diff --git a/test/fixtures/app-koa-with-ts/src/redis-plugin/meta.yaml b/test/fixtures/app_koa_with_ts/src/redis_plugin/meta.yaml
similarity index 100%
rename from test/fixtures/app-koa-with-ts/src/redis-plugin/meta.yaml
rename to test/fixtures/app_koa_with_ts/src/redis_plugin/meta.yaml
diff --git a/test/fixtures/app-koa-with-ts/src/services/hello.ts b/test/fixtures/app_koa_with_ts/src/services/hello.ts
similarity index 100%
rename from test/fixtures/app-koa-with-ts/src/services/hello.ts
rename to test/fixtures/app_koa_with_ts/src/services/hello.ts
diff --git a/test/fixtures/app-koa-with-ts/tsconfig.json b/test/fixtures/app_koa_with_ts/tsconfig.json
similarity index 100%
rename from test/fixtures/app-koa-with-ts/tsconfig.json
rename to test/fixtures/app_koa_with_ts/tsconfig.json
diff --git a/test/fixtures/app-with-config/app.ts b/test/fixtures/app_with_config/app.ts
similarity index 100%
rename from test/fixtures/app-with-config/app.ts
rename to test/fixtures/app_with_config/app.ts
diff --git a/test/fixtures/app-with-config/bootstrap.ts b/test/fixtures/app_with_config/bootstrap.ts
similarity index 100%
rename from test/fixtures/app-with-config/bootstrap.ts
rename to test/fixtures/app_with_config/bootstrap.ts
diff --git a/test/fixtures/app-with-config/config/config.default.ts b/test/fixtures/app_with_config/config/config.default.ts
similarity index 100%
rename from test/fixtures/app-with-config/config/config.default.ts
rename to test/fixtures/app_with_config/config/config.default.ts
diff --git a/test/fixtures/app-with-config/config/config.production.ts b/test/fixtures/app_with_config/config/config.production.ts
similarity index 100%
rename from test/fixtures/app-with-config/config/config.production.ts
rename to test/fixtures/app_with_config/config/config.production.ts
diff --git a/test/fixtures/app-with-config/package.json b/test/fixtures/app_with_config/package.json
similarity index 100%
rename from test/fixtures/app-with-config/package.json
rename to test/fixtures/app_with_config/package.json
diff --git a/test/fixtures/app-with-config/tsconfig.json b/test/fixtures/app_with_config/tsconfig.json
similarity index 100%
rename from test/fixtures/app-with-config/tsconfig.json
rename to test/fixtures/app_with_config/tsconfig.json
diff --git a/test/fixtures/artus-application/src/config/plugin.default.ts b/test/fixtures/artus-application/src/config/plugin.default.ts
deleted file mode 100644
index dc45e3b..0000000
--- a/test/fixtures/artus-application/src/config/plugin.default.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import path from 'path';
-
-export default {
-  mysql: {
-    enable: true,
-    path: path.resolve(__dirname, '../plugins/artus-plugin-mysql-rds')
-  },
-  redis: {
-    enable: true,
-    path: path.resolve(__dirname, '../plugins/artus-plugin-redis')
-  },
-  base: {
-    enable: true,
-    path: path.resolve(__dirname, '../plugins/artus-plugin-base')
-  }
-}
\ No newline at end of file
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-mysql-ob/meta.yml b/test/fixtures/artus-application/src/plugins/artus-plugin-mysql-ob/meta.yml
deleted file mode 100644
index 4c2256d..0000000
--- a/test/fixtures/artus-application/src/plugins/artus-plugin-mysql-ob/meta.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-name: "mysql"
-configDir: src/custom-config
-dependencies:
-  - name: "base"
\ No newline at end of file
diff --git a/test/fixtures/artus-application/package.json b/test/fixtures/artus_application/package.json
similarity index 100%
rename from test/fixtures/artus-application/package.json
rename to test/fixtures/artus_application/package.json
diff --git a/test/fixtures/artus-application/src/config/config.default.ts b/test/fixtures/artus_application/src/config/config.default.ts
similarity index 100%
rename from test/fixtures/artus-application/src/config/config.default.ts
rename to test/fixtures/artus_application/src/config/config.default.ts
diff --git a/test/fixtures/artus-application/src/config/config.private.ts b/test/fixtures/artus_application/src/config/config.private.ts
similarity index 100%
rename from test/fixtures/artus-application/src/config/config.private.ts
rename to test/fixtures/artus_application/src/config/config.private.ts
diff --git a/test/fixtures/artus-application/src/config/framework.ts b/test/fixtures/artus_application/src/config/framework.ts
similarity index 100%
rename from test/fixtures/artus-application/src/config/framework.ts
rename to test/fixtures/artus_application/src/config/framework.ts
diff --git a/test/fixtures/artus_application/src/config/plugin.default.ts b/test/fixtures/artus_application/src/config/plugin.default.ts
new file mode 100644
index 0000000..dc22d22
--- /dev/null
+++ b/test/fixtures/artus_application/src/config/plugin.default.ts
@@ -0,0 +1,16 @@
+import path from 'path';
+
+export default {
+  mysql: {
+    enable: true,
+    path: path.resolve(__dirname, '../plugins/artus_plugin_mysql_rds')
+  },
+  redis: {
+    enable: true,
+    path: path.resolve(__dirname, '../plugins/artus_plugin_redis')
+  },
+  base: {
+    enable: true,
+    path: path.resolve(__dirname, '../plugins/artus_plugin_base')
+  }
+}
\ No newline at end of file
diff --git a/test/fixtures/artus-application/src/config/plugin.private.ts b/test/fixtures/artus_application/src/config/plugin.private.ts
similarity index 60%
rename from test/fixtures/artus-application/src/config/plugin.private.ts
rename to test/fixtures/artus_application/src/config/plugin.private.ts
index fac3f7d..dbe0d85 100644
--- a/test/fixtures/artus-application/src/config/plugin.private.ts
+++ b/test/fixtures/artus_application/src/config/plugin.private.ts
@@ -3,7 +3,7 @@ import path from 'path';
 export default {
   mysql: {
     enable: true,
-    path: path.resolve(__dirname, '../plugins/artus-plugin-mysql-ob')
+    path: path.resolve(__dirname, '../plugins/artus_plugin_mysql_ob')
   },
   redis: {
     enable: false
diff --git a/test/fixtures/artus-application/src/controller/conifg.ts b/test/fixtures/artus_application/src/controller/conifg.ts
similarity index 100%
rename from test/fixtures/artus-application/src/controller/conifg.ts
rename to test/fixtures/artus_application/src/controller/conifg.ts
diff --git a/test/fixtures/artus-application/src/controller/hello.ts b/test/fixtures/artus_application/src/controller/hello.ts
similarity index 100%
rename from test/fixtures/artus-application/src/controller/hello.ts
rename to test/fixtures/artus_application/src/controller/hello.ts
diff --git a/test/fixtures/artus-application/src/controller/plugin.ts b/test/fixtures/artus_application/src/controller/plugin.ts
similarity index 100%
rename from test/fixtures/artus-application/src/controller/plugin.ts
rename to test/fixtures/artus_application/src/controller/plugin.ts
diff --git a/test/fixtures/artus-application/src/index.ts b/test/fixtures/artus_application/src/index.ts
similarity index 100%
rename from test/fixtures/artus-application/src/index.ts
rename to test/fixtures/artus_application/src/index.ts
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-base/meta.yml b/test/fixtures/artus_application/src/plugins/artus_plugin_base/meta.yml
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-base/meta.yml
rename to test/fixtures/artus_application/src/plugins/artus_plugin_base/meta.yml
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-base/package.json b/test/fixtures/artus_application/src/plugins/artus_plugin_base/package.json
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-base/package.json
rename to test/fixtures/artus_application/src/plugins/artus_plugin_base/package.json
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-base/src/config.default.ts b/test/fixtures/artus_application/src/plugins/artus_plugin_base/src/config.default.ts
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-base/src/config.default.ts
rename to test/fixtures/artus_application/src/plugins/artus_plugin_base/src/config.default.ts
diff --git a/test/fixtures/artus_application/src/plugins/artus_plugin_mysql_ob/meta.yml b/test/fixtures/artus_application/src/plugins/artus_plugin_mysql_ob/meta.yml
new file mode 100644
index 0000000..151499d
--- /dev/null
+++ b/test/fixtures/artus_application/src/plugins/artus_plugin_mysql_ob/meta.yml
@@ -0,0 +1,4 @@
+name: "mysql"
+configDir: src/custom_config
+dependencies:
+  - name: "base"
\ No newline at end of file
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-mysql-ob/package.json b/test/fixtures/artus_application/src/plugins/artus_plugin_mysql_ob/package.json
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-mysql-ob/package.json
rename to test/fixtures/artus_application/src/plugins/artus_plugin_mysql_ob/package.json
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-mysql-ob/src/app.ts b/test/fixtures/artus_application/src/plugins/artus_plugin_mysql_ob/src/app.ts
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-mysql-ob/src/app.ts
rename to test/fixtures/artus_application/src/plugins/artus_plugin_mysql_ob/src/app.ts
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-mysql-ob/src/client.ts b/test/fixtures/artus_application/src/plugins/artus_plugin_mysql_ob/src/client.ts
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-mysql-ob/src/client.ts
rename to test/fixtures/artus_application/src/plugins/artus_plugin_mysql_ob/src/client.ts
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-mysql-ob/src/custom-config/config.default.ts b/test/fixtures/artus_application/src/plugins/artus_plugin_mysql_ob/src/custom_config/config.default.ts
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-mysql-ob/src/custom-config/config.default.ts
rename to test/fixtures/artus_application/src/plugins/artus_plugin_mysql_ob/src/custom_config/config.default.ts
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-mysql-rds/meta.yml b/test/fixtures/artus_application/src/plugins/artus_plugin_mysql_rds/meta.yml
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-mysql-rds/meta.yml
rename to test/fixtures/artus_application/src/plugins/artus_plugin_mysql_rds/meta.yml
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-mysql-rds/package.json b/test/fixtures/artus_application/src/plugins/artus_plugin_mysql_rds/package.json
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-mysql-rds/package.json
rename to test/fixtures/artus_application/src/plugins/artus_plugin_mysql_rds/package.json
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-mysql-rds/src/app.ts b/test/fixtures/artus_application/src/plugins/artus_plugin_mysql_rds/src/app.ts
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-mysql-rds/src/app.ts
rename to test/fixtures/artus_application/src/plugins/artus_plugin_mysql_rds/src/app.ts
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-mysql-rds/src/client.ts b/test/fixtures/artus_application/src/plugins/artus_plugin_mysql_rds/src/client.ts
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-mysql-rds/src/client.ts
rename to test/fixtures/artus_application/src/plugins/artus_plugin_mysql_rds/src/client.ts
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-mysql-rds/src/config/config.default.ts b/test/fixtures/artus_application/src/plugins/artus_plugin_mysql_rds/src/config/config.default.ts
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-mysql-rds/src/config/config.default.ts
rename to test/fixtures/artus_application/src/plugins/artus_plugin_mysql_rds/src/config/config.default.ts
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-redis/meta.yml b/test/fixtures/artus_application/src/plugins/artus_plugin_redis/meta.yml
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-redis/meta.yml
rename to test/fixtures/artus_application/src/plugins/artus_plugin_redis/meta.yml
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-redis/package.json b/test/fixtures/artus_application/src/plugins/artus_plugin_redis/package.json
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-redis/package.json
rename to test/fixtures/artus_application/src/plugins/artus_plugin_redis/package.json
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-redis/src/app.ts b/test/fixtures/artus_application/src/plugins/artus_plugin_redis/src/app.ts
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-redis/src/app.ts
rename to test/fixtures/artus_application/src/plugins/artus_plugin_redis/src/app.ts
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-redis/src/client.ts b/test/fixtures/artus_application/src/plugins/artus_plugin_redis/src/client.ts
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-redis/src/client.ts
rename to test/fixtures/artus_application/src/plugins/artus_plugin_redis/src/client.ts
diff --git a/test/fixtures/artus-application/src/plugins/artus-plugin-redis/src/config/config.default.ts b/test/fixtures/artus_application/src/plugins/artus_plugin_redis/src/config/config.default.ts
similarity index 100%
rename from test/fixtures/artus-application/src/plugins/artus-plugin-redis/src/config/config.default.ts
rename to test/fixtures/artus_application/src/plugins/artus_plugin_redis/src/config/config.default.ts
diff --git a/test/fixtures/exception-with-ts-yaml/app.ts b/test/fixtures/exception_with_ts_yaml/app.ts
similarity index 100%
rename from test/fixtures/exception-with-ts-yaml/app.ts
rename to test/fixtures/exception_with_ts_yaml/app.ts
diff --git a/test/fixtures/exception-with-ts-yaml/artus-exception.yaml b/test/fixtures/exception_with_ts_yaml/artus_exception.yaml
similarity index 100%
rename from test/fixtures/exception-with-ts-yaml/artus-exception.yaml
rename to test/fixtures/exception_with_ts_yaml/artus_exception.yaml
diff --git a/test/fixtures/exception-with-ts-yaml/bootstrap.ts b/test/fixtures/exception_with_ts_yaml/bootstrap.ts
similarity index 76%
rename from test/fixtures/exception-with-ts-yaml/bootstrap.ts
rename to test/fixtures/exception_with_ts_yaml/bootstrap.ts
index 1091d95..608f256 100644
--- a/test/fixtures/exception-with-ts-yaml/bootstrap.ts
+++ b/test/fixtures/exception_with_ts_yaml/bootstrap.ts
@@ -14,16 +14,16 @@ async function main() {
         source: 'app'
       },
       {
-        path: path.resolve(__dirname, '../../../artus-exception.yaml'),
+        path: path.resolve(__dirname, '../../../artus_exception.yaml'),
         extname: '.yaml',
-        filename: 'artus-exception.yaml',
+        filename: 'artus_exception.yaml',
         loader: 'exception',
         source: 'app'
       },
       {
-        path: path.resolve(__dirname, './artus-exception.yaml'),
+        path: path.resolve(__dirname, './artus_exception.yaml'),
         extname: '.yaml',
-        filename: 'artus-exception.yaml',
+        filename: 'artus_exception.yaml',
         loader: 'exception',
         source: 'app'
       }
diff --git a/test/fixtures/exception-with-ts-yaml/package.json b/test/fixtures/exception_with_ts_yaml/package.json
similarity index 100%
rename from test/fixtures/exception-with-ts-yaml/package.json
rename to test/fixtures/exception_with_ts_yaml/package.json
diff --git a/test/fixtures/exception-with-ts-yaml/tsconfig.json b/test/fixtures/exception_with_ts_yaml/tsconfig.json
similarity index 100%
rename from test/fixtures/exception-with-ts-yaml/tsconfig.json
rename to test/fixtures/exception_with_ts_yaml/tsconfig.json
diff --git a/test/fixtures/module-with-custom-loader/package.json b/test/fixtures/module_with_custom_loader/package.json
similarity index 100%
rename from test/fixtures/module-with-custom-loader/package.json
rename to test/fixtures/module_with_custom_loader/package.json
diff --git a/test/fixtures/module-with-custom-loader/src/index.ts b/test/fixtures/module_with_custom_loader/src/index.ts
similarity index 73%
rename from test/fixtures/module-with-custom-loader/src/index.ts
rename to test/fixtures/module_with_custom_loader/src/index.ts
index 6ee0889..b46b452 100644
--- a/test/fixtures/module-with-custom-loader/src/index.ts
+++ b/test/fixtures/module_with_custom_loader/src/index.ts
@@ -7,9 +7,9 @@ const rootDir = path.resolve(__dirname, './');
 export default ({
   items: [
     {
-      path: path.resolve(rootDir, './testClazz.ts'),
+      path: path.resolve(rootDir, './test_clazz.ts'),
       extname: '.ts',
-      filename: 'testClazz.ts',
+      filename: 'test_clazz.ts',
       loader: 'test-custom-loader'
     }
   ]
diff --git a/test/fixtures/module-with-custom-loader/src/loader/test_custom_loader.ts b/test/fixtures/module_with_custom_loader/src/loader/test_custom_loader.ts
similarity index 88%
rename from test/fixtures/module-with-custom-loader/src/loader/test_custom_loader.ts
rename to test/fixtures/module_with_custom_loader/src/loader/test_custom_loader.ts
index c14e5b2..1d3b229 100644
--- a/test/fixtures/module-with-custom-loader/src/loader/test_custom_loader.ts
+++ b/test/fixtures/module_with_custom_loader/src/loader/test_custom_loader.ts
@@ -1,11 +1,11 @@
 
 import { DefineLoader, Loader, LoaderCheckOptions, ManifestItem } from '../../../../../src';
-import compatibleRequire from '../../../../../src/utils/compatible-require';
+import compatibleRequire from '../../../../../src/utils/compatible_require';
 
 @DefineLoader('test-custom-loader')
 export default class TestCustomLoader implements Loader {
   async is(opts: LoaderCheckOptions) {
-    return opts.filename === 'testClazz.ts'
+    return opts.filename === 'test_clazz.ts'
   }
 
   async load(item: ManifestItem) {
diff --git a/test/fixtures/module-with-custom-loader/src/testClazz.ts b/test/fixtures/module_with_custom_loader/src/test_clazz.ts
similarity index 100%
rename from test/fixtures/module-with-custom-loader/src/testClazz.ts
rename to test/fixtures/module_with_custom_loader/src/test_clazz.ts
diff --git a/test/fixtures/module-with-custom-loader/tsconfig.json b/test/fixtures/module_with_custom_loader/tsconfig.json
similarity index 100%
rename from test/fixtures/module-with-custom-loader/tsconfig.json
rename to test/fixtures/module_with_custom_loader/tsconfig.json
diff --git a/test/fixtures/module-with-js/package.json b/test/fixtures/module_with_js/package.json
similarity index 100%
rename from test/fixtures/module-with-js/package.json
rename to test/fixtures/module_with_js/package.json
diff --git a/test/fixtures/module-with-js/src/index.js b/test/fixtures/module_with_js/src/index.js
similarity index 58%
rename from test/fixtures/module-with-js/src/index.js
rename to test/fixtures/module_with_js/src/index.js
index a46e8f8..4f7c89b 100644
--- a/test/fixtures/module-with-js/src/index.js
+++ b/test/fixtures/module_with_js/src/index.js
@@ -6,16 +6,16 @@ module.exports = ({
   items: [
     {
       id: 'testServiceA',
-      path: path.resolve(rootDir, './testServiceA.js'),
+      path: path.resolve(rootDir, './test_service_a.js'),
       extname: '.js',
-      filename: 'testServiceA.js',
+      filename: 'test_service_a.js',
     },
     {
       id: 'testServiceB',
       scope: 'Execution',
-      path: path.resolve(rootDir, './testServiceB.js'),
+      path: path.resolve(rootDir, './test_service_b.js'),
       extname: '.js',
-      filename: 'testServiceB.js',
+      filename: 'test_service_b.js',
     }
   ]
 });
diff --git a/test/fixtures/module-with-js/src/testServiceA.js b/test/fixtures/module_with_js/src/test_service_a.js
similarity index 100%
rename from test/fixtures/module-with-js/src/testServiceA.js
rename to test/fixtures/module_with_js/src/test_service_a.js
diff --git a/test/fixtures/module-with-js/src/testServiceB.js b/test/fixtures/module_with_js/src/test_service_b.js
similarity index 100%
rename from test/fixtures/module-with-js/src/testServiceB.js
rename to test/fixtures/module_with_js/src/test_service_b.js
diff --git a/test/fixtures/module-with-ts/package.json b/test/fixtures/module_with_ts/package.json
similarity index 100%
rename from test/fixtures/module-with-ts/package.json
rename to test/fixtures/module_with_ts/package.json
diff --git a/test/fixtures/module-with-ts/src/index.ts b/test/fixtures/module_with_ts/src/index.ts
similarity index 55%
rename from test/fixtures/module-with-ts/src/index.ts
rename to test/fixtures/module_with_ts/src/index.ts
index 75691bd..1820021 100644
--- a/test/fixtures/module-with-ts/src/index.ts
+++ b/test/fixtures/module_with_ts/src/index.ts
@@ -6,14 +6,14 @@ const rootDir = path.resolve(__dirname, './');
 export default ({
   items: [
     {
-      path: path.resolve(rootDir, './testServiceA.ts'),
+      path: path.resolve(rootDir, './test_service_a.ts'),
       extname: '.ts',
-      filename: 'testServiceA.ts',
+      filename: 'test_service_a.ts',
     },
     {
-      path: path.resolve(rootDir, './testServiceB.ts'),
+      path: path.resolve(rootDir, './test_service_b.ts'),
       extname: '.ts',
-      filename: 'testServiceB.ts',
+      filename: 'test_service_b.ts',
     }
   ]
 }) as Manifest;
diff --git a/test/fixtures/module-with-ts/src/testServiceA.ts b/test/fixtures/module_with_ts/src/test_service_a.ts
similarity index 88%
rename from test/fixtures/module-with-ts/src/testServiceA.ts
rename to test/fixtures/module_with_ts/src/test_service_a.ts
index 753e776..8d7522e 100644
--- a/test/fixtures/module-with-ts/src/testServiceA.ts
+++ b/test/fixtures/module_with_ts/src/test_service_a.ts
@@ -1,6 +1,6 @@
 import { ScopeEnum } from '@artus/injection';
 import { Injectable, Inject } from '../../../../src';
-import TestServiceB from './testServiceB';
+import TestServiceB from './test_service_b';
 
 @Injectable({
   id: 'testServiceA',
diff --git a/test/fixtures/module-with-ts/src/testServiceB.ts b/test/fixtures/module_with_ts/src/test_service_b.ts
similarity index 100%
rename from test/fixtures/module-with-ts/src/testServiceB.ts
rename to test/fixtures/module_with_ts/src/test_service_b.ts
diff --git a/test/fixtures/module-with-ts/tsconfig.json b/test/fixtures/module_with_ts/tsconfig.json
similarity index 100%
rename from test/fixtures/module-with-ts/tsconfig.json
rename to test/fixtures/module_with_ts/tsconfig.json
diff --git a/test/fixtures/plugins/plugin-a/meta.yaml b/test/fixtures/plugins/plugin_a/meta.yaml
similarity index 100%
rename from test/fixtures/plugins/plugin-a/meta.yaml
rename to test/fixtures/plugins/plugin_a/meta.yaml
diff --git a/test/fixtures/plugins/plugin-a/package.json b/test/fixtures/plugins/plugin_a/package.json
similarity index 100%
rename from test/fixtures/plugins/plugin-a/package.json
rename to test/fixtures/plugins/plugin_a/package.json
diff --git a/test/fixtures/plugins/plugin-b/meta.yaml b/test/fixtures/plugins/plugin_b/meta.yaml
similarity index 100%
rename from test/fixtures/plugins/plugin-b/meta.yaml
rename to test/fixtures/plugins/plugin_b/meta.yaml
diff --git a/test/fixtures/plugins/plugin-b/package.json b/test/fixtures/plugins/plugin_b/package.json
similarity index 100%
rename from test/fixtures/plugins/plugin-b/package.json
rename to test/fixtures/plugins/plugin_b/package.json
diff --git a/test/fixtures/plugins/plugin-c/meta.yaml b/test/fixtures/plugins/plugin_c/meta.yaml
similarity index 100%
rename from test/fixtures/plugins/plugin-c/meta.yaml
rename to test/fixtures/plugins/plugin_c/meta.yaml
diff --git a/test/fixtures/plugins/plugin-c/package.json b/test/fixtures/plugins/plugin_c/package.json
similarity index 100%
rename from test/fixtures/plugins/plugin-c/package.json
rename to test/fixtures/plugins/plugin_c/package.json
diff --git a/test/fixtures/plugins/plugin-d/meta.yaml b/test/fixtures/plugins/plugin_d/meta.yaml
similarity index 100%
rename from test/fixtures/plugins/plugin-d/meta.yaml
rename to test/fixtures/plugins/plugin_d/meta.yaml
diff --git a/test/fixtures/plugins/plugin-d/package.json b/test/fixtures/plugins/plugin_d/package.json
similarity index 100%
rename from test/fixtures/plugins/plugin-d/package.json
rename to test/fixtures/plugins/plugin_d/package.json
diff --git a/test/fixtures/plugins/plugin-wrong-a/meta.yaml b/test/fixtures/plugins/plugin_wrong_a/meta.yaml
similarity index 100%
rename from test/fixtures/plugins/plugin-wrong-a/meta.yaml
rename to test/fixtures/plugins/plugin_wrong_a/meta.yaml
diff --git a/test/fixtures/plugins/plugin-wrong-a/package.json b/test/fixtures/plugins/plugin_wrong_a/package.json
similarity index 100%
rename from test/fixtures/plugins/plugin-wrong-a/package.json
rename to test/fixtures/plugins/plugin_wrong_a/package.json
diff --git a/test/fixtures/plugins/plugin-wrong-b/meta.yaml b/test/fixtures/plugins/plugin_wrong_b/meta.yaml
similarity index 100%
rename from test/fixtures/plugins/plugin-wrong-b/meta.yaml
rename to test/fixtures/plugins/plugin_wrong_b/meta.yaml
diff --git a/test/fixtures/plugins/plugin-wrong-b/package.json b/test/fixtures/plugins/plugin_wrong_b/package.json
similarity index 100%
rename from test/fixtures/plugins/plugin-wrong-b/package.json
rename to test/fixtures/plugins/plugin_wrong_b/package.json
diff --git a/test/fixtures/trigger/event/bootstrap.ts b/test/fixtures/trigger/event/bootstrap.ts
index 9d21830..de82e03 100644
--- a/test/fixtures/trigger/event/bootstrap.ts
+++ b/test/fixtures/trigger/event/bootstrap.ts
@@ -14,9 +14,9 @@ async function main() {
         source: 'app'
       },
       {
-        path: path.resolve(__dirname, './eventTrigger'),
+        path: path.resolve(__dirname, './event_trigger'),
         extname: '.ts',
-        filename: 'eventTrigger.ts',
+        filename: 'event_trigger.ts',
         loader: 'module',
         source: 'app'
       }
diff --git a/test/fixtures/trigger/event/eventTrigger.ts b/test/fixtures/trigger/event/event_trigger.ts
similarity index 100%
rename from test/fixtures/trigger/event/eventTrigger.ts
rename to test/fixtures/trigger/event/event_trigger.ts
diff --git a/test/fixtures/trigger/http/bootstrap.ts b/test/fixtures/trigger/http/bootstrap.ts
index aa8808d..a6aed9e 100644
--- a/test/fixtures/trigger/http/bootstrap.ts
+++ b/test/fixtures/trigger/http/bootstrap.ts
@@ -14,9 +14,9 @@ async function main() {
         source: 'app'
       },
       {
-        path: path.resolve(__dirname, './httpTrigger'),
+        path: path.resolve(__dirname, './http_trigger'),
         extname: '.ts',
-        filename: 'httpTrigger.ts',
+        filename: 'http_trigger.ts',
         loader: 'module',
         source: 'app'
       }
diff --git a/test/fixtures/trigger/http/httpTrigger.ts b/test/fixtures/trigger/http/http_trigger.ts
similarity index 100%
rename from test/fixtures/trigger/http/httpTrigger.ts
rename to test/fixtures/trigger/http/http_trigger.ts
diff --git a/test/fixtures/trigger/timer/bootstrap.ts b/test/fixtures/trigger/timer/bootstrap.ts
index 4f6ae54..8cdc039 100644
--- a/test/fixtures/trigger/timer/bootstrap.ts
+++ b/test/fixtures/trigger/timer/bootstrap.ts
@@ -14,9 +14,9 @@ async function main() {
         source: 'app'
       },
       {
-        path: path.resolve(__dirname, './timerTrigger'),
+        path: path.resolve(__dirname, './timer_trigger'),
         extname: '.ts',
-        filename: 'timerTrigger.ts',
+        filename: 'timer_trigger.ts',
         loader: 'module',
         source: 'app'
       }
diff --git a/test/fixtures/trigger/timer/timerTrigger.ts b/test/fixtures/trigger/timer/timer_trigger.ts
similarity index 100%
rename from test/fixtures/trigger/timer/timerTrigger.ts
rename to test/fixtures/trigger/timer/timer_trigger.ts
diff --git a/test/framework.test.ts b/test/framework.test.ts
index 10f26f6..b121e5f 100644
--- a/test/framework.test.ts
+++ b/test/framework.test.ts
@@ -20,9 +20,9 @@ describe('test/framework.test.ts', () => {
       configDir: 'src/config',
       envs: ['private']
     });
-    const { private: manifest } = await scanner.scan(path.resolve(__dirname, './fixtures/artus-application'));
+    const { private: manifest } = await scanner.scan(path.resolve(__dirname, './fixtures/artus_application'));
     // console.log('manifest', manifest);
-    const { main } = await import('./fixtures/artus-application/src');
+    const { main } = await import('./fixtures/artus_application/src');
     const app = await main(manifest);
     const { path: appFrameworkPath } = app.artus.frameworks.get('app');
     assert(appFrameworkPath);
diff --git a/test/loader.test.ts b/test/loader.test.ts
index 7e898e8..be2b3a3 100644
--- a/test/loader.test.ts
+++ b/test/loader.test.ts
@@ -11,7 +11,7 @@ describe('test/loader.test.ts', () => {
       const container = new Container('testDefault');
       const loaderFactory = LoaderFactory.create(container);
 
-      const manifest = require('./fixtures/module-with-ts/src/index').default;
+      const manifest = require('./fixtures/module_with_ts/src/index').default;
       await loaderFactory.loadManifest(manifest);
       assert((container.get('testServiceA') as any).testMethod() === 'Hello Artus');
     });
@@ -21,7 +21,7 @@ describe('test/loader.test.ts', () => {
       const container = new Container('testDefault');
       const loaderFactory = LoaderFactory.create(container);
 
-      const manifest = require('./fixtures/module-with-js/src/index');
+      const manifest = require('./fixtures/module_with_js/src/index');
       await loaderFactory.loadManifest(manifest);
       const appProxy = new Proxy({}, {
         get (_target, properName: string) {
@@ -34,18 +34,18 @@ describe('test/loader.test.ts', () => {
   describe('module with custom loader', () => {
     it('should load module test.ts with custom loader', async () => {
       // SEEME: the import&register code need be replaced by scanner at production.
-      const { default: TestCustomLoader } = require('./fixtures/module-with-custom-loader/src/loader/test_custom_loader');
+      const { default: TestCustomLoader } = require('./fixtures/module_with_custom_loader/src/loader/test_custom_loader');
       LoaderFactory.register(TestCustomLoader);
 
-      const { default: manifest } = require('./fixtures/module-with-custom-loader/src/index');
+      const { default: manifest } = require('./fixtures/module_with_custom_loader/src/index');
 
       const container = new Container('testDefault');
       const loaderFactory = LoaderFactory.create(container);
 
       const loaderName = await loaderFactory.getLoaderName({
-        filename: 'testClazz.ts',
-        root: path.resolve(__dirname, './fixtures/module-with-custom-loader/src'),
-        baseDir: path.resolve(__dirname, './fixtures/module-with-custom-loader/src'),
+        filename: 'test_clazz.ts',
+        root: path.resolve(__dirname, './fixtures/module_with_custom_loader/src'),
+        baseDir: path.resolve(__dirname, './fixtures/module_with_custom_loader/src'),
         configDir: ''
       });
       expect(loaderName).toBe('test-custom-loader');
diff --git a/test/plugin.test.ts b/test/plugin.test.ts
index 98f1899..16628d1 100644
--- a/test/plugin.test.ts
+++ b/test/plugin.test.ts
@@ -10,10 +10,10 @@ describe('test/app.test.ts', () => {
       const mockPluginConfig = {
         'plugin-a': {
           enable: true,
-          path: path.resolve(__dirname, `${pluginPrefix}/plugin-a`),
+          path: path.resolve(__dirname, `${pluginPrefix}/plugin_a`),
           manifest: {
             pluginMeta: {
-              path: path.resolve(__dirname, `${pluginPrefix}/plugin-a/meta.js`),
+              path: path.resolve(__dirname, `${pluginPrefix}/plugin_a/meta.js`),
               extname: '.js',
               filename: 'meta.js',
             }
@@ -21,10 +21,10 @@ describe('test/app.test.ts', () => {
         },
         'plugin-b': {
           enable: true,
-          path: path.resolve(__dirname, `${pluginPrefix}/plugin-b`),
+          path: path.resolve(__dirname, `${pluginPrefix}/plugin_b`),
           manifest: {
             pluginMeta: {
-              path: path.resolve(__dirname, `${pluginPrefix}/plugin-b/meta.js`),
+              path: path.resolve(__dirname, `${pluginPrefix}/plugin_b/meta.js`),
               extname: '.js',
               filename: 'meta.js',
             }
@@ -32,10 +32,10 @@ describe('test/app.test.ts', () => {
         },
         'plugin-c': {
           enable: true,
-          path: path.resolve(__dirname, `${pluginPrefix}/plugin-c`),
+          path: path.resolve(__dirname, `${pluginPrefix}/plugin_c`),
           manifest: {
             pluginMeta: {
-              path: path.resolve(__dirname, `${pluginPrefix}/plugin-c/meta.js`),
+              path: path.resolve(__dirname, `${pluginPrefix}/plugin_c/meta.js`),
               extname: '.js',
               filename: 'meta.js',
             }
@@ -55,10 +55,10 @@ describe('test/app.test.ts', () => {
       const mockPluginConfig = {
         'plugin-a': {
           enable: true,
-          path: path.resolve(__dirname, `${pluginPrefix}/plugin-a`),
+          path: path.resolve(__dirname, `${pluginPrefix}/plugin_a`),
           manifest: {
             pluginMeta: {
-              path: path.resolve(__dirname, `${pluginPrefix}/plugin-a/meta.js`),
+              path: path.resolve(__dirname, `${pluginPrefix}/plugin_a/meta.js`),
               extname: '.js',
               filename: 'meta.js',
             }
@@ -66,10 +66,10 @@ describe('test/app.test.ts', () => {
         },
         'plugin-b': {
           enable: true,
-          path: path.resolve(__dirname, `${pluginPrefix}/plugin-b`),
+          path: path.resolve(__dirname, `${pluginPrefix}/plugin_b`),
           manifest: {
             pluginMeta: {
-              path: path.resolve(__dirname, `${pluginPrefix}/plugin-b/meta.js`),
+              path: path.resolve(__dirname, `${pluginPrefix}/plugin_b/meta.js`),
               extname: '.js',
               filename: 'meta.js',
             }
@@ -77,10 +77,10 @@ describe('test/app.test.ts', () => {
         },
         'plugin-c': {
           enable: true,
-          path: path.resolve(__dirname, `${pluginPrefix}/plugin-c`),
+          path: path.resolve(__dirname, `${pluginPrefix}/plugin_c`),
           manifest: {
             pluginMeta: {
-              path: path.resolve(__dirname, `${pluginPrefix}/plugin-c/meta.js`),
+              path: path.resolve(__dirname, `${pluginPrefix}/plugin_c/meta.js`),
               extname: '.js',
               filename: 'meta.js',
             }
@@ -88,10 +88,10 @@ describe('test/app.test.ts', () => {
         },
         'plugin-wrong-a': {
           enable: true,
-          path: path.resolve(__dirname, `${pluginPrefix}/plugin-wrong-a`),
+          path: path.resolve(__dirname, `${pluginPrefix}/plugin_wrong_a`),
           manifest: {
             pluginMeta: {
-              path: path.resolve(__dirname, `${pluginPrefix}/plugin-wrong-a/meta.js`),
+              path: path.resolve(__dirname, `${pluginPrefix}/plugin_wrong_a/meta.js`),
               extname: '.js',
               filename: 'meta.js',
             }
@@ -99,10 +99,10 @@ describe('test/app.test.ts', () => {
         },
         'plugin-wrong-b': {
           enable: true,
-          path: path.resolve(__dirname, `${pluginPrefix}/plugin-wrong-b`),
+          path: path.resolve(__dirname, `${pluginPrefix}/plugin_wrong_b`),
           manifest: {
             pluginMeta: {
-              path: path.resolve(__dirname, `${pluginPrefix}/plugin-wrong-b/meta.js`),
+              path: path.resolve(__dirname, `${pluginPrefix}/plugin_wrong_b/meta.js`),
               extname: '.js',
               filename: 'meta.js',
             }
@@ -118,10 +118,10 @@ describe('test/app.test.ts', () => {
       const mockPluginConfig = {
         'plugin-a': {
           enable: true,
-          path: path.resolve(__dirname, `${pluginPrefix}/plugin-a`),
+          path: path.resolve(__dirname, `${pluginPrefix}/plugin_a`),
           manifest: {
             pluginMeta: {
-              path: path.resolve(__dirname, `${pluginPrefix}/plugin-a/meta.js`),
+              path: path.resolve(__dirname, `${pluginPrefix}/plugin_a/meta.js`),
               extname: '.js',
               filename: 'meta.js',
             }
@@ -137,10 +137,10 @@ describe('test/app.test.ts', () => {
       const mockPluginConfig = {
         'plugin-a': {
           enable: true,
-          path: path.resolve(__dirname, `${pluginPrefix}/plugin-a`),
+          path: path.resolve(__dirname, `${pluginPrefix}/plugin_a`),
           manifest: {
             pluginMeta: {
-              path: path.resolve(__dirname, `${pluginPrefix}/plugin-a/meta.js`),
+              path: path.resolve(__dirname, `${pluginPrefix}/plugin_a/meta.js`),
               extname: '.js',
               filename: 'meta.js',
             }
@@ -148,10 +148,10 @@ describe('test/app.test.ts', () => {
         },
         'plugin-b': {
           enable: false,
-          path: path.resolve(__dirname, `${pluginPrefix}/plugin-b`),
+          path: path.resolve(__dirname, `${pluginPrefix}/plugin_b`),
           manifest: {
             pluginMeta: {
-              path: path.resolve(__dirname, `${pluginPrefix}/plugin-b/meta.js`),
+              path: path.resolve(__dirname, `${pluginPrefix}/plugin_b/meta.js`),
               extname: '.js',
               filename: 'meta.js',
             }
@@ -159,10 +159,10 @@ describe('test/app.test.ts', () => {
         },
         'plugin-c': {
           enable: true,
-          path: path.resolve(__dirname, `${pluginPrefix}/plugin-c`),
+          path: path.resolve(__dirname, `${pluginPrefix}/plugin_c`),
           manifest: {
             pluginMeta: {
-              path: path.resolve(__dirname, `${pluginPrefix}/plugin-c/meta.js`),
+              path: path.resolve(__dirname, `${pluginPrefix}/plugin_c/meta.js`),
               extname: '.js',
               filename: 'meta.js',
             }
@@ -178,10 +178,10 @@ describe('test/app.test.ts', () => {
       const mockPluginConfig = {
         'plugin-d': {
           enable: true,
-          path: path.resolve(__dirname, `${pluginPrefix}/plugin-d`),
+          path: path.resolve(__dirname, `${pluginPrefix}/plugin_d`),
           manifest: {
             pluginMeta: {
-              path: path.resolve(__dirname, `${pluginPrefix}/plugin-d/meta.js`),
+              path: path.resolve(__dirname, `${pluginPrefix}/plugin_d/meta.js`),
               extname: '.js',
               filename: 'meta.js',
             }
diff --git a/test/scanner.test.ts b/test/scanner.test.ts
index 1f9eec7..9d18c02 100644
--- a/test/scanner.test.ts
+++ b/test/scanner.test.ts
@@ -6,7 +6,7 @@ import { LoaderFactory } from '../src';
 describe('test/scanner.test.ts', () => {
     it('should scan application', async () => {
         const scanner = new Scanner({ needWriteFile: false, extensions: ['.ts', '.js', '.json'] });
-        const scanResults = await scanner.scan(path.resolve(__dirname, './fixtures/app-koa-with-ts'));
+        const scanResults = await scanner.scan(path.resolve(__dirname, './fixtures/app_koa_with_ts'));
         const { default: manifest } = scanResults;
         expect(Object.entries(scanResults).length).toBe(1);
         expect(manifest).toBeDefined();
@@ -28,7 +28,7 @@ describe('test/scanner.test.ts', () => {
 
     it('should scan module with custom loader', async () => {
       // TODO: allow scan custom loader
-      const { default: TestCustomLoader } = await import('./fixtures/module-with-custom-loader/src/loader/test_custom_loader');
+      const { default: TestCustomLoader } = await import('./fixtures/module_with_custom_loader/src/loader/test_custom_loader');
       LoaderFactory.register(TestCustomLoader);
 
       const scanner = new Scanner({
@@ -37,7 +37,7 @@ describe('test/scanner.test.ts', () => {
         configDir: '.',
         loaderListGenerator: () => [TestCustomLoader]
       });
-      const scanResults = await scanner.scan(path.resolve(__dirname, './fixtures/module-with-custom-loader'));
+      const scanResults = await scanner.scan(path.resolve(__dirname, './fixtures/module_with_custom_loader'));
       const { default: manifest } = scanResults;
       // console.log('manifest', manifest);
       expect(Object.entries(scanResults).length).toBe(1);