-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring SwissQuote converter under test
- Loading branch information
Showing
17 changed files
with
296 additions
and
71 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: frameworkTesting | ||
run-name: Test Converters | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- feature/* | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
|
||
jobs: | ||
run-converter-tests: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
|
||
- run: npm install | ||
|
||
- run: npm run test | ||
|
||
- name: Convert code coverage results | ||
uses: irongut/[email protected] | ||
with: | ||
filename: coverage/*.xml | ||
badge: true | ||
format: 'markdown' | ||
output: 'file' | ||
|
||
- name: Add code coverage PR comment | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
recreate: true | ||
path: code-coverage-results.md | ||
|
||
- name: Write to job summary | ||
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { Config } from '@jest/types'; | ||
|
||
// Sync object | ||
const config: Config.InitialOptions = { | ||
verbose: true, | ||
testTimeout: 30000, | ||
transform: { | ||
'^.+\\.tsx?$': 'ts-jest' | ||
}, | ||
coverageDirectory: 'coverage', | ||
collectCoverageFrom: ['src/**/*.ts'], | ||
coverageReporters: ['text', 'cobertura', 'html'] | ||
}; | ||
|
||
export default config; |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { DeGiroConverter } from "./degiroConverter"; | ||
|
||
describe("degiroConverter", () => { | ||
|
||
it("should construct", () => { | ||
|
||
// Act | ||
const sut = new DeGiroConverter(); | ||
|
||
// Asssert | ||
expect(sut).toBeTruthy(); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { DeGiroConverterV2 } from "./degiroConverterV2"; | ||
|
||
describe("degiroConverter", () => { | ||
|
||
it("should construct", () => { | ||
|
||
// Act | ||
const sut = new DeGiroConverterV2(); | ||
|
||
// Asssert | ||
expect(sut).toBeTruthy(); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { FinpensionConverter } from "./finpensionConverter"; | ||
|
||
describe("finpensionConverter", () => { | ||
|
||
it("should construct", () => { | ||
|
||
// Act | ||
const sut = new FinpensionConverter(); | ||
|
||
// Asssert | ||
expect(sut).toBeTruthy(); | ||
}); | ||
}); |
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
Oops, something went wrong.