Skip to main content

A lightweight testing tool with test report functionality

Project description

xayah

A lightweight testing tool with test report functionality

Table of contents

General info

Xayah is used to test and generate report for python application.

test suite example:

@TestSuite.init
class CheckTestCase:
    @TestCase.title('test case description')
    @TestCase.description('check whether title and description been added to test case')
    def test_test_case(self):
        with Step('check three'):
            assert 3 == 3
        with Step('check four'):
            assert 4 == 3, 'goodbye'

Installation

Xayah is available on PyPI:

python -m pip install xayah

Features

  • adding title, description, severity levels, etc.
  • test parametrization
  • steps
  • skipping tests
  • generating test report

Usage

In order to generate report, the test class should be decorated with TestSuite.init method:

@TestSuite.init
class CheckTestCase:
    def test_method(self):
        assert 1 == 1

then all test method (with test prefix) of the tested class can be executed by calling run_test_cases method:

CheckTestCase.run_test_cases()

in order to created test result TestResult().create_test_result() method should be called:

result = TestResult().create_test_result()

then test result can be parsed in any format

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xayah-0.0.5.tar.gz (8.6 kB view hashes)

Uploaded Source

Built Distribution

xayah-0.0.5-py3-none-any.whl (10.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page