Skip to content

Commit

Permalink
Refactor dotnet-nunit parser to DotnetNunitParser
Browse files Browse the repository at this point in the history
  • Loading branch information
jozefizso committed Jun 25, 2024
1 parent d848170 commit 1397b99
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions __tests__/dotnet-nunit.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as fs from 'fs'
import * as path from 'path'

import {DotNetNunitParser} from '../src/parsers/dotnet-nunit/dotnet-nunit-parser'
import {DotnetNunitParser} from '../src/parsers/dotnet-nunit/dotnet-nunit-parser'
import {ParseOptions} from '../src/test-parser'
import {getReport} from '../src/report/get-report'
import {normalizeFilePath} from '../src/utils/path-utils'
Expand All @@ -18,7 +18,7 @@ describe('dotnet-nunit tests', () => {
trackedFiles: ['DotnetTests.Unit/Calculator.cs', 'DotnetTests.NUnitV3Tests/CalculatorTests.cs']
}

const parser = new DotNetNunitParser(opts)
const parser = new DotnetNunitParser(opts)
const result = await parser.parse(filePath, fileContent)
expect(result).toMatchSnapshot()

Expand Down
8 changes: 4 additions & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {getAnnotations} from './report/get-annotations'
import {getReport} from './report/get-report'

import {DartJsonParser} from './parsers/dart-json/dart-json-parser'
import {DotNetNunitParser} from './parsers/dotnet-nunit/dotnet-nunit-parser'
import {DotnetNunitParser} from './parsers/dotnet-nunit/dotnet-nunit-parser'
import {DotnetTrxParser} from './parsers/dotnet-trx/dotnet-trx-parser'
import {JavaJunitParser} from './parsers/java-junit/java-junit-parser'
import {JestJunitParser} from './parsers/jest-junit/jest-junit-parser'
Expand Down Expand Up @@ -216,7 +216,7 @@ class TestReporter {
case 'dart-json':
return new DartJsonParser(options, 'dart')
case 'dotnet-nunit':
return new DotNetNunitParser(options)
return new DotnetNunitParser(options)
case 'dotnet-trx':
return new DotnetTrxParser(options)
case 'flutter-json':
Expand Down
2 changes: 1 addition & 1 deletion src/parsers/dotnet-nunit/dotnet-nunit-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
TestCaseError
} from '../../test-results'

export class DotNetNunitParser implements TestParser {
export class DotnetNunitParser implements TestParser {
assumedWorkDir: string | undefined

constructor(readonly options: ParseOptions) {}
Expand Down

0 comments on commit 1397b99

Please sign in to comment.