WebdriverIO Reporter
Send your WebdriverIO test results directly to TestPig.io with our dedicated reporter.
Perfect Match
WebdriverIO + TestPig.io = Comprehensive end-to-end test reporting!
Quick Installation ⚡
npm install @testpig/wdio-reporter --save-dev
Configuration 🛠️
Step 1: Add the Reporter to Your Configuration File (Required)
First, add the TestPig.io reporter to your wdio.conf.js
:
// wdio.conf.js
exports.config = {
// ...other WebdriverIO configurations
reporters: [
['@testpig/wdio-reporter']
],
}
Step 2: Point Reporter to TestPig
Method 1: Environment Variables (Recommended 👍)
Set these environment variables for maximum flexibility:
export TESTPIG_PROJECT_ID=your-project-id
export TESTPIG_RUN_ID=your-run-id # Optional
export TESTPIG_API_KEY=your-api-key
Your WebdriverIO config remains clean with just the reporter definition as shown above.
Method 2: Configuration File Options
Alternatively, specify credentials directly in your wdio.conf.js
:
// wdio.conf.js
exports.config = {
// ...other WebdriverIO configurations
reporters: [
['@testpig/wdio-reporter', {
projectId: 'your-project-id',
runId: 'your-run-id', // Optional
apiKey: 'your-api-key'
}]
],
}
Using It Is a Breeze 🌬️
Run your WebdriverIO tests as usual:
npx wdio run wdio.conf.js
That's it! Your results will magically appear in your TestPig.io dashboard.
Awesome Features You'll Love ❤️
- Detailed Reporting: Every step beautifully documented
- Screenshot Integration: Visual evidence for failures
- Browser Information: Complete browser and capability details
- Multi-spec Support: Handle complex test suites with ease
- Framework Flexibility: Support for Mocha, Jasmine, and Cucumber
Configuration Options At-a-Glance 📋
Option | What It Does | Required? |
---|---|---|
projectId | Links results to your TestPig.io project | ✅ Yes |
runId | Groups tests under a single run identifier | ❌ No |
apiKey | Your secure access key to TestPig.io | ✅ Yes |
includeScreenshots | Include screenshots for failures (default: true) | ❌ No |
includeLogs | Include browser logs (default: false) | ❌ No |
Want More Options?
Check our Best Practices guide for advanced configuration strategies.
Getting Help
If you encounter issues with the WebdriverIO reporter:
- Check the WebdriverIO Reporter GitHub repository for reporter-specific code issues
- Visit support.testpig.io for all bugs, feature requests, account or technical issues