Skip to content

Commit

Permalink
- format everything
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Dec 15, 2024
1 parent 476a8c4 commit 1c71286
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ $ npm install
# Verify lint is happy
$ npm run lint -- --fix
# Format
$ npm run format
# Build the typescript and package it for distribution
$ npm run build && npm run package
Expand Down
25 changes: 14 additions & 11 deletions __tests__/testParser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ describe('parseFile', () => {
annotation_level: 'failure',
status: 'failure',
title: 'test_sample.test_which_fails',
message: 'AssertionError: assert \'test\' == \'xyz\'\n - xyz\n + test',
message: "AssertionError: assert 'test' == 'xyz'\n - xyz\n + test",
raw_details:
'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'
"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"
},
{
path: 'test_results/python/test_sample.py',
Expand All @@ -256,9 +256,9 @@ describe('parseFile', () => {
annotation_level: 'failure',
status: 'failure',
title: 'test_sample.test_with_error',
message: 'AttributeError: \'dict\' object has no attribute \'attr\'',
message: "AttributeError: 'dict' object has no attribute 'attr'",
raw_details:
'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'
"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"
}
])
})
Expand Down Expand Up @@ -292,9 +292,9 @@ describe('parseFile', () => {
annotation_level: 'failure',
status: 'failure',
title: 'pytest/test_which_fails',
message: 'AssertionError: assert \'test\' == \'xyz\'\n - xyz\n + test',
message: "AssertionError: assert 'test' == 'xyz'\n - xyz\n + test",
raw_details:
'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'
"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"
},
{
path: 'subproject/test_results/python/test_sample.py',
Expand All @@ -306,9 +306,9 @@ describe('parseFile', () => {
annotation_level: 'failure',
status: 'failure',
title: 'pytest/test_with_error',
message: 'AttributeError: \'dict\' object has no attribute \'attr\'',
message: "AttributeError: 'dict' object has no attribute 'attr'",
raw_details:
'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'
"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"
}
])
})
Expand Down Expand Up @@ -426,7 +426,8 @@ describe('parseFile', () => {
true,
false,
undefined,
true)
true
)
expect(testResult).toBeDefined()
const {totalCount, skippedCount, globalAnnotations} = testResult!!
const filtered = globalAnnotations.filter(annotation => annotation.annotation_level !== 'notice')
Expand All @@ -438,10 +439,12 @@ describe('parseFile', () => {
annotation_level: 'failure',
end_column: 0,
end_line: 154,
message: 'thread \'test_failure\' panicked at tests/parry3d.rs:154:5:\n' +
message:
"thread 'test_failure' panicked at tests/parry3d.rs:154:5:\n" +
' assertion `left == right` failed: 0 must equal 1',
path: 'tests/parry3d.rs',
raw_details: 'thread \'test_failure\' panicked at tests/parry3d.rs:154:5:\n' +
raw_details:
"thread 'test_failure' panicked at tests/parry3d.rs:154:5:\n" +
' assertion `left == right` failed: 0 must equal 1\n' +
' left: 0\n' +
' right: 1\n' +
Expand Down

0 comments on commit 1c71286

Please sign in to comment.