Coder Social home page Coder Social logo

403-html / mochawesome-json-to-md Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 287 KB

Translate the extensive reports from your mochawesome and mochawesome-merge JSON reports into markdown format using templates.

Home Page: https://www.npmjs.com/package/mochawesome-json-to-md

License: MIT License

JavaScript 100.00%
cypress markdown reporting-format mochawesome mocha mocha-reporter jest mochawesome-report test-automation

mochawesome-json-to-md's Introduction

Hello World! ๐Ÿ‘‹

GitHub LinkedIn dev.to

I'm Tymoteusz, a computer enthusiast who enjoys coding blunders and unexpected digital adventures. Embracing the spontaneity of "impulse" interactions has led me to some of the most memorable events of my life.

About Me

  • ๐Ÿค– QA enthusiast with a focus on automation
  • ๐ŸŒช๏ธ Process's flow lover
  • ๐ŸŒฒ TypeScript Playwright (also Cypress) user
  • ๐Ÿ Python hobbyist
  • ๐Ÿซ Sweets fan; a bajaderka junky

Academic Background

I completed my education at a IT technical high school, but I'm a firm believer in valuing experience over a degree. The real-world challenges and hands-on experiences have been my greatest teachers.

GitHub Stats

Your GitHub Stats

mochawesome-json-to-md's People

Contributors

403-html avatar dependabot[bot] avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

juli1 lucasbit

mochawesome-json-to-md's Issues

Refactor script for having fully editable template, also move to TypeScript

Move to TS due to types and simple compilation.

It'll add value to the project by splitting to src and dist, also types will help keeping everything together

  • extract data from result
  • build md file from template
  • incorporate 10 NASA's safety rules for writing code
  • add eslint stricter rules
  • add code of conduct

Add tests

Task

Create Jest unit tests environment, and write tests to cover all methods happy paths (and write down matrix of each case possible, for later).

Tests JSON finals types:

  • one test report for each type of outcome
  • multiple test reports for each type of outcome
  • nested types (for each type, so like describe)

Add contribution file

Contribution (commits and PRs) will be based on conventional commits methodology. It may vary

Commits:

  • feat: = feature
  • ref: = refactor of something
  • bug: = fixed bug
  • misc: = changes to docs/README
  • chore: = none of above

Example feat: New option for showing diagram

PRs:

  • feat: = feature
  • bug: = fixed bug
  • misc: = changes to docs/README
  • chore = none of above
  • if it will have breaking changes for whole project (major update) it should also have BREAKING CHANGES before all. Example BREAKING CHANGES - feat: New template engine

Merging PRs

You can have as many commits as you wish but before giving for review please consider rebasing your branch to clear the commit list - so it'll leave cleaner repo after merging.

Branches names:

  • major/short-description-of-change
  • minor/short-description-of-change
  • fix/short-description-of-change

Versioning:

  • major change adds +1 to first number in version (1.0.0 -> 2.0.0)
  • minor change adds +1 to second number in version (1.0.0 -> 1.1.0)
  • fix change adds +1 to last number in version (1.0.0 -> 1.0.0)

Duration is wrong

The formula in index.js line 102 is wrong
const genDuration = showDuration
? > Duration: ${Math.round(duration / 60)}s \n
: "";

The value from the json is displayed in milliseconds, so to end up with seconds, divide by 1000 instead

Improvements

  • incorporate 10 NASA's safety rules for writing code
  • add eslint stricter rules
  • add code of conduct

Add eslint with the workflow for it

  • Add eslint with the workflow for it
  • Resolve any eslint related issues

It should be something easy to follow along, just core to not "break the code", so eslint:recommended will do and also

env:
   node: true

to not getting errors on node's methods.

๐ŸŽ‰ 0.x.x is deprecated, please use 1.x.x version

๐Ÿšจ Deprecation Notice

๐ŸŽ‰ Version 0.x.x is now deprecated!

Please upgrade to version 1.x.x for continued support and improvements. No further updates or fixes will be made to the 0.x.x series, and future development will focus exclusively on the 1.x.x version.

Thank you for your understanding and continued support by using it!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.