- Add HVAC_Test_User_Factory class with: * User creation with specific roles * Multiple role support * Persona management system * Account cleanup integration - Create comprehensive test suite in HVAC_Test_User_Factory_Test.php - Update testing improvement plan documentation - Add implementation decisions to project memory bank - Restructure .gitignore with: * Whitelist approach for better file management * Explicit backup exclusions * Specific bin directory inclusions Part of the Account Management component from the testing framework improvement plan.
23 lines
No EOL
922 B
TypeScript
23 lines
No EOL
922 B
TypeScript
import { Reporter, TestCase, TestResult } from '@playwright/test/reporter';
|
|
import { HtmlReporter } from './HtmlReporter';
|
|
import { MarkdownReporter } from './MarkdownReporter';
|
|
|
|
// Factory function for HTML reporter
|
|
export function createHtmlReporter(options: { outputDir: string }): Reporter {
|
|
const reporter = new HtmlReporter(options);
|
|
return {
|
|
onBegin: (config, suite) => reporter.onBegin(config, suite),
|
|
onTestEnd: (test, result) => reporter.onTestEnd(test, result),
|
|
onEnd: () => reporter.onEnd()
|
|
};
|
|
}
|
|
|
|
// Factory function for Markdown reporter
|
|
export function createMarkdownReporter(options: { outputFile: string }): Reporter {
|
|
const reporter = new MarkdownReporter(options);
|
|
return {
|
|
onBegin: (config, suite) => reporter.onBegin(config, suite),
|
|
onTestEnd: (test, result) => reporter.onTestEnd(test, result),
|
|
onEnd: () => reporter.onEnd()
|
|
};
|
|
} |