Coder Social home page Coder Social logo

Issue no tests found about unity-test-runner HOT 9 CLOSED

game-ci avatar game-ci commented on August 22, 2024
Issue no tests found

from unity-test-runner.

Comments (9)

webbertakken avatar webbertakken commented on August 22, 2024

If you use the default path, then you shouldn't specify the projectPath parameters

That said it's probably related to the assembly definition not being correctly configured.

  • My recommendation is that you copy the example project within test runner action repository and go from there to set up your workflow.
  • Once you know your workflow is 100% correct, you can change up the project part, that way you know for your workflow is done.

from unity-test-runner.

sacOO7 avatar sacOO7 commented on August 22, 2024

No, I don't think it's an assembly definition issue. I am facing the same issue. It works well with webbertakken/[email protected] but doesn't work at all with gameci/[email protected]. Also, not sure why this issue is closed without resolving it in the first place.

from unity-test-runner.

davidmfinol avatar davidmfinol commented on August 22, 2024

gameci/[email protected].

We don't have 2.0.
Did you mean gameci/unity-test-runner@v2 ?

from unity-test-runner.

sacOO7 avatar sacOO7 commented on August 22, 2024

@davidmfinol yes that's the one I meant, tests are not working with that particular version.

from unity-test-runner.

sacOO7 avatar sacOO7 commented on August 22, 2024

I have a public repository https://github.com/ably-fork/ably-unity, Can you please check what might be the issue with workflow defined to test the code? You can see workflow failed here with error to check number of tests passed https://github.com/ably-fork/ably-unity/runs/3920011392 for this particular commit

from unity-test-runner.

davidmfinol avatar davidmfinol commented on August 22, 2024

In your logs, there is this:

Assembly 'Library/ScriptAssemblies/PlayMode.dll' will not be loaded due to errors:
Reference has errors 'IO.Ably'.
Assembly 'Library/ScriptAssemblies/EditMode.dll' will not be loaded due to errors:
Reference has errors 'IO.Ably'.
Assembly 'Assets/Ably/Plugins/IO.Ably.dll' will not be loaded due to errors:
IO.Ably references strong named Newtonsoft.Json Assembly references: 9.0.0.0 Found in project: 10.0.0.0.

Your tests aren't running because the assembly definitions aren't being loaded because of a versioning issue with Json.NET.
I've found that getting a version of Json.NET that works well across all Unity versions/platforms can be tricky. I'm currently (and would recommend) using pure UPM to install this fork: https://github.com/jilleJr/Newtonsoft.Json-for-Unity

from unity-test-runner.

robGG1997 avatar robGG1997 commented on August 22, 2024

@davidmfinol I've made sure to check my test assemblies .asmdef and also checked my logs and no reference to unloaded references, the project I work on is open source much like this one so you can take a look at the action https://github.com/ChainSafe/web3.unity/actions/runs/6130712963/job/16640060573, it's a package test runner, am I doing anything wrong?

from unity-test-runner.

robGG1997 avatar robGG1997 commented on August 22, 2024

@davidmfinol I've made sure to check my test assemblies .asmdef and also checked my logs and no reference to unloaded references, the project I work on is open source much like this one so you can take a look at the action https://github.com/ChainSafe/web3.unity/actions/runs/6130712963/job/16640060573, it's a package test runner, am I doing anything wrong?

The tests directory is https://github.com/ChainSafe/web3.unity/tree/rob/automated-unity-tests-603/src/UnityPackages/io.chainsafe.web3-unity/Tests/Runtime runs and passes locally in the UnitySampleProject

from unity-test-runner.

davidmfinol avatar davidmfinol commented on August 22, 2024

Following up on discord: https://discord.com/channels/710946343828455455/1150042726595821688

from unity-test-runner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.