Giter Club home page Giter Club logo

apamacommunity / pysys-vscode-extension Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 4.0 9.61 MB

This is a vscode extension for the pysys framwork it enables the use of this testing framework in Visual Studio Code allowing the use of the UI to interact with and create tests for your software projects..

Home Page: https://cariboujohn.github.io/pysys-vscode-extension/

TypeScript 96.64% JavaScript 3.36%
vscode-extension pysys-framework python tool apama cumulocity

pysys-vscode-extension's People

Contributors

ben-spiller avatar cariboujohn avatar dependabot[bot] avatar sag-tgo avatar yoav11 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

pysys-vscode-extension's Issues

Add an extra command to show tests available and more detail on a single test

From within a PySys project there is the option to run

python -m pysys print

image

In fact this can be done at various levels within the project to narrow down the output

image

We should add a right click menu option to run this command on all nodes of the tree (root/directory...)

We could add an info option to the test its self so an "info" icon - provides the output for that test alone:

image

Enhance Individual Test running

add 2 hard coded options to the right click menu

  • validate only
  • run debug

Additionally and to add further flexibility we should allow custom runs for individual tests to allow arbitrary args to be passed on the run of a single test.

This will add extra tasks to the tasks.json but will allow the most flexibility.

Add settings for PYTHONPATH and python executable

To help the user we should allow them to override the default python on the path with their own choice.
This should be explicitly overridden not set by default.

Setting name Description
pysys-test.python Path to python executable to use
pysys-test.pythonpath PYTHON_PATH that will be appended to the environment variable currently set

These settings will replace the default command used when invoking commands. Where we currently use

python -m pysys

If the python executable is set to be

/mypath/bin/python or c:\myWindowsPath\bin\python.exe we should use these

/mypath/bin/python -m pysys ...

Add ignore patterns to file system searches/watchers

When we build the list of directories to show/traverse/watch we should

  • Ignore directories containing pysysignore or .pysysignore
  • any directory starting with __

filesystem watchers have the ability to add extra regexes for things to omit from the results, if we are searching using other methods (I think we are) then we will need to code some logic to skip these

Inform User of requirements if missing.

  • New to re-add the check for Python on the path and PySys - if they are missing then show message
  • The output window should show python path (which python or windows equivilent) and the versions that will be used by the extension
  • Possibly add a text node to the PySys project view to indicate missing dependencies

Python interpreter should check for python2/python3 runner syntax

When the extesion starts it should check for the variations on python that might allow it to work:

  • default = python -m pysys
  • python3 -m pysys
  • py -3 -m pysys
  • others?

If none work we need to produce output/popup saying why and that the user should install python and or pysys - possibly giving links/ commands (python -m pip install pysys)

Note pysys 1.6 has a dependency on python 3.7+

So additionally we might want to consider on a version of python less than that suggesting upgrade to 3.7/pysys 1.6

Python version parsing might be broken

The Python installation detection in getPysysInterpreter() is looking for ersion in the output from the -V option to the Python interpreter. However, all the Python interpreters I have available produce output of the form Python x.y.z, e.g.

scott@orac:~/Projects$ python3 -V
Python 3.7.4
scott@orac:~/Projects$ python2 -V
Python 2.7.17

This is on WSL2 Ubuntu 18.04 and Raspberry Pi OS December 2020, using Pythons from the standard repos, so I don't think there is anything weird going on in my environment. I've opened PR #21 to (maybe) fix this and a related issue I found while trying to debug the first one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.