INNER CODE UNIT · JavaScript

GithubActionsReporter

semperai/amica · github-actions-reporter.js:1

class GithubActionsReporter {
  constructor(globalConfig, options) {
    this._globalConfig = globalConfig
    this._options = options
  }

  onRunComplete(contexts, results) {
    results.testResults.forEach((testResultItem) => {
      const testFilePath = testResultItem.testFilePath

      testResultItem.testResults.forEach((result) => {
        if (result.status !== 'failed') {
          return
        }

        result.failureMessages.forEach((failureMessages) => {
          const newLine = '%0A'
          const message = failureMessages.replace(/\n/g, newLine)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…