This repository has been archived by the owner on Apr 22, 2020. It is now read-only.
forked from allankp/pytest-testrail
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Manage existing test run or test plan * Fill the test failure comment and duration with information from test runner * Log only last error content * Add log * Add log * Fix: In case of 'parametrize', the test status reflects the last test performed (should reflect all the tests status) Now, worst results are published at the end (sort by status) * Manage existing testrun testplan (allankp#3) Synchronization with upstream * Merge branch 'fill-comment-in-test-result' * Synchro with upstream * Merge upstream * Fix problem with Tox/Python versions * Fix problem with Python 2.7
- Loading branch information
Showing
3 changed files
with
141 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
# -*- coding: UTF-8 -*- | ||
import pytest | ||
import time | ||
|
||
from pytest_testrail.plugin import testrail, pytestrail | ||
|
||
@testrail('C344', 'C366') | ||
def test_func1(): | ||
pass | ||
time.sleep(0.5) | ||
|
||
@testrail('C345') | ||
def test_func2(): | ||
time.sleep(1.6) | ||
pytest.fail() | ||
|
||
@testrail('C99999') | ||
def test_func3(): | ||
pass | ||
time.sleep(0.5) | ||
|
||
@pytestrail.case('C1788') | ||
def test_func4(): | ||
pytest.skip() | ||
|
||
@pytestrail.case('C1789') | ||
def test_func5(): | ||
pass | ||
time.sleep(0.5) |
Oops, something went wrong.