Skip to content

Commit

Permalink
Trying to make junit report on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vmagueta committed Jun 24, 2024
1 parent 1c2a425 commit 5eb9b97
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test-result.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite name="pytest" errors="0" failures="1" skipped="0" tests="3" time="0.195" timestamp="2024-06-24T10:18:56.614941" hostname="soler"><testcase classname="tests.test_load" name="test_load_positive_has_2_people" time="0.003"><failure message="AssertionError: assert 3 == 2&#10; + where 3 = len(['Jim Halpert, Sales, Salesman, [email protected]', 'Dwight Schrute, Sales, Manager, [email protected]', 'Gabe Lewis, Directory, Manager, [email protected]'])&#10; + where ['Jim Halpert, Sales, Salesman, [email protected]', 'Dwight Schrute, Sales, Manager, [email protected]', 'Gabe Lewis, Directory, Manager, [email protected]'] = load('tests/assets/people.csv')">request = &lt;FixtureRequest for &lt;Function test_load_positive_has_2_people&gt;&gt;

@pytest.mark.unit
@pytest.mark.high
def test_load_positive_has_2_people(request):
"""Test load function has 2 people."""
&gt; assert len(load(PEOPLE_FILE)) == 2
E AssertionError: assert 3 == 2
E + where 3 = len(['Jim Halpert, Sales, Salesman, [email protected]', 'Dwight Schrute, Sales, Manager, [email protected]', 'Gabe Lewis, Directory, Manager, [email protected]'])
E + where ['Jim Halpert, Sales, Salesman, [email protected]', 'Dwight Schrute, Sales, Manager, [email protected]', 'Gabe Lewis, Directory, Manager, [email protected]'] = load('tests/assets/people.csv')

tests/test_load.py:10: AssertionError</failure></testcase><testcase classname="tests.test_load" name="test_load_positive_first_name_starts_with_j" time="0.000" /><testcase classname="integration.test_load" name="test_load" time="0.050" /></testsuite></testsuites>

0 comments on commit 5eb9b97

Please sign in to comment.