<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

## Codecept

CodeceptJS runner

### Parameters

-   `config` **any** 
-   `opts` **any** 

### init

Initialize CodeceptJS at specific directory.
If async initialization is required, pass callback as second parameter.

#### Parameters

-   `dir` **[string][1]** 

### initGlobals

Creates global variables

#### Parameters

-   `dir` **[string][1]** 

### loadTests

Loads tests by pattern or by config.tests

#### Parameters

-   `pattern` **[string][1]?** 

### requireModules

Require modules before codeceptjs running

#### Parameters

-   `requiringModules` **\[[string][1]]** 

### run

Run a specific test or all loaded tests.

#### Parameters

-   `test` **[string][1]?** 

### runBootstrap

Executes bootstrap.
If bootstrap is async, second parameter is required.

#### Parameters

-   `done`  

### runHooks

Executes hooks.

### teardown

Executes teardown.
If teardown is async a parameter is provided.

#### Parameters

-   `done` **any**  (optional, default `undefined`)

[1]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
