Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does jvarkit provide official test cases? #206

Open
YFLEEL opened this issue Aug 22, 2022 · 6 comments
Open

Does jvarkit provide official test cases? #206

YFLEEL opened this issue Aug 22, 2022 · 6 comments

Comments

@YFLEEL
Copy link

YFLEEL commented Aug 22, 2022

Excuse me, does jvarkit provide official test cases?

@lindenb
Copy link
Owner

lindenb commented Aug 22, 2022

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

@YFLEEL
Copy link
Author

YFLEEL commented Aug 22, 2022

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
Copy link
Owner

lindenb commented Aug 22, 2022

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
Copy link
Author

YFLEEL commented Aug 25, 2022

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

@YFLEEL
Copy link
Author

YFLEEL commented Sep 4, 2022

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
Copy link
Owner

lindenb commented Sep 5, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants