jvarkit
jvarkit copied to clipboard
Does jvarkit provide official test cases?
Excuse me, does jvarkit provide official test cases?
@YFLEEL it depends of the tool. For some tools (but not all ) gradlew generates some tests.
Thank you for your reply. I still have the following two questions and hope to get your reply:
- You said 'For some tools (but not all ) gradlew generates some tests.' Can I implement tests by running the script 'gradlew' in the root directory?
- Is there a test case that allows me to test whether all the tools can normally achieve their full functions. I'm deploying the app on another system and need to test that the full set of features it contains will work. Sincerely hope to get your reply!
Can I implement tests by running the script 'gradlew' in the root directory?
by default tests are run if , for a tool X under src/main there is a code XTest under src/test
eg:
src/test/java/com/github/lindenb/jvarkit/tools/vcftrios/VCFTriosTest.java
src/main/java/com/github/lindenb/jvarkit/tools/vcftrios/VCFTrios.java
Thank you for your answer, I will try to solve it!
Hello, I'm here to trouble you again. The tests you told me last time were java files. Now I need to run the test cases on linux, is there any way to convert the existing test files to executable on linux? In other words, does the official provide a test script that can be executed in linux?Sincerely hope to get your reply!
In other words, does the official provide a test script that can be executed in linux?
the test script is the gradle file itself. Again a test is executed when a program is compiled if a test is associated to the program. There is no specific executable or you'll have to code it.