@@ -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
} )
@@ -426,7 +426,8 @@ describe('parseFile', () => {
426
426
true ,
427
427
false ,
428
428
undefined ,
429
- true )
429
+ true
430
+ )
430
431
expect ( testResult ) . toBeDefined ( )
431
432
const { totalCount, skippedCount, globalAnnotations} = testResult ! !
432
433
const filtered = globalAnnotations . filter ( annotation => annotation . annotation_level !== 'notice' )
@@ -438,10 +439,12 @@ describe('parseFile', () => {
438
439
annotation_level : 'failure' ,
439
440
end_column : 0 ,
440
441
end_line : 154 ,
441
- message : 'thread \'test_failure\' panicked at tests/parry3d.rs:154:5:\n' +
442
+ message :
443
+ "thread 'test_failure' panicked at tests/parry3d.rs:154:5:\n" +
442
444
' assertion `left == right` failed: 0 must equal 1' ,
443
445
path : 'tests/parry3d.rs' ,
444
- raw_details : 'thread \'test_failure\' panicked at tests/parry3d.rs:154:5:\n' +
446
+ raw_details :
447
+ "thread 'test_failure' panicked at tests/parry3d.rs:154:5:\n" +
445
448
' assertion `left == right` failed: 0 must equal 1\n' +
446
449
' left: 0\n' +
447
450
' right: 1\n' +
0 commit comments