<commit_before>*** Settings ***
Documentation   Tests for xunit-compatible xml-output.
Default Tags    regression  pybot  jybot
Resource        atest_resource.txt
Resource        xunit_resource.txt

*** Variables ***
${TESTDATA}  misc/pass_and_fail.html

*** Test Cases ***
No Xunit Option Given
    Run Tests  ${EMPTY}  ${TESTDATA}
    Check Stdout Does Not Contain  XUnit

Xunit Option Given
    Run Tests  -x xunit.xml  ${TESTDATA}
    Check Stdout Contains  XUnit
    Should Exist  ${OUTDIR}${/}xunit.xml
    ${dom} =  Get Dom
    Check Root Element Is Test Suite  ${dom}
    Check Element Count  ${dom}  testcase  2
    Check Element Count  ${dom}  failure  1<commit_msg>an extra check for a failing test<commit_after>*** Settings ***
Documentation   Tests for xunit-compatible xml-output.
Default Tags    regression  pybot  jybot
Resource        atest_resource.txt
Resource        xunit_resource.txt

*** Variables ***
${TESTDATA}  misc/pass_and_fail.html

*** Test Cases ***
No Xunit Option Given
    Run Tests  ${EMPTY}  ${TESTDATA}
    Check Stdout Does Not Contain  XUnit

Xunit Option Given
    Run Tests  -x xunit.xml  ${TESTDATA}
    Check Stdout Contains  XUnit
    Stderr should be empty
    Should Exist  ${OUTDIR}/xunit.xml
    ${dom} =  Get Dom
    Check Root Element Is Test Suite  ${dom}
    Check Element Count  ${dom}  testcase  2
    Check Element Count  ${dom}  failure  1
{'fraction_non_alphanumeric': 0.08810888252148998, 'fraction_numerical': 0.0028653295128939827, 'mean_word_length': 3.072886297376093, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4597937', 'n_tokens_mistral': 444, 'n_tokens_neox': 438, 'n_words': 153}