starikcetin / Extenject

Dependency Injection Framework for Unity3D
MIT License
17 stars 6 forks source link

Unity doesn't build scripts from TestFramework #14

Open Yamaraj6 opened 2 years ago

Yamaraj6 commented 2 years ago

Describe the bug I imported zenject via UPM from the link from GIT https://github.com/starikcetin/Extenject.git#9.1.0. I'm trying to write tests to my unity package, but I can't use the scripts in Zenject-TestFramework because unity doesn't build it.

To Reproduce

  1. Import extenject as UPM.
  2. Create new package, and create test assembly. image
  3. Add to test assembly zenject-testframework image
  4. Create default zenject test in this assembly image

Extenject and Unity info (please complete the following information):

starikcetin commented 2 years ago

Back when I was creating this UPM fork, I did not give much thought to how the extras would play along, and I do not have enough free time to look further into it. I am keeping this repository up for the sole purpose of not breaking the projects that are already using it. I am not planning on performing any maintenance any time soon. Please bear that in mind before using this repo in your project.

Yamaraj6 commented 2 years ago

Ok, I create a workaround for this problem with TestFramework. Honestly, I have no idea what the main bug is, but there is a list of things that I changed that could cause potential problems:

If somebody wants use TestFramework as package you can use my solution just put this into manifest.json: "com.svermeulen.extenject": "git+https://github.com/EHS-VR/Extenject#046cd679ce5b0e2fbd9f8048920c59bae5cb7115", "com.svermeulen.extenject.testframework": "https://github.com/EHS-VR/ExtenjectTestFramework.git",