jejacks0n / teaspoon

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

#470: providing option to use placeholders in output file for formatters #471

Closed sebastianzillessen closed 8 years ago

sebastianzillessen commented 8 years ago

When defining multiple suites and running the tests on a CI (like Jenkins), you might need the output of bundle exec teaspoon in your XML-reports. To get one XML-file per suite you are running, you might want to add e.g a junit formatter which creates one result file per suite.

config.formatters = ["junit>#{Rails.root.join(["spec", "reports", "teaspoon_%{suite_name}.xml"])}"]

Will create a single file for each defined test-suite under spec/reports/teasoon_%{suite_name}.xml. Allowed placeholders are:

jejacks0n commented 8 years ago

This looks good, and thank you for spending the time on it.

I added some comments for changes. And I'd like to see a new spec.

jejacks0n commented 8 years ago

Thanks for resolving that, and spending the time on it. :+1:

sebastianzillessen commented 8 years ago

Hi @jejacks0n unfortunately the PR has not resulted in a new version of teaspoon. When will u generate a new one so that we can use this feature? Thanks!

sebastianzillessen commented 8 years ago

Hey @jejacks0n When can we expect a new version with this feature included?