1.4.1 • Published 10 months ago

regulation-as-code v1.4.1

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

regulation-as-code

Library that parses the necessary documentation and test files and generates reports out of them required for audit and review purposes.

It supports the following:

  • requirements and quality attributes from markdown files
  • requirements from cucumber feature files
  • specs from xunit test reports
  • specs from mocha test reports

Install

npm install regulation-as-code

Usage - command line

//show help
npx regulate --help

//generating JSON of manual annotated tests
npx regulate --srs=docs/srs.md --risk=docs/risks.md --test=docs/mocha-report.json --mo=manualtest-output.json

//generating Markdown with VNV Output and Risk Output
npx regulate --srs=docs/srs.md --risk=docs/risks.md --test=docs/mocha-report.json --vo=vnv-output.md --ro=risk-output.md

Usage - through code

import { writeRegulation } from 'regulation-as-code';

function write() {
    writeRegulation('docs/srs.md', 'docs/risks.md', 'docs/mocha-report.json', 'vo.md', 'ro.md', 'mo.md');
}

Usage - github action

- uses: Byteflies/regulation-as-code@feat-add-regulate-github-action
  name: Run regulation as code
  id: regulate
  with:
      srs: docs/software_requirement_specification.md
      risk: docs/risk_management.md
      tests: xunit*.xml
- name: Upload Regulations report
  uses: actions/upload-artifact@v3
  with:
      name: Regulations report
      path: ${{ steps.regulate.outputs.output }}
1.4.1

10 months ago

1.4.0

10 months ago

1.3.19

11 months ago

1.3.15

11 months ago

1.3.14

1 year ago

1.2.0

2 years ago

1.1.9

2 years ago

1.3.6

2 years ago

1.1.8

2 years ago

1.3.5

2 years ago

1.1.7

2 years ago

1.3.4

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.3.13

2 years ago

1.1.6

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago