Skip to content

Solution of #213. Print test case detail with its status. #222

Open
sohamnavadiya wants to merge 2 commits into
svanoort:masterfrom
PythonDjangoRestAPI:master
Open

Solution of #213. Print test case detail with its status. #222
sohamnavadiya wants to merge 2 commits into
svanoort:masterfrom
PythonDjangoRestAPI:master

Conversation

@sohamnavadiya

Copy link
Copy Markdown

This pull request contains code for print the test case detail with its status. You will see the output with each test case instead of test case group.

@sohamnavadiya sohamnavadiya changed the title Request to print test case detail with its status. Solution of #213 requirement. Print test case detail with its status. Jan 6, 2017
@sohamnavadiya

Copy link
Copy Markdown
Author

We can keep this part optional also.

@sohamnavadiya sohamnavadiya changed the title Solution of #213 requirement. Print test case detail with its status. Solution of #213. Print test case detail with its status. Jan 9, 2017
@svanoort-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@mvitiuk

mvitiuk commented Mar 9, 2017

Copy link
Copy Markdown

Hi, is there anyone, who can look at this? I have just started with pyresttest and this improvement will save a lot of time. Thank you.

Comment thread pyresttest/resttest.py
if single_test_case['status'] == 'Passed':
print('\033[90m' + sub_test_case + '\033[0m')
else:
print('\033[90m' + sub_test_case + '\033[0m')

@j796160836 j796160836 Jul 21, 2017

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Support skip_term_colors options will be great.
  2. Change failed case color code to \033[92m will be great.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for enhance it

@j796160836

j796160836 commented Jul 21, 2017

Copy link
Copy Markdown

According to netjunki's JUnit patch, I think that code will beter
https://github.com/netjunki/pyresttest/blob/naive-junit/pyresttest/resttest.py#L631-L640
So I wrote for this
https://github.com/j796160836/pyresttest/blob/johnny-print-detail-testcases/pyresttest/resttest.py#L736-L748

I looking forward to this great breach, hope it can be merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants