# leancloud-tester

> CLI to do black-box testing for LeanCloud

Latest version **0.0.1** (published 2018-12-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install leancloud-tester
pnpm add leancloud-tester
yarn add leancloud-tester
bun add leancloud-tester
```

Provides the command `test-leancloud`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2018-12-27 |
| First published | 2018-12-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 36.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Hong Jiang |
| Maintainers | hjiang |

## Links

- npm: https://www.npmjs.com/package/leancloud-tester
- Repository: https://github.com/hjiang/leancloud-tester
- Homepage: https://github.com/hjiang/leancloud-tester#readme
- Issues: https://github.com/hjiang/leancloud-tester/issues
- npm.io page: https://npm.io/package/leancloud-tester

## Dependencies (5)

- [pg](https://npm.io/package/pg.md) ^7.7.1
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [@types/minimist](https://npm.io/package/@types/minimist.md) ^1.2.0
- [node-pg-migrate](https://npm.io/package/node-pg-migrate.md) ^3.14.2
- [leancloud-storage](https://npm.io/package/leancloud-storage.md) ^3.11.1

## Recent versions

- 0.0.1 (latest) — 2018-12-27

## README

# LeanCloud Tester

## Introduction

This is a commandline program for doing blackbox testing for various LeanCloud
features. It saves test information to a PostgreSQL database to be analyzed
later.

## How to run

This is a Node project written in TypeScript. Clone the repo and install
dependencies:

```shell
$ npm install
```

Compile to JavaScript:

```shell
$ npm run build
```

To test your app once:

```shell
$ bin/test-leancloud storage --appId=<your appId> --appKey=<your appKey>
```

To run the test continuously, add the `--continuous` flag:

```shell
$ bin/test-leancloud storage --appId=<your appId> --appKey=<your appKey> \
    --continous
```

This utility is not intended for load-testing, so it never sends concurrent
requests.

To record the test results in database (see below for how to initialize the
database), add specify the URI with `--pgUri`. For example:

```shell
$ bin/test-leancloud storage --appId=<your appId> --appKey=<your appKey> \
    --continous --pgUri=postgres://localhost/leancloud_tests
```

### Initializing the database

If you want to save results to a database, initialize it before the first run
(assuming you have installed postgresql):

```shell
$ createdb leancloud_tests
$ DATABASE_URL=postgres://localhost/leancloud_tests npm run migrate up
```

---
_Source: https://npm.io/package/leancloud-tester · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
