Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 13 additions & 26 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,17 @@
name: Node.js CI
on:

on:
push:
branches:
- master
paths-ignore:
- 'docs'
- '**.yml'
- '**.md'
- '.*'
branches: [ master ]
pull_request:
paths-ignore:
- 'docs'
- '**.yml'
- '**.md'
- '.*'
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
Job:
name: Node.js
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
with:
os: 'ubuntu-latest'
version: '18.19.0, 18, 20, 22'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
15 changes: 0 additions & 15 deletions .github/workflows/npm-publish.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Release

on:
push:
branches: [ master ]

jobs:
release:
name: Node.js
uses: node-modules/github-actions/.github/workflows/node-release.yml@master
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
1 change: 1 addition & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MIT License

Copyright (c) 2015-2017 Adam Gruber
Copyright (c) 2023-present node-modules and the contributors.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# mochawesome
# mochawesome-with-mocha

[![npm](https://img.shields.io/npm/v/mochawesome-with-mocha.svg?style=flat-square)](http://www.npmjs.com/package/mochawesome-with-mocha) ![Node.js CI](https://github.com/adamgruber/mochawesome/workflows/Node.js%20CI/badge.svg) [![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg?style=flat-square)](https://gitter.im/mochawesome/general)
[![npm](https://img.shields.io/npm/v/mochawesome-with-mocha.svg?style=flat-square)](http://www.npmjs.com/package/mochawesome-with-mocha)
[![Node.js CI](https://github.com/node-modules/mochawesome/actions/workflows/nodejs.yml/badge.svg?branch=master)](https://github.com/node-modules/mochawesome/actions/workflows/nodejs.yml)

Mochawesome is a custom reporter for use with the Javascript testing framework, [mocha][mocha]. It runs on Node.js (>=10) and works in conjunction with [mochawesome-report-generator][marge] to generate a standalone HTML/CSS report to help visualize your test runs.

> Forked [mochawesome](https://github.com/adamgruber/mochawesome) add mocha to dependencies.

## Features

<img align="right" src="./docs/marge-report-1.0.1.png" alt="Mochawesome Report" width="55%" />
Expand Down Expand Up @@ -241,5 +244,4 @@ mochawesome is [MIT licensed][license].
[mocha]: https://mochajs.org/
[marge]: https://github.com/adamgruber/mochawesome-report-generator
[marge-options]: https://github.com/adamgruber/mochawesome-report-generator#options
[changelog]: CHANGELOG.md
[license]: LICENSE.md
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test:mem": "mocha test-functional/mem-test.js --config test-functional/.mocharc.json",
"test:ctx": "mocha test-functional/test-context.js --config test-functional/.mocharc.json",
"tdd": "npm run lint && cross-env NODE_ENV=test nyc mocha --config test/.mocharc.json --watch",
"prepack": "npm run test"
"ci": "npm run test"
},
"author": "Adam Gruber",
"license": "MIT",
Expand Down Expand Up @@ -47,6 +47,9 @@
"functions": 100,
"branches": 90
},
"engines": {
"node": ">=18.19.0"
},
"dependencies": {
"chalk": "^4.1.2",
"diff": "^5.0.0",
Expand All @@ -55,7 +58,7 @@
"lodash.isfunction": "^3.0.9",
"lodash.isobject": "^3.0.2",
"lodash.isstring": "^4.0.1",
"mocha": "^10.2.0",
"mocha": "^11.1.0",
"mochawesome-report-generator": "^6.2.0",
"strip-ansi": "^6.0.1",
"uuid": "^8.3.2"
Expand Down
Loading