Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcpretty_naming does when test results are in a .xcresult file. #43

Open
tmjdisorder opened this issue Nov 21, 2020 · 0 comments
Open

Comments

@tmjdisorder
Copy link

tmjdisorder commented Nov 21, 2020

This may just be user error, but I'm not seeing a difference in the junit reports generated when xcpretty_naming is true vs when it is false. Looking at the code, it looks like this is the expected behavior when the testData is in a .xcresult file. Anyway, not sure if the bug is in the code, the documentation, or just good old-fashioned user error.

expected output:

<testsuites name='Target.xctest' tests='8' failures='0'>
  <testsuite name = 'Target.TestClass1' tests='4' failures='0'>
      <testcase classname='Target.TestClass1' name ='test1' time='.001'/>
      <testcase classname='Target.TestClass1' name ='test2' time='.001'/>
      <testcase classname='Target.TestClass1' name ='test3' time='.001'/>
      <testcase classname='Target.TestClass1' name ='test4' time='.001'/>
  </testsuite>
  <testsuite name = 'Target.TestClass2' tests='4' failures='0'>
      <testcase classname='Target.TestClass2' name ='test1' time='.001'/>
      <testcase classname='Target.TestClass2' name ='test2' time='.001'/>
      <testcase classname='Target.TestClass2' name ='test3' time='.001'/>
      <testcase classname='Target.TestClass2' name ='test4' time='.001'/>
  </testsuite>
</testsuites>

actual output:

<testsuites tests='8' failures='0'>
  <testsuite name = 'Target' tests='8' failures='0' time='.008>
      <testcase classname='TestClass1' name ='test1()' time='.001'>
      </testcase>
      <testcase classname='TestClass1' name ='test2()' time='.001'>
      </testcase>
      <testcase classname='TestClass1' name ='test3()' time='.001'>
      </testcase>
      <testcase classname='TestClass1' name ='test4()' time='.001'>
      </testcase>
      <testcase classname='TestClass2' name ='test1()' time='.001'>
      </testcase>
      <testcase classname='TestClass2' name ='test2()' time='.001'>
      </testcase>
      <testcase classname='TestClass2' name ='test3()' time='.001'>
      </testcase>
      <testcase classname='TestClass2' name ='test4()' time='.001'>
      </testcase>
 </testsuite>
</testsuites>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant