Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aft-logging-html

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aft-logging-html

Automated Functional Testing (AFT) package that creates a HTML results file as a Logging Plugin

  • 9.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

AFT-Logging-HTML

an Automated Functional Testing (AFT) library providing logging to an HTML file for any TestResult objects logged via the aft-core.LogManager

Installation

> npm i aft-logging-html

Configuration

to specify the filename and output directory for the generated HTML results add the following to your aftconfig.json:

{
  "LogManager": {
    "level": "info",
    "plugins": [
      {
        "name": "html-logging-plugin",
        "searchDirectory": "./node_modules/",
        "options": {
          "enabled": true,
          "level": "warn",
          "fileName": "TestResultsSummary.html",
          "outputDir": "./dist",
          "maxLogLines": 4
        }
      }
    ]
  }
}
  • level - an optional string containing the LogLevel to be used in capturing logs (defaults to value set for LogManager)
  • fileName - a string containing the full file name to write results into (defaults to testresults.html)
  • outputDir - a string containing either a relative path from the current execution directory or an absolute path to where the results file will be written (defaults to process.cwd())
  • maxLogLines - a number indicating how many previous calls to the log method will be tracked. numbers greater than this will be discarded from the results (defaults to 5)

NOTE: any of the above string configuration values may be set to read from environment variables by setting their value to the name of the environment variable surrounded by % like "fileName": "%JENKINS_ARTEFACTS_DIR%" which would read from an environment variable named JENKINS_ARTEFACTS_DIR

Example Report

the report generated by this plugin displays the description passed to your Verifier or verify function via the Verifier.withDescription function followed by any test ID passed in via the Verifier.withTestId function and the last 5 log lines for each test result example report

Keywords

FAQs

Package last updated on 27 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc