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

Improve documentation of junit5-jupiter-starter-ant #97

Open
Anu-Mer opened this issue Jan 31, 2019 · 3 comments
Open

Improve documentation of junit5-jupiter-starter-ant #97

Anu-Mer opened this issue Jan 31, 2019 · 3 comments

Comments

@Anu-Mer
Copy link

Anu-Mer commented Jan 31, 2019

Hello,
I am not able to get this example working on ant 1.10.5 . I have added the required jars but it does not recognize ParametrizedTests and CsvSource
Could you please help?

@sormuras
Copy link
Member

sormuras commented Jan 31, 2019

@Anu-Mer thanks for raising the issue -- already answered your question here https://stackoverflow.com/a/54455033/1431016 -- here's a copy of it:

The junit5-jupiter-starter-ant sample copies the "standalone" JAR of JUnit 5 into the $ANT_HOME/lib folder. This primed Ant installation includes all packages JUnit 5 has to offer (Platform, Jupiter, Vintage) and passes them to the tasks that refer to the ant runtime via class-path or other means:

wget --directory-prefix "${ant_folder}/lib" "...junit-platform-console-standalone-1.3.2.jar"

See the build.sh for details: https://github.com/junit-team/junit5-samples/blob/master/junit5-jupiter-starter-ant/build.sh

So, you may either:

  • copy the junit-platform-console-standalone-${version}.jar to ANT_HOME/lib
  • or add junit-jupiter-params-${version}.jar the same way as you did with junit-jupiter-api-${version}.jar

The README.md of the Ant Starter needs some love. The steps of the build.sh script should be described at all and in more detail. I changed the title of this issue accordingly.

@sormuras sormuras changed the title unable to get it to work with ant 1.10.5 Improve documentation of Ant Starter Jan 31, 2019
@Anu-Mer
Copy link
Author

Anu-Mer commented Jan 31, 2019

Thank you @sormuras . It works from command prompt now

@sormuras
Copy link
Member

You're welcome.

Do you want to improve the documentation by providing a PR?

@sormuras sormuras changed the title Improve documentation of Ant Starter Improve documentation of junit5-jupiter-starter-ant Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants