# test-gen

## Usage

```sh
npx @empiricalrun/test-gen@latest --token TEST_GEN_TOKEN
```

To generate a token, use the below

```js
const scenario = {
  name: "incorrect password flow",
  steps: [
    "fill in the username as foobar@gmail.com",
    "fill in the password as bazbaz",
    "click on the login button",
  ],
  group: "home",
};
btoa(JSON.stringify(scenario));
```

### During development

```
npx /path/to/packages/test-gen/. 
```
