
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
@lokalise/playwright-reporters
Advanced tools
This is a collection of reporters to use with our Playwright test frameworks.
This is a collection of reporters to use with our Playwright test frameworks.
npm install @lokalise/playwright-reporters
import { defineAnalyticsReporterConfig, defineRetryReporterConfig } from '@lokalise/playwright-reporters';
export default defineConfig({
...
reporters: [
['retry', defineRetryReporterConfig({ maxRetryCount: 2, isPREnv: false })],
['analytics', defineAnalyticsReporterConfig({
flakyTestIndex: 'flaky_tests_0001',
failedTestIndex: 'non_passing_tests_0001',
testRunIndex: 'test_run_0001',
browserUsageIndex: 'browser_usage_0001',
elasticUrl: 'http://elasticUrl',
elasticToken: 'elasticToken',
currentBuildId: 'buildId',
debug: true,
dryRun: false,
prenvId: 'develop',
product: 'product',
})],
],
...
});
This reporter aggregates the duration of each discrete test step and reports their total duration at the end of the test run. The reporter uses the custom Playwright Reporter implementation to collect the step durations. Follow the steps in the official Playwright documentation to add the custom reporter to your test suite.
Once the reporter is enabled, it will output a JSON file ./reporters/results/steps.json containing the duration of each step in the test suite.
This reporter calculates the similarity between tests based on the test steps. The reporter does not use the custom Playwright Reporter implementation. Instead, it takes the simplified reporter from the undocumented timeline reporter.
timeline reporter enabled. This will generate a JSON file ./reporters/results/timeline.jsonnpx ts-node reporters/testSimilarity.tsJSON file ./reporters/results/distance.json containing the similarity between tests based on the test steps.The report has the following format:
[
{
"title": "Title of the test being compared",
"relatedTests": [
["Title of the first related test", 0],
["Title of the second related test", 50]
]
}
]
The relatedTests array contains the title of the related test and the distance score. The similarity percentage is calculated based on the Levenshtein distance between the test steps. The lower the distance, the higher the similarity between the tests.
By default, pre-commit hook will run npm run lint:fix. Feel free to remove that if it's undesirable or add your own
pre-commit commands.
Check out husky docs for more info.
You can use npm run commit to interactively construct correct commit messsage.
Check out commitlint docs for examples of how to customise.
The following token needs to be set in the Github repo for the prerelease and release Github Actions to work:
secrets.NPM_TOKEN (need this to publish on NPM)When performing a release, make sure to follow our conventional commit approach, as described in contribution documentation.
This project is APACHE, VERSION 2.0 licensed, see LICENSE.md for details.
FAQs
This is a collection of reporters to use with our Playwright test frameworks.
We found that @lokalise/playwright-reporters demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 19 open source maintainers 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.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.