项目作者: getgauge

项目描述 :
Python language runner for Gauge
高级语言: Python
项目地址: git://github.com/getgauge/gauge-python.git
创建时间: 2016-02-06T08:16:28Z
项目社区:https://github.com/getgauge/gauge-python

开源协议:MIT License

下载


Gauge-Python

Actions Status
Contributor Covenant

This project adds Python language plugin for gauge.

Getting started

Pre-requisite

Installation

  1. gauge install python

Create a gauge-python project

  1. gauge init python

Run tests

  1. gauge run specs

Alternate Installation options

Install specific version

  1. gauge install python -v 0.2.3
  2. [pip / pip3] install getgauge

Offline installation

  • Download the plugin from Releases
    1. gauge install python --file gauge-python-0.2.3.zip
    2. [pip / pip3] install getgauge

Build from Source

Pre-Requisites
Installing package dependencies
  1. pip install -r requirements.txt
Tests
  1. python build.py --test
Tests Coverage
  1. python build.py --test
  2. coverage report -m
Installing
  1. python build.py --install
Creating distributable
  1. python build.py --dist

This will create a .zip file in bin directory and a .tar.gz file in dist directory.

Deployment

Only contributors with push access can create a deployment.

The deployment process is managed via Github Actions.

Follow these steps to deploy gauge-python.

  • Create a Personal Access Token in Github with repo:public_repo scope (skip this step if you already have a PAT).
  • Run GITHUB_TOKEN={Your token} sh release.sh in gauge-python dir. This will trigger a deployment workflow on Github Actions. This workflow creates a release draft with all required assets and information.
  • Visit to the release draft, analyze and update the contents (remove unnecessary entries, mention Contributors, remove dependabot PR entries).
  • Publish the draft release.
  • Once the draft is published it will trigger another workflow on Github Actions, which will perform all the Post release tasks, In case of gauge-python it will upload the getgauge python packge to PyPi.
  • Once it’s done please update the new release information in gauge-repository
  • That’s it. Now the release can be announced on the required community platforms (chat, google group etc.)

Examples

  • Selenium: This project serves as an example for writing automation using Gauge. It uses selenium and various Gauge/Gauge-Python features. For more details, Check out the gauge-example-python repository.

  • Selenium and REST API: This project shows an example of how to setup Gauge, Gauge Python and Magento to test REST API. For more details, Check out the blog or gauge-magento-test repository.

License

The Gauge-Python is an open-sourced software licensed under the MIT license.

Copyright 2018 ThoughtWorks, Inc.