question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

separate test module

See original GitHub issue

Since 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
keoncommented, Apr 10, 2018

@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!

1reaction
christianbendercommented, Mar 27, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found