Skip to content

Commit ee69387

Browse files
authored
update README (#9)
1 parent 1328b5b commit ee69387

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

README.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,40 @@
1-
# python_testspace_xml
1+
# python_testspace_xml
2+
3+
A python library for creating [Testspace](https://signin.testspace.com/) xml result files. This is based on the Testspace result [xml format](https://help.testspace.com/reference:result-file-format).
4+
5+
## Getting Started
6+
7+
### Installing
8+
9+
Requires python 2.7 or 3.5 or later and its standard libraries and adding directory to your PYTHONPATH.
10+
11+
### Example
12+
To retrieve a list or projects for an organization.
13+
```
14+
15+
testspace_report = testspace_xml.TestspaceReport()
16+
17+
example_suite = testspace_report.get_or_add_test_suite('Example Suite')
18+
test_case = testspace_xml.TestCase('passing case 1', 'passed')
19+
example_suite.add_test_case(test_case)
20+
testspace_report.write_xml('testspace.xml')
21+
22+
```
23+
## Running the tests
24+
25+
The tests cases are creating using pytest and as part of running tox both code coverage and static analysis are done.
26+
27+
```
28+
pip install tox
29+
tox -e py
30+
```
31+
32+
33+
## Contributing
34+
35+
All pull request are built with [travisci.org](https://travis-ci.org/s2technologies/python_testspace_xml), with the test, code coverage and static analysis results reports at [Testspace](https://travis-ci.org/s2technologies/python_testspace_xml)
36+
37+
38+
## License
39+
40+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

0 commit comments

Comments
 (0)