# @diffblue/java-combiner

> Java test combining library

Latest version **0.1.8-temp-bugfix-test** (published 2019-10-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @diffblue/java-combiner
pnpm add @diffblue/java-combiner
yarn add @diffblue/java-combiner
bun add @diffblue/java-combiner
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.8-temp-bugfix-test |
| Published | 2019-10-04 |
| First published | 2019-04-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 93.5 KB |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Author | DiffBlue Limited |
| Maintainers | db-ci-platform, peterjwest, peterschrammel, rjmunro, ryanbarwick |

## Links

- npm: https://www.npmjs.com/package/@diffblue/java-combiner
- Repository: https://github.com/diffblue/cover-test-combiner-js
- Homepage: https://github.com/diffblue/cover-test-combiner-js#readme
- Issues: https://github.com/diffblue/cover-test-combiner-js/issues
- npm.io page: https://npm.io/package/@diffblue/java-combiner

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) 4.17.15
- [duplex-child-process](https://npm.io/package/duplex-child-process.md) ^1.0.0

## Recent versions

- 0.1.8-temp-bugfix-test (latest) — 2019-10-04
- 0.1.8 — 2019-09-19
- 0.1.7 — 2019-09-18
- 0.1.6 — 2019-09-12
- 0.1.6-rc3 — 2019-09-10
- 0.1.6-rc2 — 2019-09-09
- 0.1.6-rc1 — 2019-09-09
- 0.1.5 — 2019-08-20
- 0.1.5-rc4 — 2019-08-12
- 0.1.5-rc2 — 2019-08-06
- 0.1.5-rc1 — 2019-08-06
- 0.1.4 — 2019-07-26
- 0.1.3 — 2019-06-19
- 0.1.2 — 2019-06-17
- 0.1.2-rc1 — 2019-06-12
- … 13 more at https://npm.io/package/@diffblue/java-combiner/versions

## README

Diffblue Java combiner
======================

The Diffblue Java combiner takes an array of Java methods (usually jUnit tests) and combines them into a
single java class.

It can also add new test methods to an existing class.

## Installation

Using npm:

```bash
npm install @diffblue/java-combiner
```

## Usage

Example usage:

```js
var combiner = require('@diffblue/java-combiner');

const result = combiner.genTestClass([
    {imports: ['com.example.foo.Foo'], test: '  public integer test() {\n    new com.example.foo.Foo();\n  }'},
    {imports: ['com.example.bar.Foo'], test: '  public integer test2() {\n    new com.example.bar.Foo()\n  }'},
], 'MyClassTest', 'MyClass', 'com.example');

console.log(result);
```

© 2019 Diffblue Limited. See the file LICENSE for usage information.

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