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 andreim44 · Oct 09, 2017 at 08:55 AM · unityeditortesting

How to prevent Unity from adding nunit and TestRunner references to my project?

I tried the unity test tools at some point, but I didn't like them so I decided to stick to MSTests and removed them.

I have deleted every trace of the TestTools, and even deleted the library folder containing the nunit and TestRunner dlls. However, every time I open the C# project from Unity, references to nunit framework and Testrunner are added - and they are spamming me with warnings because they are not found.

Can someone tell me why does unity keep adding these references? I want to stop it from adding them so I can keep my code warning-free.

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 HaraldNielsen · Oct 09, 2017 at 09:35 AM

Hi @andreim44 Currently there are noway to remove the references in you IDE. They are showed even when playmode tests are disabled https://docs.unity3d.com/uploads/Main/TestRunner5.png

If you have disabled the playmode test runner, nunit and the test runner assemblies will not be included in a player build. If you have deleted the nunit assemblies you will get reference errors because the IDE can not find the file. So if you can readd them the warnings will go away. We are working on a solution for references that im looking forward to share with you guys

Comment
Add comment · Show 4 · 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 andreim44 · Oct 09, 2017 at 09:46 AM 0
Share

Thank you. I know re-adding them will get rid of the errors, but I'd rather not fill my project with unused assets. $$anonymous$$y issue is that I removed any kind of unity test tools and the references still get added to the project, do you know by any chance what part of unity is adding them? $$anonymous$$aybe I can change that directly. But I have no idea what prompts the references to be added.

avatar image HaraldNielsen andreim44 · Oct 09, 2017 at 10:00 AM 0
Share

Did actually get an idea.

So the test runner is an extension, and those get automatically added. So if you delete that extention they should not get registered, and thus not get added as references.

You can find the folder in your unity installation: \Data\UnityExtensions\Unity\TestRunner Just delete that and it will be removed.

avatar image HaraldNielsen HaraldNielsen · Oct 09, 2017 at 10:01 AM 0
Share

$$anonymous$$ake a backup, just in case :) But you already deleted some files from there as I understand

Show more comments

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

71 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

Related Questions

unity ads not working in android not even in test mode. 1 Answer

Headless Editor Test Runner not working 1 Answer

Can't find Substitute class and Return method 1 Answer

Play mode testing stalled 0 Answers

Sprite becomes Invisble in game mode / window 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