Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 vincentlo · Oct 30, 2014 at 09:10 PM · editorintegrationtest

Is there a way to display integration test results in the editor GUI?

Hi,

I'm currently working on trying to improve the integration test system in Unity. Right now I've created my own GUI that will display a list of buttons that show the available integration tests for a project I'm working on.

What I want to do is after running a/multiple integration test(s), have the results of the tests be aggregated somewhere so that I can stick them in another GUI window or something. By results of the tests, I mean more than just "test failed" or "test passed".

Is there anything like this that can be done?

Thanks!

Comment
Add comment · Show 1
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 Pindwin · Aug 29, 2016 at 06:35 AM 0
Share

Hey, little necromancy won't hurt - did you, by any chance, come up with some editor script to speed up running integration tests split up among multiple scenes? Or anything else you would, by any chance, like to share?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Bunny83 · Oct 30, 2014 at 09:54 PM

You said you have created your own GUI for the tests. Where have you created those buttons? In a runtime script or an editor script like an EditorWindow? I'm not entirely sure if i understood your actual setup right.

If you already have an EditorWindow you can display whatever you want in there. For example a TextArea that acts as custom logging console. Or even a scrollview that displays the results of each test with individual gui elements. Do you have any concrete example? Something like: There's a button to start the test, when done the results (should) look like this ...

As a general helper on the Unity GUI system, here's a link to my GUI crash course

Comment
Add comment · Show 1 · 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 vincentlo · Oct 30, 2014 at 10:20 PM 0
Share

I created them in an editor script I believe.

Currently the integration test results are just displayed in the side panel with information limited to "test failed" or "test passed" for the individual tests. I want to be able to display more detailed test results. Not sure how to extract the information but if I could then I guess it would be easy to display with a TextArea like you mentioned.

The current setup is I hit cmd+shift+t which opens the GUI that I created in an editor script. This GUI contains buttons that all correspond to an integration test scene. When you click one, it opens the scene and opens the built in integration test runner from Unity test tools. Then you hit play and it runs the tests as usual.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

A node in a childnode? 1 Answer

Build a game from Illegal Unity 0 Answers

How can I fix the Unity Bug 1 Answer

Unity Editor Inspector creating gameObjects in world 2 Answers

Grey Screen Whenever Unity Editor Is Opened 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