mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 06:47:09 +01:00
revert directory mapping
This commit is contained in:
parent
748bf26479
commit
0582e4d1dc
4 changed files with 0 additions and 18 deletions
1
.github/workflows/test-report.yml
vendored
1
.github/workflows/test-report.yml
vendored
|
|
@ -18,4 +18,3 @@ jobs:
|
|||
name: Workflow Report
|
||||
path: '*.xml'
|
||||
reporter: jest-junit
|
||||
directory-mapping: {from: "some/path", to: "some/other/path"}
|
||||
|
|
|
|||
|
|
@ -9,13 +9,4 @@ describe('getBasePath', () => {
|
|||
|
||||
expect(result).toBe('C:/Users/Michal/Workspace/dorny/test-check/reports/jest/')
|
||||
})
|
||||
|
||||
// it('tracked file contains part of the path', () => {
|
||||
// const path = 'mnt/extra-addons/product_changes/tests/first_test.py'
|
||||
// const trackedFiles = ['addons/product_changes/tests/first_test.py']
|
||||
//
|
||||
// const result = getBasePath(path, trackedFiles)
|
||||
//
|
||||
// expect(result).toBe('addons/product_changes/tests/first_test.py')
|
||||
// })
|
||||
})
|
||||
|
|
|
|||
|
|
@ -68,11 +68,6 @@ inputs:
|
|||
Detailed listing of test suites and test cases will be skipped.
|
||||
default: 'false'
|
||||
required: false
|
||||
directory-mapping:
|
||||
description: |
|
||||
Map part of the file paths to something else, so they match the paths of the repository.
|
||||
This is needed when you use run your code in a container with a different path than the source code repository.
|
||||
required: false
|
||||
token:
|
||||
description: GitHub Access Token
|
||||
required: false
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@ class TestReporter {
|
|||
readonly workDirInput = core.getInput('working-directory', {required: false})
|
||||
readonly onlySummary = core.getInput('only-summary', {required: false}) === 'true'
|
||||
readonly token = core.getInput('token', {required: true})
|
||||
readonly directoryMapping = core.getInput('directory-mapping', {required: true})
|
||||
readonly octokit: InstanceType<typeof GitHub>
|
||||
readonly context = getCheckRunContext()
|
||||
|
||||
|
|
@ -65,8 +64,6 @@ class TestReporter {
|
|||
core.setFailed(`Input parameter 'max-annotations' has invalid value`)
|
||||
return
|
||||
}
|
||||
|
||||
console.log('Directory mapping: ', this.directoryMapping)
|
||||
}
|
||||
|
||||
async run(): Promise<void> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue