1
- import { parseFile , parseTestReports , resolveFileAndLine , resolvePath , Transformer } from '../src/testParser'
1
+ import { parseFile , parseTestReports , resolveFileAndLine , resolvePath , Transformer } from '../src/testParser.js '
2
2
3
3
/**
4
4
* Original test cases:
@@ -242,9 +242,9 @@ describe('parseFile', () => {
242
242
annotation_level : 'failure' ,
243
243
status : 'failure' ,
244
244
title : 'test_sample.test_which_fails' ,
245
- message : " AssertionError: assert 'test' == 'xyz'\n - xyz\n + test" ,
245
+ message : ' AssertionError: assert \ 'test\ ' == \ 'xyz\ '\n - xyz\n + test' ,
246
246
raw_details :
247
- " def test_which_fails():\n event = { 'attr': 'test'}\n> assert event['attr'] == 'xyz'\nE AssertionError: assert 'test' == 'xyz'\nE - xyz\nE + test\n\npython/test_sample.py:10: AssertionError"
247
+ ' def test_which_fails():\n event = { \ 'attr\ ': \ 'test\ '}\n> assert event[\ 'attr\ '] == \ 'xyz\ '\nE AssertionError: assert \ 'test\ ' == \ 'xyz\ '\nE - xyz\nE + test\n\npython/test_sample.py:10: AssertionError'
248
248
} ,
249
249
{
250
250
path : 'test_results/python/test_sample.py' ,
@@ -256,9 +256,9 @@ describe('parseFile', () => {
256
256
annotation_level : 'failure' ,
257
257
status : 'failure' ,
258
258
title : 'test_sample.test_with_error' ,
259
- message : " AttributeError: 'dict' object has no attribute 'attr'" ,
259
+ message : ' AttributeError: \ 'dict\ ' object has no attribute \ 'attr\'' ,
260
260
raw_details :
261
- " def test_with_error():\n event = { 'attr': 'test'}\n> assert event.attr == 'test'\nE AttributeError: 'dict' object has no attribute 'attr'\n\npython/test_sample.py:14: AttributeError"
261
+ ' def test_with_error():\n event = { \ 'attr\ ': \ 'test\ '}\n> assert event.attr == \ 'test\ '\nE AttributeError: \ 'dict\ ' object has no attribute \ 'attr\ '\n\npython/test_sample.py:14: AttributeError'
262
262
}
263
263
] )
264
264
} )
@@ -292,9 +292,9 @@ describe('parseFile', () => {
292
292
annotation_level : 'failure' ,
293
293
status : 'failure' ,
294
294
title : 'pytest/test_which_fails' ,
295
- message : " AssertionError: assert 'test' == 'xyz'\n - xyz\n + test" ,
295
+ message : ' AssertionError: assert \ 'test\ ' == \ 'xyz\ '\n - xyz\n + test' ,
296
296
raw_details :
297
- " def test_which_fails():\n event = { 'attr': 'test'}\n> assert event['attr'] == 'xyz'\nE AssertionError: assert 'test' == 'xyz'\nE - xyz\nE + test\n\npython/test_sample.py:10: AssertionError"
297
+ ' def test_which_fails():\n event = { \ 'attr\ ': \ 'test\ '}\n> assert event[\ 'attr\ '] == \ 'xyz\ '\nE AssertionError: assert \ 'test\ ' == \ 'xyz\ '\nE - xyz\nE + test\n\npython/test_sample.py:10: AssertionError'
298
298
} ,
299
299
{
300
300
path : 'subproject/test_results/python/test_sample.py' ,
@@ -306,9 +306,9 @@ describe('parseFile', () => {
306
306
annotation_level : 'failure' ,
307
307
status : 'failure' ,
308
308
title : 'pytest/test_with_error' ,
309
- message : " AttributeError: 'dict' object has no attribute 'attr'" ,
309
+ message : ' AttributeError: \ 'dict\ ' object has no attribute \ 'attr\'' ,
310
310
raw_details :
311
- " def test_with_error():\n event = { 'attr': 'test'}\n> assert event.attr == 'test'\nE AttributeError: 'dict' object has no attribute 'attr'\n\npython/test_sample.py:14: AttributeError"
311
+ ' def test_with_error():\n event = { \ 'attr\ ': \ 'test\ '}\n> assert event.attr == \ 'test\ '\nE AttributeError: \ 'dict\ ' object has no attribute \ 'attr\ '\n\npython/test_sample.py:14: AttributeError'
312
312
}
313
313
] )
314
314
} )
0 commit comments