profile
viewpoint

pchomik/pytest-spec 50

pytest plugin to display test execution output like a SPECIFICATION

pchomik/linter-python 14

Atom plugin to lint python files

pchomik/gitlab-ci-dashboard 1

Dashboard for monitoring GitLab CI builds and pipelines for TV

pchomik/gitrc 1

A bunch of shell scripts and files dedicated to my use of Git

pchomik/angular2-seed 0

Modular starter (seed) project for Angular 2 apps with fast, statically typed build

pchomik/angular2-starter 0

:star: Extensible Angular 2 Starter using TypeScript (Updated to 2.0.0-rc.6!)

pchomik/angular2-webpack 0

A complete, yet simple, starter for Angular 2 using webpack

pchomik/angular2-webpack-starter 0

:tada: An Angular 2 Starter kit featuring Angular 2 (Router, Http, Forms, Services, Tests, E2E, Dev/Prod, HMR, Async/Lazy Routes), Material Design, Karma, Protractor, Jasmine, Istanbul, TypeScript 2, TsLint, Codelyzer, Hot Module Replacement, @types, and Webpack 2 by @AngularClass

pchomik/atomlinter.github.io 0

A proper webpage for AtomLinter.

pchomik/autocomplete-python 0

Jedi based Python autocomplete for Atom

pull request commentpchomik/pytest-spec

Fix Python 3.8 SyntaxWarning

Yes. I will do that tomorrow. @jayvdb thank you for fix.

jayvdb

comment created time in 17 days

issue commentkondratyev-nv/vscode-python-test-adapter

Test discovery failing from 0.3.5

@kondratyev-nv the configuration python.testing.cwd was a problem. I found that I set this value as global and for workspace. Everything is working after removing this value.

In general all my packages have structure as follow:

package_name (root)
    package_name (as source)
    test (contains tests)
    setup.py

I think I set value to test to eliminate entries from source code (because linters are enabled). Is it possible to support which python.testing.cwd path as relative to the project?

pchomik

comment created time in 2 months

issue closedkondratyev-nv/vscode-python-test-adapter

Test discovery failing from 0.3.5

Hello,

I back to your adapter and I discovered that plugin is not working for me. Last working version is 0.3.4.

Environment

Package                       Version
----------------------------- -----------
atomicwrites                  1.4.0
attrs                         19.3.0
backports.functools-lru-cache 1.6.1
configparser                  4.0.2
contextlib2                   0.6.0.post1
funcsigs                      1.0.2
importlib-metadata            1.6.1
more-itertools                5.0.0
packaging                     20.4
pathlib2                      2.3.5
pip                           20.1
pluggy                        0.13.1
py                            1.8.1
pyparsing                     2.4.7
pytest                        4.6.11
pytest-describe               1.0.0
scandir                       1.10.0
setuptools                    44.1.0
six                           1.15.0
wcwidth                       0.2.4
wheel                         0.34.2
zipp                          1.2.0

PyEnv

  • pyenv 1.2.18

Test 1

def test_false():
    assert True is False

Test 2

def describe_test_fail():
    def it_test_fail():
        assert True is False

Output from working version 0.3.4

2020-06-08T05:41:25.143Z info at 'test' [unittest runner]: Reading configuration for workspace test
2020-06-08T05:41:25.148Z info at 'test' [unittest runner]: Unittest test discovery is disabled
2020-06-08T05:41:25.148Z info at 'test' [pytest runner]: Reading configuration for workspace test
2020-06-08T05:41:25.153Z info at 'test' [pytest runner]: Environment variables file /home/chomicki/Repos/github/test/.env does not exist
2020-06-08T05:41:25.154Z info at 'test' [pytest runner]: Discovering tests using python path 'python' in /home/chomicki/Repos/github/test

Output from not working latest version

2020-06-08T05:42:24.103Z info at 'test' [unittest runner]: Reading configuration for workspace test
2020-06-08T05:42:24.105Z info at 'test' [unittest runner]: Unittest test discovery is disabled
2020-06-08T05:42:24.105Z info at 'test' [pytest runner]: Reading configuration for workspace test
2020-06-08T05:42:24.217Z info at 'test' [pytest runner]: Environment variables file /home/test/Repos/github/test/.env does not exist
2020-06-08T05:42:24.218Z info at 'test' [pytest runner]: Discovering tests using python path '/home/test/.pyenv/versions/testvscode/bin/python' in test
2020-06-08T05:42:24.218Z info at 'test' [pytest runner]: Running pytest wrapper with arguments: --collect-only
2020-06-08T05:42:24.237Z crit at 'test' [pytest runner]: Test loading failed: Error occurred during process execution: Error: spawn /home/test/.pyenv/versions/testvscode/bin/python ENOENT

Python settings in vscode

{
    "python.pythonPath": "/home/test/.pyenv/versions/testvscode/bin/python"
}

I checked the script embedded in the plugin and it is working if executed from separate file. I added some logging to plugin but looks like script is not executed at all because I don't see any debug logs (I wrote them into file). I'm on Manjaro latest version and I'm using zsh shell.

Thank you in advance for support. Pawel

closed time in 2 months

pchomik

issue commentkondratyev-nv/vscode-python-test-adapter

Test discovery failing from 0.3.5

With fresh copy of vscode the latest version is working. I need to review my configuration and find wrong configuration.

I double checked with virtualenv and pyenv and the plugin is working.

Thank you for support.

pchomik

comment created time in 2 months

issue commentkondratyev-nv/vscode-python-test-adapter

Test discovery failing from 0.3.5

The path is correct because if working manually and is working with 0.3.4 version.

I have a lot of values set globally. I will re-test with fresh vscode configuration.

pchomik

comment created time in 2 months

issue commentkondratyev-nv/vscode-python-test-adapter

Test discovery failing from 0.3.5

Hello,

I changed my setup to pure virtualenv. I created virtualenv in the project in venv directory. Now my settings looks as follow:

.vscode/settings.json

{
    "python.pythonPath": "/home/chomicki/Repos/github/test/venv/bin/python"
}

output from0.3.4

2020-06-09T05:34:19.433Z info at 'test' [unittest runner]: Reading configuration for workspace test
2020-06-09T05:34:19.435Z info at 'test' [unittest runner]: Unittest test discovery is disabled
2020-06-09T05:34:19.436Z info at 'test' [pytest runner]: Reading configuration for workspace test
2020-06-09T05:34:19.442Z info at 'test' [pytest runner]: Environment variables file /home/user/Repos/github/test/.env does not exist
2020-06-09T05:34:19.443Z info at 'test' [pytest runner]: Discovering tests using python path '/home/user/Repos/github/test/venv/bin/python' in /home/chomicki/Repos/github/test

output from 0.4.2

2020-06-09T05:35:59.049Z info at 'test' [unittest runner]: Reading configuration for workspace test
2020-06-09T05:35:59.050Z info at 'test' [unittest runner]: Unittest test discovery is disabled
2020-06-09T05:35:59.051Z info at 'test' [pytest runner]: Reading configuration for workspace test
2020-06-09T05:35:59.156Z info at 'test' [pytest runner]: Environment variables file /home/user/Repos/github/test/.env does not exist
2020-06-09T05:35:59.156Z info at 'test' [pytest runner]: Discovering tests using python path '/home/user/Repos/github/test/venv/bin/python' in test
2020-06-09T05:35:59.157Z info at 'test' [pytest runner]: Running pytest wrapper with arguments: --collect-only
2020-06-09T05:35:59.180Z crit at 'test' [pytest runner]: Test loading failed: Error occurred during process execution: Error: spawn /home/user/Repos/github/test/venv/bin/python ENOENT

I have same result. Version 0.3.4 is working. Version 0.4.2 not.

This issue is not about pytest-describe. I have to tests: one with test function, one with describe functions. I put both examples to have full view where is the issue.

pchomik

comment created time in 2 months

issue openedkondratyev-nv/vscode-python-test-adapter

Test discovery failing from 0.3.5

Hello,

I back to your adapter and I discovered that plugin is not working for me. Last working version is 0.3.4.

Environment

Package                       Version
----------------------------- -----------
atomicwrites                  1.4.0
attrs                         19.3.0
backports.functools-lru-cache 1.6.1
configparser                  4.0.2
contextlib2                   0.6.0.post1
funcsigs                      1.0.2
importlib-metadata            1.6.1
more-itertools                5.0.0
packaging                     20.4
pathlib2                      2.3.5
pip                           20.1
pluggy                        0.13.1
py                            1.8.1
pyparsing                     2.4.7
pytest                        4.6.11
pytest-describe               1.0.0
scandir                       1.10.0
setuptools                    44.1.0
six                           1.15.0
wcwidth                       0.2.4
wheel                         0.34.2
zipp                          1.2.0

PyEnv

  • pyenv 1.2.18

Test 1

def test_false():
    assert True is False

Test 2

def describe_test_fail():
    def it_test_fail():
        assert True is False

Output from working version 0.3.4

2020-06-08T05:41:25.143Z info at 'test' [unittest runner]: Reading configuration for workspace test
2020-06-08T05:41:25.148Z info at 'test' [unittest runner]: Unittest test discovery is disabled
2020-06-08T05:41:25.148Z info at 'test' [pytest runner]: Reading configuration for workspace test
2020-06-08T05:41:25.153Z info at 'test' [pytest runner]: Environment variables file /home/chomicki/Repos/github/test/.env does not exist
2020-06-08T05:41:25.154Z info at 'test' [pytest runner]: Discovering tests using python path 'python' in /home/chomicki/Repos/github/test

Output from not working latest version

2020-06-08T05:42:24.103Z info at 'test' [unittest runner]: Reading configuration for workspace test
2020-06-08T05:42:24.105Z info at 'test' [unittest runner]: Unittest test discovery is disabled
2020-06-08T05:42:24.105Z info at 'test' [pytest runner]: Reading configuration for workspace test
2020-06-08T05:42:24.217Z info at 'test' [pytest runner]: Environment variables file /home/test/Repos/github/test/.env does not exist
2020-06-08T05:42:24.218Z info at 'test' [pytest runner]: Discovering tests using python path '/home/test/.pyenv/versions/testvscode/bin/python' in test
2020-06-08T05:42:24.218Z info at 'test' [pytest runner]: Running pytest wrapper with arguments: --collect-only
2020-06-08T05:42:24.237Z crit at 'test' [pytest runner]: Test loading failed: Error occurred during process execution: Error: spawn /home/test/.pyenv/versions/testvscode/bin/python ENOENT

Python settings in vscode

{
    "python.pythonPath": "/home/test/.pyenv/versions/testvscode/bin/python"
}

I checked the script embedded in the plugin and it is working if executed from separate file. I added some logging to plugin but looks like script is not executed at all because I don't see any debug logs (I wrote them into file). I'm on Manjaro latest version and I'm using zsh shell.

Thank you in advance for support. Pawel

created time in 2 months

more