You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some tests, such as AlmostE2ETest.java, contains variables that point to local files and database connections that needs to be hosted locally. These variables are not used, but it can create confusion to how the tests actually work.
Many tests, such as PreAnalyzerTest.java, do not contain assertions and instead prints out certain outputs. This is unreliable as the test will always pass, even if the outputs are wrong. Assertions should be used instead of prints.
Some tests, such as RangeAnalyzerTest.java, have unfinished FIXMEs which renders the test useless.
And more similar issues in most test codes.
The text was updated successfully, but these errors were encountered:
In PreAnalyzerTest.java, I actually added new tests for spatial patterns in this PR: 75. For legacy tests, I think some of them might not be needed anymore (?)
For AlmostE2ETest.java, I guess it is intended for end-to-end test with external database. Maybe we need to modify it to utilize local database (e.g., in CSV format)?
I also want to add an issue with LabelAnalyzerTest.java, I think there is a problem with the JUnit version. The project uses JUnit 4, while the test presumably uses JUnit 5. Consequently, the test could not be run correctly.
For other tests, should we convert them to unit tests (each test correspond to a certain module) or let them be as is and adapt them to utilize assertion, mock, etc. if needed?
The text was updated successfully, but these errors were encountered: