CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-allure-python-commons

Contains the API for end users as well as helper functions and classes to build Allure adapters for Python test frameworks

Overall
score

94%

Overview
Eval results
Files

task.mdevals/scenario-2/

Test Suite Organization

Build a test suite for an e-commerce platform that organizes tests using hierarchical categorization aligned with business requirements. The test suite should structure tests by their business context to enable better reporting and traceability.

Requirements

Implement a test module with four tests for an e-commerce platform:

  1. Test user registration - categorized under User Management feature and User Registration story
  2. Test user login - categorized under User Management feature and User Login story
  3. Test adding items to cart - categorized under Shopping Cart feature and Add Items story
  4. Test checkout process - categorized under Shopping Cart feature and Complete Purchase story

All tests should be organized under:

  • Epic: "E-commerce Platform"
  • Suite: "E-commerce Tests"

Each test should use the appropriate organizational metadata to reflect its position in the business hierarchy. The tests can be simple placeholder functions that pass immediately - the focus is on correct test organization.

Test Cases

  • User registration test is categorized under epic "E-commerce Platform", feature "User Management", story "User Registration", and suite "E-commerce Tests" @test
  • User login test is categorized under epic "E-commerce Platform", feature "User Management", story "User Login", and suite "E-commerce Tests" @test
  • Add to cart test is categorized under epic "E-commerce Platform", feature "Shopping Cart", story "Add Items", and suite "E-commerce Tests" @test
  • Checkout test is categorized under epic "E-commerce Platform", feature "Shopping Cart", story "Complete Purchase", and suite "E-commerce Tests" @test

@generates

Dependencies { .dependencies }

allure-python-commons { .dependency }

Provides test organization and reporting capabilities.

API

def test_user_registration():
    """Test user registration functionality"""
    pass

def test_user_login():
    """Test user login functionality"""
    pass

def test_add_to_cart():
    """Test adding items to cart"""
    pass

def test_checkout():
    """Test checkout process"""
    pass

Install with Tessl CLI

npx tessl i tessl/pypi-allure-python-commons

tile.json