You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Beckerle, Mike" <mb...@tresys.com> on 2020/03/25 21:37:19 UTC

sbt testOnly not working for me

So due to bug DAFFODIL-2302, I have a schema where I can't run all the tests at once via 'sbt test'.

I wanted to run the tests separately via 'sbt testOnly **.Link16Test' and 'sbt testOnly **.Link16DERGTest' which are two different TDML test suites.

But when I do that, in every case it runs all the tests and therefore runs into the bug in DAFFODIL-2302, which will not be reassuring to a user.

Is there something I'm doing wrong that is making sbt testOnly not work?

Does this work for others?

Mike Beckerle | Principal Engineer
[Owl Cyber Defense]<http://owlcyberdefense.com>
[cid:0886c233-19d0-494d-8264-481fc46e507e] is now a part of Owl<https://owlcyberdefense.com/news/owl-cyber-defense-tresys-technology-announce-merger/>
P +1-781-330-0412
W owlcyberdefense.com<http://www.owlcyberdefense.com>

Re: sbt testOnly not working for me

Posted by Steve Lawrence <sl...@apache.org>.
sbt treats each argument as a separate sbt comand. So when you run:

  sbt testOnly **.Link16Test

because of the space, those are seen as two separate arguments, which is
equivalent to running these back to back:

  sbt testOnly
  sbt **.Link16Test

If you have a single command with a space in it, you need to wrap the
command in quotes so it's seen as a single argument, e.g.:

  sbt 'testOnly **.Link16Test'

On 3/25/20 5:37 PM, Beckerle, Mike wrote:
> 
> So due to bug DAFFODIL-2302, I have a schema where I can't run all the tests at 
> once via 'sbt test'.
> 
> I wanted to run the tests separately via 'sbt testOnly **.Link16Test' and 'sbt 
> testOnly **.Link16DERGTest' which are two different TDML test suites.
> 
> But when I do that, in every case it runs all the tests and therefore runs into 
> the bug in DAFFODIL-2302, which will not be reassuring to a user.
> 
> Is there something I'm doing wrong that is making sbt testOnly not work?
> 
> Does this work for others?
> 
> Mike Beckerle | Principal Engineer
> Owl Cyber Defense <http://owlcyberdefense.com>
> /is now a part of Owl 
> <https://owlcyberdefense.com/news/owl-cyber-defense-tresys-technology-announce-merger/>/
> P +1-781-330-0412
> W owlcyberdefense.com <http://www.owlcyberdefense.com>
>