Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: davidparsson/junit-report-builder
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4.0.0
Choose a base ref
...
head repository: davidparsson/junit-report-builder
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4.0.1
Choose a head ref
  • 17 commits
  • 10 files changed
  • 2 contributors

Commits on Jul 28, 2024

  1. chore: Rebuild before releasing

    davidparsson committed Jul 28, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    unstubbable Hendrik Liebau
    Copy the full SHA
    caad0c7 View commit details

Commits on Jul 30, 2024

  1. Initial rollup configuration

    HarelM committed Jul 30, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    unstubbable Hendrik Liebau
    Copy the full SHA
    a523772 View commit details
  2. Remove unneeded include file

    HarelM committed Jul 30, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    unstubbable Hendrik Liebau
    Copy the full SHA
    60c31b2 View commit details
  3. Add es build type

    HarelM committed Jul 30, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    unstubbable Hendrik Liebau
    Copy the full SHA
    0e077e6 View commit details
  4. Improve es build

    HarelM committed Jul 30, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    unstubbable Hendrik Liebau
    Copy the full SHA
    276cdfc View commit details
  5. Prettier

    HarelM committed Jul 30, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    unstubbable Hendrik Liebau
    Copy the full SHA
    4320a17 View commit details
  6. Update readme

    HarelM committed Jul 30, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    unstubbable Hendrik Liebau
    Copy the full SHA
    5a0936f View commit details

Commits on Jul 31, 2024

  1. Merge pull request #73 from HarelM/main

    Introduce rollup to bundle the package
    davidparsson authored Jul 31, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    unstubbable Hendrik Liebau
    Copy the full SHA
    ab97010 View commit details
  2. Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    00f9fb3 View commit details
  3. Exclude dist/ from test coverage

    davidparsson committed Jul 31, 2024
    Copy the full SHA
    788f222 View commit details
  4. Prettier

    davidparsson committed Jul 31, 2024
    Copy the full SHA
    9661bfd View commit details
  5. Update changelog

    davidparsson committed Jul 31, 2024
    Copy the full SHA
    c19d814 View commit details
  6. Update changelog

    davidparsson committed Jul 31, 2024
    Copy the full SHA
    3451a58 View commit details
  7. Release 4.0.1-rc.0

    davidparsson committed Jul 31, 2024
    Copy the full SHA
    ce6829f View commit details
  8. Make the code examples work

    davidparsson committed Jul 31, 2024
    Copy the full SHA
    4798829 View commit details
  9. Note that CommonJS is supported

    davidparsson committed Jul 31, 2024
    Copy the full SHA
    c2922fc View commit details
  10. Release 4.0.1

    davidparsson committed Jul 31, 2024
    Copy the full SHA
    89af2c7 View commit details
Showing with 1,461 additions and 1,540 deletions.
  1. +1 −1 .gitignore
  2. +18 −5 README.md
  3. +1 −3 jest.config.ts
  4. +1,396 −1,519 package-lock.json
  5. +11 −5 package.json
  6. +24 −0 rollup.config.ts
  7. +2 −2 spec/e2e.spec.ts
  8. +4 −0 src/index.ts
  9. +1 −1 src/test_group.ts
  10. +3 −4 tsconfig.json
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
node_modules/
build/
lib/
dist/
coverage/
.nvmrc

23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -14,18 +14,18 @@ To install the latest version, run:
## Usage

```JavaScript
var builder = require('junit-report-builder');
import builder from 'junit-report-builder';

// Create a test suite
var suite = builder.testSuite().name('My suite');
let suite = builder.testSuite().name('My suite');

// Create a test case
var testCase = suite.testCase()
let firstTestCase = suite.testCase()
.className('my.test.Class')
.name('My first test');

// Create another test case which is marked as failed
var testCase = suite.testCase()
let secondTestCase = suite.testCase()
.className('my.test.Class')
.name('My second test')
.failure();
@@ -51,7 +51,14 @@ If you want to create another report file, start by getting a new
builder instance like this:

```JavaScript
builder = builder.newBuilder();
// Each builder produces a single report file
let anotherBuilder = builder.newBuilder();
```

CommonJS is also supported:

```JavaScript
let builder = require('junit-report-builder');
```

Please refer to the [e2e.spec.ts](spec/e2e.spec.ts) for more details on the usage.
@@ -62,8 +69,14 @@ Please refer to the [e2e.spec.ts](spec/e2e.spec.ts) for more details on the usag

## Changelog

### 4.0.1

- Re-introduce CommonJS support, while keeping the ES module support. Thanks to [Harel M](https://github.com/HarelM) and [Simeon Cheeseman](https://github.com/SimeonC).
- Export all public types from the index module. Thanks to [Harel M](https://github.com/HarelM) and [Simeon Cheeseman](https://github.com/SimeonC).

### 4.0.0

- _Accidentally dropped CommonJS support. This is fixed again in 4.0.1._
- Dropped support for node.js 14, 12, 10 and 8.
- Full typing support for TypeScript. Thanks to [Harel M](https://github.com/HarelM).

4 changes: 1 addition & 3 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -28,9 +28,7 @@ const config: Config = {
coverageDirectory: 'coverage',

// An array of regexp pattern strings used to skip coverage collection
// coveragePathIgnorePatterns: [
// "/node_modules/"
// ],
coveragePathIgnorePatterns: ['/node_modules/', '/dist/'],

// Indicates which provider should be used to instrument code for coverage
coverageProvider: 'v8',
Loading