@lambdatest/demo-sdk
v1.0.0
Published
Demo Playwright SDK for CI Testing
Maintainers
Readme
LambdaTest Demo SDK
A demo SDK for testing CI/CD pipeline with npm package publishing.
Installation
npm install @lambdatest/demo-sdkUsage
As a CLI tool
# Initialize the SDK
npx demo-playwright-sdk init
# Run a test with configuration
npx demo-playwright-sdk run --config ./test-config.jsonAs a library
const DemoSDK = require('@lambdatest/demo-sdk');
async function runTest() {
const sdk = new DemoSDK({
debug: true
});
await sdk.initialize();
const results = await sdk.runTest({
testName: 'demo-test',
parameters: {
// your test parameters
}
});
const report = await sdk.generateReport(results);
console.log(report);
}
runTest();Configuration
The SDK accepts the following configuration options:
debug(boolean): Enable debug logginglogLevel(string): Set logging level (default: 'info')
Development
# Install dependencies
npm install
# Build the SDK
npm run build
# Build for development (without obfuscation)
npm run build:dev
# Create a package
npm run packLicense
MIT
