Skip to main content
# test-skeleton

[![Build Status](https://travis-ci.org/jerry-git/test-skeleton.svg?branch=master)](https://travis-ci.org/jerry-git/test-skeleton)
[![Pypi](https://img.shields.io/pypi/v/test-skeleton.svg)](https://pypi.python.org/pypi/test-skeleton)
[![Py vers](https://img.shields.io/pypi/pyversions/test-skeleton.svg)](https://pypi.python.org/pypi/test-skeleton)

A tool for creating a skeleton for Python unit tests based on source code.

Basically, this is a tool for non-TDD development. Use TDD if possible.

A potential use case for this tool could e.g. a legacy project which lacks tests.


## Usage
```bash
python -m test_skeleton path/to/your/source_file.py
```

The result will be printed to std out. If you want to store it into a file, use `--save` flag. The result will be stored into test_<original_filename> in your current working directory.


## Example

Input:
```python
class Klass(object):
klass_var = ''

def __init__(self):
self.a = ''

@property
def property1(self):
pass

@classmethod
def klassmethod1(cls):
pass

def method_with_under_scores(self):
pass


def helper_function1():
pass

```
Output:
```python
class TestKlass:
class TestProperty1:
def test_TODO(self):
pass

class TestKlassmethod1:
def test_TODO(self):
pass

class TestMethodWithUnderScores:
def test_TODO(self):
pass


class TestHelperFunction1:
def test_TODO(self):
pass

```

Metadata

Release files for test-skeleton 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for test-skeleton 0.1.2
File Size Uploaded Provenance Actions
test-skeleton-0.1.2.tar.gz 5.8 kB Without provenance Details for test-skeleton-0.1.2.tar.gz

Release files / test-skeleton-0.1.2.tar.gz

Download URL test-skeleton-0.1.2.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f255cbe10f843d60b5de52b1e6edb5f25a0bdc4588ab3c6b84ff73bfccc5736a
BLAKE2b-256 checksum
How to use checksums
ac327ad8f706bf451116b63f340aab73e912f66d3f7bb46cc6527b3b48567245
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for test-skeleton 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page