From f32534a60309bc312ba24f2b37582dbab996662a Mon Sep 17 00:00:00 2001
From: albilu <35330562+albilu@users.noreply.github.com>
Date: Mon, 3 Jun 2024 11:20:46 +0200
Subject: [PATCH] Test Properties panel UI Improvment Readme update
---
README.md | 71 ++++++++++++-------
.../projectproperties/PythonTestPanel.form | 6 +-
.../projectproperties/PythonTestPanel.java | 6 +-
3 files changed, 50 insertions(+), 33 deletions(-)
diff --git a/README.md b/README.md
index 5661307..b32ff3f 100644
--- a/README.md
+++ b/README.md
@@ -7,13 +7,20 @@
Follow the [Wiki Session](https://github.com/albilu/netbeansPython/wiki) (WIP) for the full `user guide`
### Requirements
+
[![](https://img.shields.io/badge/Python-3.7+-green)]() [![](https://img.shields.io/badge/JDK-11+-green)]() [![](https://img.shields.io/badge/Netbeans-13+-green)]()
### Installation
-- Install from Netbeans \
- `Tools -> Plugins -> Available Plugins -> Install`
-- Or Download the latest [release](https://github.com/albilu/netbeansPython/releases) and install in Netbeans: \
- `Tools -> Plugins -> Downloaded -> Add Plugins -> Install`
+
+- Install from Netbeans \
+ `Tools -> Plugins -> Available Plugins -> Install`
+
+ - If Plugin not available, register the repository
+ `Tools -> Plugins -> Settings -> Add`
+ https://raw.githubusercontent.com/albilu/netbeansPython/master/ppuc/{Netbeans version}/updates.xml
+
+- Or Download the latest [release](https://github.com/albilu/netbeansPython/releases) and install in Netbeans: \
+ `Tools -> Plugins -> Downloaded -> Add Plugins -> Install`
### Bugs
@@ -29,52 +36,62 @@ The project is driven by the need to bring to Netbeans similar support for Pytho
### Support/Contribute/Sponsor
Support this project growth and maintenance by:
-- Starring it [![](https://img.shields.io/github/stars/albilu/netbeansPython)]()
-- Submiting [PR](https://github.com/albilu/netbeansPython/pulls) for issues in the backlog
-- [Sponsoring it](https://github.com/sponsors/albilu)
+
+- Starring it [![](https://img.shields.io/github/stars/albilu/netbeansPython)]()
+- Submiting [PR](https://github.com/albilu/netbeansPython/pulls) for issues in the backlog
+- [Sponsoring it](https://github.com/sponsors/albilu)
### Related Projects
This is a non exhaustive list of some outstanding projects this module rely on:
-- [python-lsp-server](https://github.com/python-lsp/python-lsp-server): Python Language Server *by Spyder IDE Community*
-- [pty4j](https://github.com/JetBrains/pty4j): Java implementation of PTY *by JetBrains*
-- [pynguin](https://github.com/se2p/pynguin): Python Unit Test Generator
+
+- [python-lsp-server](https://github.com/python-lsp/python-lsp-server): Python Language Server _by Spyder IDE Community_
+- [pty4j](https://github.com/JetBrains/pty4j): Java implementation of PTY _by JetBrains_
+- [pynguin](https://github.com/se2p/pynguin): Python Unit Test Generator
## Main Features
+
### Project Management
-- Simple Python project type creation (with `venv/virtualenv`)
-- Import projects from Sources
-- Simple [Poetry](https://python-poetry.org/) project creation (common `poetry` commands supported)
-- Run/Build projects
+
+- Simple Python project type creation (with `venv/virtualenv`)
+- Import projects from Sources
+- Simple [Poetry](https://python-poetry.org/) project creation (common `poetry` commands supported)
+- Run/Build projects
![f9b73732e9534000af91eb4e9bf11208.png](_resources/f9b73732e9534000af91eb4e9bf11208.png)
### LSP Server Features
-- [See list of features supported](https://github.com/python-lsp/python-lsp-server#lsp-server-features)
+
+- [See list of features supported](https://github.com/python-lsp/python-lsp-server#lsp-server-features)
![d242d82a04c729be7c6e6b0b84759c2f.png](_resources/d242d82a04c729be7c6e6b0b84759c2f.png)
-- [LSP Configurations](https://github.com/python-lsp/python-lsp-server#configuration) available in Netbeans via: \
- `Tools -> Python Platforms -> Lsp Server`
+- [LSP Configurations](https://github.com/python-lsp/python-lsp-server#configuration) available in Netbeans via: \
+ `Tools -> Python Platforms -> Lsp Server`
![f4ecdf1c9e7648113e8dd265b277366a.png](_resources/f4ecdf1c9e7648113e8dd265b277366a.png)
### Python Interpreters Management
-- Multiple Python Interpreters Management including [venv](https://docs.python.org/3/library/venv.html#venv-def) and `virtualenv`
+
+- Multiple Python Interpreters Management including [venv](https://docs.python.org/3/library/venv.html#venv-def) and `virtualenv`
![cad96c97900764698d62caf7d6bf49b4.png](_resources/cad96c97900764698d62caf7d6bf49b4.png)
### Packages Management
-- Manage Python Packages (Install/Delete) via [Pypi](https://pypi.org/) or personal Repositories \
- `Windows -> Python Package Manager`
+
+- Manage Python Packages (Install/Delete) via [Pypi](https://pypi.org/) or personal Repositories \
+ `Windows -> Python Package Manager`
![74a5dd8877b9608931b49604ab59440d.png](_resources/74a5dd8877b9608931b49604ab59440d.png)
### Python REPL
-- [IPython](https://github.com/ipython/ipython) and [PTPython](https://github.com/prompt-toolkit/ptpython) integrated as Interactive Shells (with autocompletion) \
- `Windows -> Interactive Python Interpreters -> IPython`
+
+- [IPython](https://github.com/ipython/ipython) and [PTPython](https://github.com/prompt-toolkit/ptpython) integrated as Interactive Shells (with autocompletion) \
+ `Windows -> Interactive Python Interpreters -> IPython`
![b18df5a8d44631819affe75ecd6fab61.png](_resources/b18df5a8d44631819affe75ecd6fab61.png)
### Unittest/Test Coverage
-- [Unittest](https://docs.python.org/3/library/unittest.html)/code [coverage](https://coverage.readthedocs.io/en/7.2.2/#) suportted
-- Create/Generate unit tests
-- Go to test/tested class
+
+- [Unittest](https://docs.python.org/3/library/unittest.html)/code [coverage](https://coverage.readthedocs.io/en/7.2.2/#) suportted
+- Create/Generate unit tests
+- Go to test/tested class
![ebaed2b72b503dec7733d6698f3a0a72.png](_resources/ebaed2b72b503dec7733d6698f3a0a72.png)
### Debugger
-- Lite Python Debugger relying on the Python internal debugger [PDB](https://docs.python.org/3/library/pdb.html) (breakpoints/callstack/variable inspection) supported
- ![74a5dd8877b9608931b49604ab59555d.png](_resources/74a5dd8877b9608931b49604ab59555d.png)
+
+- Lite Python Debugger relying on the Python internal debugger [PDB](https://docs.python.org/3/library/pdb.html) (breakpoints/callstack/variable inspection) supported
+ ![74a5dd8877b9608931b49604ab59555d.png](_resources/74a5dd8877b9608931b49604ab59555d.png)
diff --git a/src/main/java/org/netbeans/modules/python/projectproperties/PythonTestPanel.form b/src/main/java/org/netbeans/modules/python/projectproperties/PythonTestPanel.form
index 20e0289..68e98d7 100644
--- a/src/main/java/org/netbeans/modules/python/projectproperties/PythonTestPanel.form
+++ b/src/main/java/org/netbeans/modules/python/projectproperties/PythonTestPanel.form
@@ -57,11 +57,11 @@
-
+
-
+
-
+
diff --git a/src/main/java/org/netbeans/modules/python/projectproperties/PythonTestPanel.java b/src/main/java/org/netbeans/modules/python/projectproperties/PythonTestPanel.java
index 7b780c1..1c853b7 100644
--- a/src/main/java/org/netbeans/modules/python/projectproperties/PythonTestPanel.java
+++ b/src/main/java/org/netbeans/modules/python/projectproperties/PythonTestPanel.java
@@ -109,11 +109,11 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addComponent(testGeneratorLabel)
.addComponent(testGeneratorParamsLabel)
.addComponent(testGeneratorDirLabel))
- .addGap(18, 18, 18)
+ .addGap(25, 25, 25)
.addGroup(testGeneratorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(testGeneratorParamsTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 378, Short.MAX_VALUE)
+ .addComponent(testGeneratorParamsTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
.addGroup(testGeneratorPanelLayout.createSequentialGroup()
- .addComponent(testGeneratorDirTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 294, Short.MAX_VALUE)
+ .addComponent(testGeneratorDirTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(testGeneratorDirButton))
.addComponent(testGeneratorComboBox, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))