Skip to content

Commit

Permalink
Import the TestCase type
Browse files Browse the repository at this point in the history
  • Loading branch information
davidparsson committed Jul 31, 2024
1 parent d2868db commit 4981600
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions spec/e2e.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import defaultBuilder, { type Builder, TestSuite } from '../dist';
import defaultBuilder, { type Builder, TestCase, TestSuite } from '../dist';
//@ts-ignore
import rmdir from 'rimraf';
import fs from 'fs';
Expand All @@ -22,12 +22,14 @@ describe('JUnit Report builder', () => {
builder.testCase().className('root.test.Class1');
const suite1: TestSuite = builder.testSuite().name('first.Suite');
suite1.testCase().name('Second test');
suite1
.testCase()

const case2: TestCase = suite1.testCase();
case2
.className('suite1.test.Class2')
.name('Third test')
.file('./path-to/the-test-file.coffee')
.property('property name', 'property value');

const suite2 = builder.testSuite().name('second.Suite');
suite2.testCase().failure('Failure message');
suite2.testCase().stacktrace('Stacktrace');
Expand Down

0 comments on commit 4981600

Please sign in to comment.