Comments (9)
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.
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.
gameci/[email protected]
.
We don't have 2.0.
Did you mean gameci/unity-test-runner@v2
?
from unity-test-runner.
@davidmfinol yes that's the one I meant, tests are not working with that particular version.
from unity-test-runner.
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.
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.
@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.
@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.
Following up on discord: https://discord.com/channels/710946343828455455/1150042726595821688
from unity-test-runner.
Related Issues (20)
- Action freezes when Unity Test Framework is not imported to project
- Check Run Appears Under Wrong Workflow Run When Test Runner is Run Twice on the Same Commit
- Package Testing Hangs if Package Being Tested is the Root Directory of the Repository HOT 2
- Feature: Support Windows Runners for Package Testing
- Feature: Support Package Testing for Packages with Dependencies Outside of the Unity Registry HOT 1
- Feature: Add Caching for Package Testing
- Feature: Allow `unityVersion` of `auto` for Package Testing
- Code Coverage does not write any output anywhere HOT 2
- Unity no longer supports manual activation of Personal licenses HOT 2
- Create breaking change that updates rolling version number from 1 to 2
- Inconsistent licence activation HOT 7
- Reasource not Available by Integration HOT 5
- 'Unclassified error occured while trying to activate license.' HOT 9
- cannot access '/github/workspace/CodeCoverage': No such file or directory HOT 5
- v4.1.0 causing activation to fail when using manual offline activation HOT 5
- fullProjectPath is not set when using runAsHostUser
- packageMode workflow doesn't run playmode tests HOT 2
- chmod: cannot access '/github/workspace/CodeCoverage' HOT 1
- Licensing fails inconsistently during test step HOT 1
- Feature: Add support for Nuget dependency resolution when testing packages HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unity-test-runner.