question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add unity3d support to stryker

See original GitHub issue

Describe the bug I’m attempting to run stryker on a unity3d project. There are 4 project files in the project root of this project all generated by unity. Assembly-CSharp-Editor.csproj <- our tests Assembly-CSharp-Editor-firstpass.csproj <- plugins pre compiled by unity and referenced in the tests Assembly-CSharp-firstpass.csproj <- plugins precompiled by unity and referenced in the producetion code Assembly-CSharp.csproj <- production code to be mutated

I’ve tried running stryker with -p Assembly-CSharp.csproj and i’ve included the following stryker-config.json

{
    "stryker-config":
    {    
        "solution-path":"word-show.sln",
        "project-file":"Assembly-CSharp.csproj"
    }
}

Logs

Version 0.11.0 (beta)

[23:56:25 DBG] Stryker started with options: {"BasePath":"/Users/mads/WorkSpaces/word-show","SolutionPath":"/Users/mads/WorkSpaces/word-show/word-show.sln","OutputPath":"/Users/mads/WorkSpaces/word-show/StrykerOutput/2019-06-11.23-56-25","Reporters":["Progress","ClearText"],"LogOptions":{"LogToFile":false,"OutputPath":"/Users/mads/WorkSpaces/word-show/StrykerOutput/2019-06-11.23-56-25","LogLevel":"Debug"},"DevMode":false,"ProjectUnderTestNameFilter":"Assembly-CSharp.csproj","AdditionalTimeoutMS":30000,"ExcludedMutations":[],"ConcurrentTestrunners":6,"Thresholds":{"High":80,"Low":60,"Break":0},"TestRunner":"DotnetTest","FilesToExclude":[]}
[23:56:25 INF] Time Elapsed 00:00:00.2474748
Stryker.NET failed to mutate your project. For more information see the logs below:

Expected exactly one .csproj file, found more than one:
/Users/mads/WorkSpaces/word-show/Assembly-CSharp-Editor.csproj
/Users/mads/WorkSpaces/word-show/Assembly-CSharp-Editor-firstpass.csproj
/Users/mads/WorkSpaces/word-show/Assembly-CSharp-firstpass.csproj
/Users/mads/WorkSpaces/word-show/Assembly-CSharp.csproj

Please fix your project contents

Expected behavior I expected stryker to mutate the production code and run the tests in the test project.

Desktop (please complete the following information):

  • OS: macOS 10.14
  • Unity 2018.1.9f2, targeting .net 4.7
  • Stryker Version 0.11.0
  • using NUnit test framework

Additional context None of the guides or documentation mentioned any way to point to the test project. I’m uncertain how stryker knows which project contains the tests or if there is a specific naming convention.

I hope have some insight in how to make stryker run. I would really like to use it for our project. Best Wishes, Mads

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
rouke-broersmacommented, Jun 12, 2019

I created a project for you where we can track progress on this feature and I have added some initial issues for what I think needs to be implemented to implement unity support. See https://github.com/stryker-mutator/stryker-net/projects/2

0reactions
dupdobcommented, May 5, 2023

Duplicate. See #2381

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unity furniture line
Our new Unity furniture line fuses the comfort of home with the durability ... Experience the ultimate in cleanability, to help with infection...
Read more >
Android environment setup
To create a Unity application for Android, you first need to set up your Unity project to support Android. To support Android, a...
Read more >
Player Settings: Virtual Reality supported
Player Settings: Virtual Reality supported ... So I just add a simple return statement in the according function, if I want to deploy...
Read more >
Unity Technologies Scoops Up Double Awards in Europe
Unity Technologies is headquartered in San Francisco and has development offices worldwide. For more information, visit http://unity3d.com.
Read more >
Pathophysiology of dehydration pdf free. Anus song lyrics. ...
Unity3d fps tutorial download. Ah nan singapore dietetics. ... P5kpl-am memory support? ... Pilipinas got talent 5/12/13 coupon insert preview.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found