Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests break downstream package dependencies #1182

Closed
StephenHodgson opened this issue Feb 27, 2022 · 9 comments
Closed

Unit tests break downstream package dependencies #1182

StephenHodgson opened this issue Feb 27, 2022 · 9 comments

Comments

@StephenHodgson
Copy link
Contributor

  • unit tests show up in downstream dependencies tests , which causes them to fail. Unit tests should be explicitly referenced instead to prevent this.
@Ultraleap-Dan
Copy link
Collaborator

Thank you for reporting this, this will be added to our engineering backlog to be worked on.

@Craig-J
Copy link
Contributor

Craig-J commented Apr 6, 2022

Can you provide more detail about this? The documentation isn't very clear about explicit referencing. Would turning off "Auto Referenced" be enough to fix the issue?

It seems that tests show up automatically for embedded dependencies (i.e. those directly put into the Packages folder). If you're consuming the package that way there doesn't seem to be a way to disable the tests as far as I can see. I tested turning off "Auto Referenced" with a local package and it doesn't include them in the test runner.

@StephenHodgson
Copy link
Contributor Author

@Craig-J I made the changes to fix in a PR that was never merged. You're more than welcome to take a look: #1173

@StephenHodgson
Copy link
Contributor Author

If you'd like I can rework it in a clean branch and submit a new PR

@StephenHodgson
Copy link
Contributor Author

Would turning off "Auto Referenced" be enough to fix the issue?

I believe you're also missing some explicit references to nunit.framework.dll and constraints for UNITY_INCLUDE_TESTS

Some of the test fixture attribute declarations are also broken.

@Craig-J
Copy link
Contributor

Craig-J commented Apr 6, 2022

Ah I remember this branch but it seems to never had made it to develop. I'll see about getting it sorted for the next release.

It also mentions about an event in PointerElement - looking at the history it seems that event has never been invoked at any point and it's not obvious what it's meaning is so I'll remove it since breaking changes are allowed in the preview package.

No need to remake another PR I'll handle this from what was on the other PR.

@StephenHodgson
Copy link
Contributor Author

Thanks 🙏

@Craig-J
Copy link
Contributor

Craig-J commented Apr 13, 2022

MR missed the testing cutoff for this sprints release but will be included in the next. We currently aim to release every sprint (2 weeks) and the current one ends today.

@Craig-J
Copy link
Contributor

Craig-J commented May 4, 2022

Fixed in 5.8.0 .

@Craig-J Craig-J closed this as completed May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants