tpounds / tpunitpp

A simple, portable C++ xUnit library contained in a single header.
MIT License
23 stars 8 forks source link

Add ability to run only one TestFixture? #6

Open flodnv opened 9 years ago

flodnv commented 9 years ago

Hi @tpounds,

As our usage of your mini-library grows, our list of unit tests is getting longer and longer to run. I was wondering and wanted to ask you: have you thought about adding a way to run only one specific TestFixture (like by its struct name) ?

Thanks for your time

tpounds commented 9 years ago

@flodnv: I definitely think this would be a useful addition to the library. I was thinking the best way to support this would be to add some filter options that could be passed in to the generated binary.

./a.out --include=FooFixture --include=BarFixture ./a.out --exclude=BazFixture

Let me know if this sounds reasonable to you.

Out of curiosity how many tests are you running with tpunit?

flodnv commented 9 years ago

I was thinking the best way to support this would be to add some filter options that could be passed in to the generated binary.

Yep, sounds great.

As of now we have 130 test methods, and the list is growing every week/month :)