mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 14:57:09 +01:00
feat: add directory mapping to map between Docker image and local path
This commit is contained in:
parent
3ec78ee9ff
commit
9b503434d1
6 changed files with 35 additions and 9 deletions
|
|
@ -11,6 +11,7 @@ const input: Record<string, string> = {
|
|||
'max-annotations': '10',
|
||||
'fail-on-error': 'true',
|
||||
'only-summary': 'false',
|
||||
'directory-mapping': 'mnt/extra-addons:mypath',
|
||||
token: '***'
|
||||
}
|
||||
|
||||
|
|
@ -56,7 +57,7 @@ describe('integration test', () => {
|
|||
})
|
||||
jest
|
||||
.spyOn(LocalFileProvider.prototype, 'listTrackedFiles')
|
||||
.mockResolvedValue(['addons/product_changes/tests/first_test.py'])
|
||||
.mockResolvedValue(['mypath/product_changes/tests/first_test.py'])
|
||||
|
||||
await import('../src/main')
|
||||
// trick to wait for the pending "main" Promise
|
||||
|
|
@ -68,7 +69,7 @@ describe('integration test', () => {
|
|||
output: expect.objectContaining({
|
||||
annotations: [
|
||||
expect.objectContaining({
|
||||
path: 'addons/product_changes/tests/first_test.py'
|
||||
path: 'mypath/product_changes/tests/first_test.py'
|
||||
})
|
||||
]
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue