# splunk-tester

> Performing a cluster upgrade? Writing a complicated SPL?

Latest version **1.3.0** (published 2017-03-02) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2017-03-02 |
| First published | 2017-03-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | pwmcintyre |

## Links

- npm: https://www.npmjs.com/package/splunk-tester
- npm.io page: https://npm.io/package/splunk-tester

## Dependencies (3)

- [config](https://npm.io/package/config.md) ^1.21.0
- [handlebars](https://npm.io/package/handlebars.md) ^4.0.5
- [splunk-sdk](https://npm.io/package/splunk-sdk.md) ^1.8.1

## Recent versions

- 1.3.0 (latest) — 2017-03-02
- 1.2.0 — 2017-03-02
- 1.1.0 — 2017-03-02
- 1.0.0 — 2017-03-02

## README

# Splunk Tester

Performing a cluster upgrade?
Writing a complicated SPL?

Maybe you need some automated test cases!

## Dependancies

Mocha, recommend installing globally
> $ npm install -g mocha

## Install
Pull
> $ git pull git@github.com:pwmcintyre/splunk-tester.git

Install
> $ npm install

## Configure

Update your config accordingly here:
> $ vi ./config/development.json

See detailed [config](https://www.npmjs.com/package/config) documentation.

## Run a local Splunk instance (optional)

I've used [this docker splunk](https://hub.docker.com/r/johnsandiford/splunk) container for testing. I recommended it for small tests.

## Run

Run all test cases
> $ mocha

Example output (if you haven't changed any test cases)

    $ mocha    
    
      Basic searching
        ✓ should return 1 result quickly (367ms)
    
      1 passing (377ms)

## Write More Test Cases
Add as many test cases as you need in the test folder.
> $ ls ./tests/test-*.js

See detailed [mocha](https://www.npmjs.com/package/mocha) documentation.

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