separate test module
See original GitHub issueSince we now have tests in most of the algorithms, I think it is a good idea to have a separate test_module.py
file in each module. We can move all the tests from one module to it, and any further algorithms must have their tests in this file. It will make the repo easy to manage.
@keon what do you think? I can start working on this.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:11 (1 by maintainers)
Top Results From Across the Web
unittest — Unit testing framework — Python 3.11.1 ...
The unittest module can be used from the command line to run tests from modules, classes or even individual test methods: python -m...
Read more >Should Python unittests be in a separate module?
I assume that test discovery is more straightforward if the tests are included in separate modules, but there's an additional burden on the ......
Read more >Test Organization - The Rust Programming Language
Files in subdirectories of the tests directory don't get compiled as separate crates or have sections in the test output. After we've created...
Read more >Advanced test setup - Android Developers
... Change the test build type; Configure Gradle test options; Use separate test modules for instrumented tests. Test in Android Studio and ...
Read more >Must each module have a separate unit testing, Even if some ...
Yes, you should have separate tests for each module, and in fact for each public class or function. Other modules may use those...
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
@christianbender
sorry for the late reply 😦 As the repo gets larger, separating test code may be more scalable. Let’s give it a shot and see if it works better!
@goswami-rahul The problem is that we have not in all projects unit tests. Many projects (that I have see) have simple tests with the
print
function that prints something on the console. The idea with the central test-file sounds good.