Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
feature-map
Advanced tools
A Tool to manually track the automation coverage progress of features within a project
This is a bare bones test coverage feature map library. It will take a yaml file path as an input and calculate the coverage of the features in the file. This is useful for tracking coverage for UI E2E tests.
npm install feature-map
JavaScript
const calculateYamlCoverage = require('feature-map');
calculateYamlCoverage('./featureMap.yml');
TypeScript
import {calculateYamlCoverage} from '../src';
calculateYamlCoverage('./test/testCoverage.yml');
Given the following feature map: featureMap.yml
. NOTE: it is important to note that page:
and features:
are required keys. Currently the library does not support keys that differ from features:
. Later down the road I could see adding scenarios:
or tests:
as a key for similar calculations.
- page: '/auth/login'
features:
sign in with google: false
email: true
password: true
login: true
register your account: false
forgot password: false
- page: '/auth/forgot-password'
features:
email: false
set new password: false
- page: '/auth/register'
features:
first name: false
last name: false
date of birth: false
address: false
postcode: false
city: false
state: false
country: false
phone rate: false
e-mail address: false
password: false
register button: false
- page: '/category/hand-tools'
features:
header: true
sidebar:
sort: false
filters: false
by brand: false
product card:
image: false
image zoom: false
title: false
price: false
pagination:
previous: false
next: false
number: false
- page: '/product/{id}'
features:
header: false
product details:
image: false
title: false
tags: false
price: false
description: false
quantity: false
add to cart: false
add to favorites: false
related products:
image: false
title: false
more information: false
footer: false
When adding to your codebase you will get console.log() output like this:
/auth/login page has 50% coverage
/auth/forgot-password page has 0% coverage
/auth/register page has 0% coverage
/category/hand-tools page has 9.09% coverage
/product/{id} page has 0% coverage
Total Product coverage is: 64.79%
This will also generate the same details in a file named coverage-output.txt
FAQs
A Tool to manually track the automation coverage progress of features within a project
The npm package feature-map receives a total of 1,035 weekly downloads. As such, feature-map popularity was classified as popular.
We found that feature-map demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.