vendredi 22 novembre 2019

How to test either a single testsuite or a testcase using Scala and Pants

I'm trying to execute a single testsuite using Scala and Pants, but so far I haven't found anything useful looking at the official documentation on https://www.pantsbuild.org/.

Looking at the output produced by the Intellij IDEA's plugin I tried to take advantage of the command line parameter --test-junit-test but without any real luck so far. The commands looks like the following:

./pants test test/scala/com/mypackage:mypackage --test-junit-test=com.mypackage.MyServiceTest

Even though the previous command works it triggers all the testsuites in the targeted namespace, which makes the test-junit-test useless.

Aucun commentaire:

Enregistrer un commentaire