Skip to content

softrams/gauge-taiko-steps-mysql

Repository files navigation

Gauge Taiko Steps for MySQL

Implements gauge steps for interacting with MySQL Database, so that tests can be directly written without having to implement steps for most common scenarios.

This is built as a sample and include some basic data integrity checks. Need to enhance to include most common scenarios.

How to use it

Installl this npm package to your Gauge js project.

# npm
npm i @softrams/gauge-taiko-steps-mysql

# yarn
yarn add @softrams/gauge-taiko-steps-mysql

Update STEP_IMPL_DIR in ./env/default/js.properties to include steps implemenation from this package.

STEP_IMPL_DIR = tests,node_modules/@softrams/gauge-taiko-steps-mysql/lib

Setup Database Credentials as environment variables or in properties file (./env/default/default.properties)

export DB_HOST=
export DB_USER=
export DB_PASSWORD=
export DB_DATABASE=

And that's it. Start writing tests.

Related projects

Thanks to these amazing projects