Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by SirNokles · May 14, 2017 at 06:59 PM · testingtest

Unit Test EditorTestResults

Hi guys,

I search the last week everywhere, but I can't find a solution for that.

I have a workstation ( Win 10, Unity 5.6.0f3 ) and a home-server ( Win Server, Unity 5.6.0f3 ) .

If I test my sources with the " start /WAIT Unity.exe -batchmode -runEditorTests -projectPath "c:\MyProject\" -editorTestsResultFile c:\MyProject\result.xml" directly on my workstation. I get an result XML which looks like a well-formated NUnit-XML-file:

 <?xml version="1.0" encoding="utf-8"?>
 <test-results name="Unity Tests" total="16" ... >
   <environment nunit-version="2.6.4-Unity" ... >
      <culture-info current-culture="en-US" ...>
        <test-suite name="MyProject" ... >
          <results>
            <test-case name="UnityTest....">
               <failure>
                <message>

but if my CI-Server (TeamCity) tries to check out the sources and test it, the first part of the file is missing, it's just like:

   <?xml version="1.0" encoding="utf-8"?>
   <test-suite name="MyProject" ... >
     <results>
       <test-case name="UnityTest....">
         <failure>
           <message>

I tried it out the personal- and my pro-license on both machines.

I checked also the nunit-references in vs.

Setup a new repo (svn), made a "clean" commit, checked it out.

I also run the command directly in the shell on my server.

I tried out a lot of stuff and everytime i got the same result

Does anybody know anything about it? Or have maybe a solution?

Cheers!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by SirNokles · May 16, 2017 at 03:12 PM

Okay I found after a while the solution by myself. On my Workstation I run the tests not with the 5.6 version, instead with the 5.5 version with including the asset "TestTools" from the Store. Don't recognized that the 5.6 is on d: and 5.5 is on c:

the results with 5.5 is:

 <?xml version="1.0" encoding="utf-8"?>
 <!--This file represents the results of running a test suite-->
 <test-results name="Unity Tests" total="19" errors="2" failures="2" not-run="2" inconclusive="4" ignored="1" skipped="1" invalid="0" date="2017-05-16" time="16:51:01">
   <environment nunit-version="2.6.4-Unity" clr-version="2.0.50727.1433" os-version="Microsoft Windows NT 10.0.14393.0" platform="Win32NT" cwd="P:\10_OtherProjects\testingTest" machine-name="DESKTOP-3KGC3O3" user="Niclas" user-domain="DESKTOP-3KGC3O3" unity-version="5.5.1f1" unity-platform="WindowsEditor" />
   <culture-info current-culture="en-US" current-uiculture="en-US" />
   <test-suite name="testingTest" type="Assembly" executed="True" result="Failure" success="False" time="0.227">
     <results>
       <test-case name="NewEditorTest.EditorTest" executed="True" result="Success" success="True" time="0.007">
       </test-case>
       <test-case name="UnityTest.SampleTests.CultureSpecificTest" executed="False" result="Skipped">
         <reason>
           <message>
 ....

with 5.6 is

 <?xml version="1.0" encoding="utf-8"?>
 <test-suite type="TestSuite" id="1000" name="testingTest" fullname="testingTest" runstate="Runnable" testcasecount="21" result="Failed" site="Child" start-time="2017-05-16 14:50:19Z" end-time="2017-05-16 14:50:20Z" duration="0.767544" total="21" passed="11" failed="4" inconclusive="4" skipped="2" asserts="5">
   <failure>
     <message><![CDATA[One or more child tests had errors]]></message>
   </failure>
   <test-suite type="Assembly" id="1027" name="Assembly-CSharp-Editor.dll" fullname="P:/10_OtherProjects/testingTest/Library/ScriptAssemblies/Assembly-CSharp-Editor.dll" runstate="Runnable" testcasecount="21" result="Failed" site="Child" start-time="2017-05-16 14:50:19Z" end-time="2017-05-16 14:50:20Z" duration="0.732118" total="21" passed="11" failed="4" inconclusive="4" skipped="2" asserts="5">
     <properties>
       <property name="_PID" value="2332" />
       <property name="_APPDOMAIN" value="Unity Child Domain" />
     </properties>
     <failure>
       <message><![CDATA[One or more child tests had errors]]></message>
     </failure>
  ....


Now my new question is: Is it possible to add a flag that I got the same result file like the 5.5 version?

Cheers!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Unity Test Tools - Integration Test for existing scenes 1 Answer

Is there a limit to Test Runner play mode test duration? 2 Answers

How to see code executed line by line in the game window? 1 Answer

When creating unity playmode tests in a dll they dont't show up in the test runner 2 Answers

Will I be able to test X-box game with out test/dev kit?,,Will I be able to do the game testing with out test/dev kit? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges