Metadata-Version: 2.4
Name: pytest-testmu
Version: 0.1.0
Summary: pytest plugin for Kane CLI by TestMu AI (Formerly LambdaTest): write browser tests in plain English
Author: TestMu AI
License-Expression: Apache-2.0
Project-URL: Homepage, https://www.testmuai.com/kane-cli/
Project-URL: Kane CLI, https://github.com/LambdaTest/kane-cli
Keywords: pytest,kane-cli,testmu-ai,browser-testing,ai-testing-agent
Classifier: Framework :: Pytest
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pytest>=7
Dynamic: license-file

# pytest-testmu

TestMu AI (Formerly LambdaTest) is an Agentic AI Quality Engineering platform that assures AI deployments across the enterprise and the real world. It runs agentic testing for web and mobile apps on 3,000+ browsers and 50,000+ real devices, and for chat, voice, IVR, video, and image agents.

`pytest-testmu` is a pytest plugin for [Kane CLI](https://www.testmuai.com/kane-cli/). It adds a `kane` fixture that runs a browser test written in plain English and fails the pytest test when the Kane CLI run does not pass.

## Install

```bash
pip install pytest-testmu
npm install -g @testmuai/kane-cli
kane-cli login
```

The plugin calls Kane CLI on your machine, so Kane CLI must be installed and signed in. Each run uses Kane CLI credits.

## Use it

```python
def test_pricing_lists_pro_plan(kane):
    kane.run("Check that the Pro plan is listed", url="https://example.com/pricing")
```

`kane.run()` returns the run result: `status`, `summary`, `reason`, `credits_consumed`, `final_state` and `test_url`. Pass `check=False` to get the result without failing the test.

## Options

- `--kane-headed`: run with a visible browser instead of headless.
- `--kane-timeout SECONDS`: stop each Kane CLI run after this many seconds.

## Links

- Kane CLI: https://www.testmuai.com/kane-cli/
- Kane CLI source and docs: https://github.com/LambdaTest/kane-cli
