Test suite cleanup
See original GitHub issueWhen we migrated from unittest
to pytest
, our understanding was that we had to use only test functions rather than test cases with test methods. This lead to structures like this:
In general, there are quite a few places were the test suite looks like
def test_Foo_bar():
...
def test_Foo_baz():
...
instead of
class TestFoo:
def test_bar(self):
...
def test_baz(self):
...
Cleaning this up is a little bit of busy work, but can be a good entry point to the development of pystiche
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
Setup and Cleanup Tests - Micro Focus
Cleanup tests typically include scripts or manual procedures that restore test environments to their original state following tests. When setup tests are ...
Read more >Clean Code with Unit Tests: Tips and tricks for keeping your ...
If you're not careful in doing proper teardown or cleanup between tests in your test files, you may end up modifying global variables...
Read more >Test Suite Cleanup: Permanent Issue #3155 - GitHub
Hi there! This issue is a permanent issue dedicated as a hub for efforts to improve the quality of the test suite.
Read more >Get plots from cleanup callbacks of test suite - MathWorks
This MATLAB function returns figure handles of plots from the cleanup callbacks of the test suite associated with the results.
Read more >Testing in Go: Clean Tests Using t.Cleanup - Ilija Eftimov
Cleanup methods, added to the testing package. The introduction of these methods will make it easier for our tests to clean up after...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Tracker for tests in
tests/integration/
:core
(#520)data
(#520)demo
(#523)enc
(#537)models
(#523)image
(#536)loss
(#536)meta
(#537)misc
(#537)ops
(#539)pyramid
(#539)Looking forward to help more…