Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@wdio/sumologic-reporter
Advanced tools
Readme
A WebdriverIO reporter that sends test results to Sumologic for data analyses
The easiest way is to keep @wdio/sumologic-reporter
as a devDependency in your package.json
, via:
npm install @wdio/sumologic-reporter --save-dev
Instructions on how to install WebdriverIO
can be found here.
First we have to create a new collector that collects all logs of your tests. To do that click on Manage in the navigation bar and go to Collection. There you need to add a new "Hosted Collector". Apply a suited name, e.g. "test integration logs", description and a category, e.g. "wdio". Click on Save to create the collector.
Next step is to add a source. It makes sense to have an own source for each of your environment (e.g. branch build, integration). Click on the "Add Source" link next to your collector and add an HTTP Source. Apply again a suiteable name and description and set a "Source Category" that reflects the environment. Leave the other options in default state and click on save.
A modal pops up with the source endpoint. Copy that url and paste it into your wdio.conf.js so the reporter know where to send the data.
Following code shows the default wdio test runner configuration. Just add 'sumologic'
as reporter to the array and add your source endpoint:
// wdio.conf.js
module.exports = {
// ...
reporters: [
'spec',
['sumologic', {
// define sync interval how often logs get pushed to Sumologic
syncInterval: 100,
// endpoint of collector source
sourceAddress: process.env.SUMO_SOURCE_ADDRESS
}]
],
// ...
};
After running the first tests with the reporter you should be able to check out the tests logs with the following query:
_source=wdio
| parse "\"type\":\"*:*\"" as type,status
| json auto
I will provide some useful dashboard templates for Sumologic soon.
For more information on WebdriverIO see the homepage.
FAQs
A WebdriverIO reporter that sends test results to Sumologic for data analyses
The npm package @wdio/sumologic-reporter receives a total of 959 weekly downloads. As such, @wdio/sumologic-reporter popularity was classified as not popular.
We found that @wdio/sumologic-reporter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.