-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Error while running tests: TypeError: Cannot read property 'testsuites' of null #18407
Comments
In output python - I see that it is calling
Ultimately - I don't quite understand why it's emitting the folder to search the tests in. |
tmp-69895toGxmaN6Q10d.xml.please_remove_extension.zip ^^ it has troubles with this XML file (actual XML file and not zip - just rename) |
Hi @wkerzendorf, thank you for reaching out. What is the content of your
Where is that output from? Do you also have a minimal example I could use to try and replicate the issue? |
I also have some questions about the settings. There are user setting which are presumable stored somewhere in the home dir. Then there are workspace setting which are stored in the given file. Then there are folder settings for multiroot workspaces - I don't see where they are stored. |
"python.testing.pytestArgs": [
"--tardis-refdata=/Users/wkerzend/python/tardis-refdata",
"--no-cov",
"tardis"
],
"python.testing.pytestEnabled": true,
"python.testing.cwd": "/Users/wkerzend/python/tardis", |
They are stored in the If you don't have a minimal example I could use to try and replicate the issue, could you paste here the entirety of the output in the Python output when you try running the tests? Thanks! |
We are the tardis code at github.com/tardis-sn/tardis. In there is a tardis_env3.yml that contains the environment (as a conda environment).
|
What is shown in the terminal if you run |
excerpt
I piped it into the tmp.zip (not a real zip 😉 ) |
@kimadeline let me know if I can help more |
I cloned the repos at https://github.com/tardis-sn/tardis and https://github.com/tardis-sn/tardis-refdata to try and pinpoint the issue. I did not get the It is done on this line:
Where we remove certain types of arguments (you can see the function that does it here). Long story short, if you update your code to use something like Let me know if this workaround works for now. |
I will work on this in the next days as I just migrated laptops and need to finish a proposal 😄 |
[ERROR 2022-1-10 18:28:53.524]: Error discovering pytest tests:
[r [Error]: ERROR: usage: run_adapter.py [options] [file_or_dir] [file_or_dir] [...]
run_adapter.py: error: unrecognized arguments: --tardis-refdata=/Users/wkerzend/python/tardis-refdata --dir=tardis
inifile: /Users/wkerzend/python/tardis/setup.cfg
rootdir: /Users/wkerzend/python/tardis @kimadeline it doesn't like it for the run_adapter script |
seems to be a known problem : #11736 |
Hi there, sorry for the delay! Is the |
uhm - haven't checked in a while. |
Is the issue still happening? Or did you find a workaround? |
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off. |
Issue Type: Bug
Behaviour
I've read through the various issues but am seeing the given problem again that when looking at the consoles - the discovery works
Running test with arguments: --rootdir /Users/wkerzend/python/tardis --override-ini junit_family=xunit1 --junit-xml=/var/folders/d8/0jgrxkjs4yj6qpzvv22rdtsr0000gn/T/tmp-65044gldRayuo7omi.xml --tardis-refdata=/Users/wkerzend/python/tardis-refdata
but then
Expected vs. Actual Behaviour
I'm trying to get the xml files to look at them with an editor.
Steps to reproduce:
Getting tests setup for the open source project github.com/tardis-sn/tardis
Diagnostic data
python.languageServer
setting: PylanceUser Settings
Extension version: 2021.12.1559732655
VS Code version: Code 1.63.2 (899d46d82c4c95423fb7e10e68eba52050e30ba3, 2021-12-15T09:37:28.172Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No
System Info
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: