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
1
Question by Xarbrough · May 24, 2016 at 09:03 PM · nunit

Which version of NUnit ships with Unity? Can't find [TestFixtureSource] attribute.

Where can I find which version of NUnit is shipped by Unity with the Editor Test Tools? I was trying to use the [TestFixtureSource] attribute, but it couldn't be found in the NUnit namespace, so apparently Unity uses a modified or older version of NUnit (too bad...).

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

3 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by fafase · May 24, 2016 at 11:03 PM

http://docs.unity3d.com/Manual/testing-editortestsrunner.html

"The Editor Tests Runner is an implementation of the open source NUnit library - a well-known unit testing library for .Net languages. More information about NUnit can be found on http://www.nunit.org/. The implementaion is based on version 2.6.4."

Comment
Add comment · Show 2 · 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 Xarbrough · May 24, 2016 at 11:12 PM 0
Share

Can I use a newer version of NUnit as a plugin and make the Editor Tests Window work with it? I'd really like to have some of the never features, but if possible I'd also like to keep the nice integration into Unity. Are there any plans by Unity to update this in future releases?

avatar image fafase · May 25, 2016 at 07:19 AM 0
Share

You could try to download the dll and add it in the Editor folder. Though I would expect a namespace conflict.

avatar image
2

Answer by ykeyani · Dec 30, 2017 at 05:11 PM

If anyone is googling this with version 2017.3, it looks like its using version 3.5 now.

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
avatar image
2

Answer by PanayotCankov · Jul 02, 2018 at 09:17 AM

I am writing some tests that capture images in "PlayMode" and it works pretty well. I wanted to add them using NUnit TestContext.AddTestAttachment method that is available in 3.8 or something. I tried to replace all nunit.framework.dll and .xml in the Unity installation but tests crash with: MissingMethodException: Method not found: 'NUnit.Framework.Internal.Reflect.set_MethodCallWrapper' at "../Runtime/Export/Coroutines.cs". So I guess Unity is doing some work to update the testrunner and match with new NUnit versions.

When can we have NUnit 3.9? I would love to attach actual/diff/expected set of images as attachments to tests: alt text


32884638-49ef3ffe-cabb-11e7-928b-4aefae4e0471.png (42.1 kB)
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

46 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

Related Questions

Asynchronous testing with NUnit? 0 Answers

Can Unity 5.6's Test Runner optionally output NUnit 2 xml format? 2 Answers

How to prevent Unity from deleting additional Projects in Solution 2 Answers

NUnit delayed constraint does not appear to work in playmode test 0 Answers

MSTools instead of NUnit 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