-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improving XSLT files, adding JUnit tests
- Loading branch information
Showing
40 changed files
with
4,649 additions
and
1,043 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,37 @@ | ||
const fs = require("fs"); | ||
|
||
const test = require('@jest/globals').test; | ||
const beforeAll = require('@jest/globals').beforeAll; | ||
const afterAll = require('@jest/globals').afterAll; | ||
const describe = require('@jest/globals').describe; | ||
|
||
const converter = require('../src/converter'); | ||
const setup = require("./setup"); | ||
const common = require("./common"); | ||
|
||
describe("JUnit converter tests", () => { | ||
|
||
const outDir= './tests/data/tmp'; | ||
const reportDir= './tests/data/result'; | ||
|
||
beforeAll(() => { | ||
setup.removeTempDir(); | ||
}); | ||
|
||
// afterAll(() => { | ||
// setup.removeTempDir(); | ||
// }); | ||
|
||
test('convert junit-jenkins.xml', async() => { | ||
let options = setup.createOptions('junit-jenkins.xml', 'junit'); | ||
let options = common.createOptions('junit-jenkins.xml', 'junit'); | ||
|
||
await converter(options); | ||
setup.compare(options); | ||
common.compare(options); | ||
}); | ||
|
||
test('convert junit-notestsuites.xml', async() => { | ||
let options = setup.createOptions('junit-notestsuites.xml', 'junit'); | ||
let options = common.createOptions('junit-notestsuites.xml', 'junit'); | ||
|
||
await converter(options); | ||
setup.compare(options, 'junit-jenkins-mochawesome.json'); | ||
common.compare(options, 'junit-jenkins-mochawesome.json'); | ||
}); | ||
|
||
test('convert junit-testsuites-noattributes.xml', async() => { | ||
let options = setup.createOptions('junit-testsuites-noattributes.xml', 'junit'); | ||
let options = common.createOptions('junit-testsuites-noattributes.xml', 'junit'); | ||
|
||
await converter(options); | ||
setup.compare(options, 'junit-jenkins-mochawesome.json'); | ||
common.compare(options, 'junit-jenkins-mochawesome.json'); | ||
}); | ||
|
||
test('convert junit-mocha-xunit.xml', async() => { | ||
let options = setup.createOptions('junit-mocha-xunit.xml', 'junit') | ||
let options = common.createOptions('junit-mocha-xunit.xml', 'junit') | ||
|
||
await converter(options); | ||
setup.compare(options); | ||
common.compare(options); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,27 @@ | ||
const fs = require("fs"); | ||
|
||
const test = require('@jest/globals').test; | ||
const beforeAll = require('@jest/globals').beforeAll; | ||
const afterAll = require('@jest/globals').afterAll; | ||
const describe = require('@jest/globals').describe; | ||
|
||
const converter = require('../src/converter'); | ||
const setup = require('./setup'); | ||
const common = require('./common'); | ||
|
||
describe("NUnit converter tests", () => { | ||
|
||
beforeAll(() => { | ||
setup.removeTempDir(); | ||
}); | ||
|
||
// afterAll(() => { | ||
// setup.removeTempDir(); | ||
// }); | ||
|
||
test('convert nunit-sample.xml', async() => { | ||
let options = setup.createOptions('nunit-sample.xml', 'nunit') | ||
let options = common.createOptions('nunit-sample.xml', 'nunit') | ||
await converter(options); | ||
setup.compare(options); | ||
common.compare(options, undefined, true); | ||
}); | ||
|
||
test('convert nunit-short.xml', async() => { | ||
let options = setup.createOptions('nunit-short.xml', 'nunit') | ||
let options = common.createOptions('nunit-short.xml', 'nunit') | ||
await converter(options); | ||
setup.compare(options); | ||
common.compare(options, undefined, true); | ||
}); | ||
|
||
test('convert nunit-mudblazor.xml', async() => { | ||
let options = setup.createOptions('nunit-mudblazor.xml', 'nunit') | ||
let options = common.createOptions('nunit-mudblazor.xml', 'nunit') | ||
await converter(options); | ||
setup.compare(options); | ||
common.compare(options, undefined, true); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,63 @@ | ||
const fs = require("fs"); | ||
|
||
const test = require('@jest/globals').test; | ||
const beforeAll = require('@jest/globals').beforeAll; | ||
const afterAll = require('@jest/globals').afterAll; | ||
const describe = require('@jest/globals').describe; | ||
|
||
const setup = require('./setup'); | ||
const common = require('./common'); | ||
const converter = require('../src/converter'); | ||
|
||
describe("TRX converter tests", () => { | ||
|
||
beforeAll(() => { | ||
setup.removeTempDir(); | ||
}); | ||
|
||
// afterAll(() => { | ||
// setup.removeTempDir(); | ||
// }); | ||
|
||
test('convert trx-mstest-datadriven.trx', async() => { | ||
let options = setup.createOptions('trx-mstest-datadriven.trx', 'trx') | ||
let options = common.createOptions('trx-mstest-datadriven.trx', 'trx') | ||
await converter(options); | ||
setup.compare(options); | ||
common.compare(options, undefined, true); | ||
}); | ||
|
||
test('convert trx-nunit-datadriven.trx', async() => { | ||
let options = setup.createOptions('trx-nunit-datadriven.trx', 'trx') | ||
let options = common.createOptions('trx-nunit-datadriven.trx', 'trx') | ||
await converter(options); | ||
setup.compare(options); | ||
common.compare(options, undefined, true); | ||
}); | ||
|
||
test('convert trx-xunit-datadriven.trx', async() => { | ||
let options = setup.createOptions('trx-xunit-datadriven.trx', 'trx') | ||
let options = common.createOptions('trx-xunit-datadriven.trx', 'trx') | ||
await converter(options); | ||
setup.compare(options); | ||
common.compare(options, undefined, true); | ||
}); | ||
|
||
test('convert trx-mstest-ignore.trx', async() => { | ||
let options = setup.createOptions('trx-mstest-ignore.trx', 'trx') | ||
let options = common.createOptions('trx-mstest-ignore.trx', 'trx') | ||
await converter(options); | ||
setup.compare(options); | ||
common.compare(options, undefined, true); | ||
}); | ||
|
||
test('convert trx-nunit-ignore.trx', async() => { | ||
let options = setup.createOptions('trx-nunit-ignore.trx', 'trx') | ||
let options = common.createOptions('trx-nunit-ignore.trx', 'trx') | ||
await converter(options); | ||
setup.compare(options); | ||
common.compare(options, undefined, true); | ||
}); | ||
|
||
test('convert trx-xunit-ignore.trx', async() => { | ||
let options = setup.createOptions('trx-xunit-ignore.trx', 'trx') | ||
let options = common.createOptions('trx-xunit-ignore.trx', 'trx') | ||
await converter(options); | ||
setup.compare(options); | ||
common.compare(options, undefined, true); | ||
}); | ||
|
||
test('convert trx-mstest.trx', async() => { | ||
let options = setup.createOptions('trx-mstest.trx', 'trx') | ||
let options = common.createOptions('trx-mstest.trx', 'trx') | ||
await converter(options); | ||
setup.compare(options); | ||
common.compare(options, undefined, true); | ||
}); | ||
|
||
test('convert trx-nunit.trx', async() => { | ||
let options = setup.createOptions('trx-nunit.trx', 'trx') | ||
let options = common.createOptions('trx-nunit.trx', 'trx') | ||
await converter(options); | ||
setup.compare(options); | ||
common.compare(options, undefined, true); | ||
}); | ||
|
||
test('convert trx-xunit.trx', async() => { | ||
let options = setup.createOptions('trx-xunit.trx', 'trx') | ||
let options = common.createOptions('trx-xunit.trx', 'trx') | ||
await converter(options); | ||
setup.compare(options); | ||
common.compare(options, undefined, true); | ||
}); | ||
|
||
}); |
Oops, something went wrong.