Replies: 3 comments 4 replies
-
@mattbnz you should be able to run the tests locally without fault. all tests get run on every merge of code, and we get notified of any failure due to regression or bug or whatever.
My dev setup is under docker on windows 10. Not sure what @matmair runs. We both regularly run tests locally and I have not seen such an issue. |
Beta Was this translation helpful? Give feedback.
-
I've included the list of tests I'm seeing failing below. I'm on Ubuntu 22.04, running Inventree as a local user (separate from my normal account) in a virtualenv, basicaly following the Bare Metal setup at https://inventree.readthedocs.io/en/latest/start/install/, but then also seeing the same behaviour in GitPod which I was using to try and rule out any issues in my local setup. No changes, I'm doing a fresh clone from github, adding a config file, and then running invoke update, invoke superuser and then invoke coverage. Failing tests
I will dig further on my end. Thanks for confirming the expectation is they should all pass. |
Beta Was this translation helpful? Give feedback.
-
I'm using a sqlite DB, config snippet:
Running from the repo root doesn't seem to change anything.
I've got some time scheduled tomorrow morning to dig into this - thanks for the hint/pointer about the plugins. |
Beta Was this translation helpful? Give feedback.
-
Is there any special trick to getting the tests passing cleanly?
I can see that the CI helpers seem to be running (at least a subset of) the tests cleanly under the coverage target listed at https://github.com/inventree/InvenTree/blob/master/.github/workflows/qc_checks.yaml#L175, but trying to run the same either locally or in a fresh/clean GitPod environment results in 17-20 failing test cases for me, and from a quick skim at the failures there's no obvious issue I can pick up...
Am I missing anythign about how the tests are meant to work?
Here's one example failure locally:
and same in a fresh GitPod environment:
It really feels like this test (and the others) are just broken - but then https://github.com/inventree/InvenTree/runs/7741210093?check_suite_focus=true seems to be an example of them passing fine in QC...
So I must be missing something, but what?
Beta Was this translation helpful? Give feedback.
All reactions