Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mpkocher/cramunit
cram to Unittest tool (No further development planned)
https://github.com/mpkocher/cramunit
integration-testing python unittest
Last synced: 15 days ago
JSON representation
cram to Unittest tool (No further development planned)
- Host: GitHub
- URL: https://github.com/mpkocher/cramunit
- Owner: mpkocher
- Created: 2013-03-04T05:03:33.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-05-28T00:23:10.000Z (over 7 years ago)
- Last Synced: 2024-12-16T00:46:15.150Z (16 days ago)
- Topics: integration-testing, python, unittest
- Language: Python
- Homepage:
- Size: 664 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSES.txt
Awesome Lists containing this project
README
CramUnit
========This library is a thin wrapper on *cram* testing framework to generate Xunit files. See [cram](https://bitbucket.org/brodie/cram/overview) for details.
As of [cram >= 0.7](https://bitbucket.org/brodie/cram/src/cb549264f752f3b009b1e742b9b0f3944e2e21f0/NEWS.rst?at=default&fileviewer=file-view-default), *cram* has added direct support for emitting XUnit output using **--xunit-file=PATH** flag. This output can be consumed by CI systems, such as jenkins or CircleCI.
Therefore, this library is largely unnecessary for most usecases. Moreover, the added dependency on CramUnit doesn't provided enough value. **No further development is planned**.
For running directories, it's recommended to migrate to a `find my-dir -name "*.t"` and a call to *cram*. This will generate N XUnit files (which is different than *CramUnit* output of a single XUnit file).
The [implemenation might be useful](https://github.com/mpkocher/CramUnit/blob/master/cram_unit/crammer.py#L119) as an example of using the unittest library and dynamically adding test methods at runtime.
[![Build Status](https://travis-ci.org/mpkocher/CramUnit.svg?branch=master)](https://travis-ci.org/mpkocher/CramUnit)
Tool to generate Unittest/Xunit output from cram tests (i.e., files ending in `*.t`):
$> python run_cram_unit.py /path/to/mytests --xunit nose_mytests.xml