jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

How to make default suite optional #408

Closed rn2dy closed 9 years ago

rn2dy commented 9 years ago

Is there a way to disable default suite since I only use named suites? AFAK the default suite exists so that named suites can inherit from it.

Or maybe I should restructure my tests?

jejacks0n commented 9 years ago

There's not an easy way, no. Sorry.


Jeremy Jackson

On Sep 20, 2015, at 11:40 AM, Qiang Han notifications@github.com wrote:

Is there a way to disable default suite since I only use named suites? AFAK the default suite exists so that named suites can inherit from it.

Or maybe I should restructure my tests?

— Reply to this email directly or view it on GitHub.

robinpokorny commented 8 years ago

I had this problem as well. The default suite caused some problems when run.

So I set suite.matcher = nil in the default suite configuration and override the matcher in the named suites. This way default is still present but it is empty.