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 toy0605-WALRUS · Feb 08, 2019 at 09:02 AM · testbatchmode

Test Runner timed out using batchmode in 2018.3.2f1

Hi.

I'm testing my games using batch mode in Jenkins. Unity editor(2018.3.2f1) stopped and timed out in 10 minutes. (but I using attribute to wait for 1hour 30minutes!) but it worked in 2018.1.0f2

this is the editor log.

 ...
 Test execution timed out.
 UnityEngine.DebugLogHandler:Internal_Log()
 UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
 UnityEngine.Logger:LogFormat(LogType, String, Object[])
 UnityEngine.Debug:LogErrorFormat(String, Object[])
 UnityEditor.TestTools.TestRunner.CommandLineTest.TimeoutCallbacks:TimeoutReached() (at C:\buildslave\unity\build\Extensions\TestRunner\UnityEditor.TestRunner\CommandLineTest\TimeoutCallbacks.cs:61)
 UnityEditor.DelayedCallback:Update() (at C:\buildslave\unity\build\Editor\Mono\GUI\RenameOverlay.cs:415)
 UnityEditor.EditorApplication:Internal_CallUpdateFunctions() (at C:\buildslave\unity\build\Editor\Mono\EditorApplication.cs:200)
 ...

this is my test code.

 [UnityTest]
 [Timeout(5400000)]
 public IEnumerator _INTEGRATION_TEST_()
 {
 ...

and my command line arguments.

  -batchMode -runTests -projectPath '${WORKSPACE}' -testResults '${WORKSPACE}\\TestResult.xml' -logFile '${WORKSPACE}\\Test.log' -testPlatform playmode

Sadly, It worked very well using Unity editor in normal mode (not batch mode)

It is just bug??? or what happens is it?

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 Warnecke · Feb 08, 2019 at 09:29 AM

Yes, that sounds like a bug. We recently discovered an issue where TimeScale.Time was not being taken into account when calculating the timeout, as the test runner incorrectly used the scaled time, rather than real time. Could that be what you are facing?

Comment
Add comment · Show 3 · 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
avatar image toy0605-WALRUS · Feb 08, 2019 at 09:34 AM 0
Share

Yes. I changed timescale in between test. but it worked well in unity editor (not batch mode). Has that bug appeared only batch mode?

avatar image Warnecke toy0605-WALRUS · Feb 08, 2019 at 10:17 AM 0
Share

No, this bug happens in the editor as well. $$anonymous$$g. the following would time out after less than 1 sec: [UnityTest] [Timeout(1000*60)] public IEnumerator NewTestScriptWithEnumeratorPasses() { Time.timeScale = 100; while (true) { yield return null; } } So it sounds like your issue is unrelated. If that is the case, you can report the details you know in a bug report from inside unity (See https://unity3d.com/unity/qa/bug-reporting).

avatar image toy0605-WALRUS Warnecke · Feb 08, 2019 at 10:33 AM 0
Share

Ok. Thanks for your helping.

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

99 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

batchmode consumes 100% cpu 2 Answers

Unity crashes when called from script/daemon 2 Answers

HideFlags not respected in batch mode 0 Answers

How to implement a Hit Test? 1 Answer

Unity test problems on android device 1 Answer


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