-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not collecting any test case written in pytest #3
Comments
@ankitkgupta09 Any news on this? Did you manage to load pytest cases? |
@fkreiner No this did not work for me, is this work on unittest or pytest? my test cases are written using pytest. |
Sorry for the delay in response, I had missed the notification earlier. This was originally tested with tests written in unittest framework. Usually - we write all our test cases through unittest, and pytest just works seamlessly with those anyway. Can you point me to some sample pytest test cases where this is not working? |
I tried some simple tests from the pytest examples
Pytest will execute those tests. pytest-gui does not show or execute them. |
This tool is not collecting a test case written in Pytest.
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python38\lib\tkinter_init_.py", line 1883, in call
return self.func(*args)
File "C:\openscource\pytest-gui\view.py", line 605, in cmd_reload_tests
self.reload_project(self.testdir_name.get())
File "C:\openscource\pytest-gui\view.py", line 513, in reload_project
self.project = self.load_project(self.root, self.Model, testdir)
File "C:\openscource\pytest-gui\view.py", line 483, in project
self._add_test_module('', testModule)
File "C:\openscource\pytest-gui\view.py", line 453, in _add_test_module
for testMethod_name, testMethod in sorted(testCase.items()):
AttributeError: 'TestMethod' object has no attribute 'items'
The text was updated successfully, but these errors were encountered: