lindenb / jvarkit

Java utilities for Bioinformatics
https://jvarkit.readthedocs.io/
Other
476 stars 131 forks source link

Does jvarkit provide official test cases? #206

Open YFLEEL opened 1 year ago

YFLEEL commented 1 year ago

Excuse me, does jvarkit provide official test cases?

lindenb commented 1 year ago

@YFLEEL it depends of the tool. For some tools (but not all ) gradlew generates some tests.

YFLEEL commented 1 year ago

Thank you for your reply. I still have the following two questions and hope to get your reply: 1) 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? 2) 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!

lindenb commented 1 year ago

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
YFLEEL commented 1 year ago

Thank you for your answer, I will try to solve it!

YFLEEL commented 1 year ago

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!

lindenb commented 1 year ago

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.