jvarkit icon indicating copy to clipboard operation
jvarkit copied to clipboard

Does jvarkit provide official test cases?

Open YFLEEL opened this issue 2 years ago • 6 comments

Excuse me, does jvarkit provide official test cases?

YFLEEL avatar Aug 22 '22 06:08 YFLEEL

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

lindenb avatar Aug 22 '22 08:08 lindenb

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!

YFLEEL avatar Aug 22 '22 14:08 YFLEEL

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

lindenb avatar Aug 22 '22 16:08 lindenb

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

YFLEEL avatar Aug 25 '22 05:08 YFLEEL

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!

YFLEEL avatar Sep 04 '22 03:09 YFLEEL

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.

lindenb avatar Sep 05 '22 16:09 lindenb