No project description provided
Project description
This repository contains source code for the command line toolkit for maintaining Flash-X testing infrastructure. Most of the documentation for usage can be accessed using the --help option after successful installation of the application. The documentation here provides instructions for installation and a guide for developers who wish to contribute to the functionality of the toolkit.
FlashXTest is a user-friendly wrapper over the legacy FlashTest and FlashTestView applications that have been used before for managing regular testing during development of FLASH and Flash-X.
Note that Flash-X-Test depends on Python3+, and consequently pip should point to Python3+ installation package pip3.
Installation
Stable releases of Flash-X-Test are available as tags attached to this repository (https://github.com/Flash-X/Flash-X-Test/tags) and can be installed by executing,
pip install git+ssh://git@github.com/Flash-X/Flash-X-Test.git@<tag> --user
Upgrading and uninstallation is easily managed through this interface using,
pip install --upgrade git+ssh://git@github.com/Flash-X/Flash-X-Test.git@<tag> --user
pip uninstall FlashXTest
It is recommended to install in --user mode to avoid root privilege issues with pip.
To get the latest bleeding-edge updates you can replace <tag> with main.
FlashXTest provides both Command Line Interface (CLI) and Python Application Programming Interface (API). The CLI script, flashxtest, is copied to the $HOME/.local/bin directory, and therefore the PATH variable should be updated to allow running flashxtest as a shell command.
The Python API can be accessed directly without any PATH modifications by simply importing the module as,
import FlashXTest
The CLI is a mirror of the Python API, and therefore commands and functionality are exactly similar between the two. This provides users a choice to either use CLI interactively or integrate with other Python workflows using the API.
Developer Guide
There maybe situations where users may want to install FlashXTest in development mode $\textemdash$ to design new features, debug, or customize classes/methods to their needs. This can be easily accomplished using the setup script located in the project root directory and executing,
./setup develop
Development mode enables testing of features/updates directly from the source code and is an effective method for debugging. Note that the setup script relies on click, which can be installed using,
pip install click
The ./setup script should be run in the project root directory. It mimics the pip installation but creates egg-link to project root directory to allow for code development and debugging.
Please read DESIGN.rst to understand software design logic before contributing to the code
Usage
Once FlashXTest is configured using the installation instructions, the CLI documentation can be accessed using,
flashxtest --help
For documentation for individual commands use following,
flashxtest <command> --help
Version of the current installation can be infered with,
flashxtest --version
An example of a test suite is provided under FlashXTest/example please refer to the instructions there to understand how to setup a test suite.
Help & Support
Please file an issue on the repository page
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file FlashXTest-2023.11.tar.gz
.
File metadata
- Download URL: FlashXTest-2023.11.tar.gz
- Upload date:
- Size: 148.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4357aadd7173bc21063aa22d40320571f5ab23df9c8b9a3e07c555ea5552ed6 |
|
MD5 | ec123030e4a8b54f3cda71706cae2f6b |
|
BLAKE2b-256 | 1af92eb0b81a179ce4b7779035c64b1651237d5332c9739604e463cb7a2d9d16 |