I have some tests I'd like to exclude from the spock-report. Is it possible to exclude specific classes or tests from generating it?
Spock - exclude test class from being in test report
386 Views Asked by woundy At
1
There are 1 best solutions below
Related Questions in GROOVY
- spring-integration-dsl-groovy-http return null when i use httpGet method
- groovy xml namespace definition used in attribute value lost after XmlParse/serialize
- jenkins with groovy postbuild .Not able to execute anything in groovy script field
- How can I set the the expected Exception type for a catch statement with a parameter I've passed into a method?
- How to add quotes into sql where clause in Groovy script?
- integrating groovy with api
- java.util.ConcurrentModificationException on cloneEntity
- jenkins (or groovy) using pom.xml from previous execution
- How to use multiple classes in multiple files in scripts?
- How to work around Groovy's XmlSlurper refusing to parse HTML due to DOCTYPE and DTD restrictions?
- Workaround for lack of generators/yield keyword in Groovy
- Groovy's @CompileStatic and map constructors
- Java syntax to Groovy syntax
- Groovy TimeDuration Argument Types
- Elasticsearch : _score always 0 in Groovy script
Related Questions in AUTOMATED-TESTS
- How to automate UI interaction during acceptance test run
- Teststack.white cannot find Toolstrip item
- Unexcepted failed Gavel/Dredd test
- Keyword 'AppiumLibrary.Open Application' expected 1 to 2 non-keyword arguments
- How to set test case fail and pass messages in Casper js?
- Wait until scrollbar fades when using UI Automator
- Teststack.White Drag and Drop Problems
- list of test step results in groovy script
- Is there a before() function in Protractor?
- Different behaviour of compiler when called in script by LaunchControl
- Karma not recognizing jQuery
- How to perform datadriven approach using coded ui VSTS 2013
- Multiple Scope value in Binding (Specflow)
- python run function in external module containing doctest.testmod()
- How to use loop in nightwatch.js
Related Questions in SPOCK
- Unit tests fail to run after upgrade from grails 2.3 to 2.5
- Inject autowired object as mock into spock test in spring boot application
- Testing for the Default Value
- Grails String.encodeAsBase64() Fails in Spock Tests
- when writing spock test in groovy java mixed project unable to resolve class
- What is the idiomatic way to run a Specification over multitple implementations with Spock?
- Grails unit test mocking method in dependent service
- Spock Framework: problems with spying
- How to configure Spock test to load Spring Context (for @Autowired)?
- java.lang.AbstractMethodError: org.jboss.arquillian.config.descriptor.impl.EngineDefImpl.getDeploymentExportExploded()Ljava/lang/Boolean;
- Cannot Mockito spy class in Spock test?
- run a single integration test from a test class
- Betamax is not recording calls to RESTClient in Grails
- Write Spock test cases for Spring boot application
- Grails 2.3.9 - Error: ClassNotFoundException: grails.plugin.spock.test.GrailsSpecTestType
Related Questions in SPOCK-REPORTS
- How to get log messages to display in Spock Reports?
- How to generate Spock reports with Eclipse
- Why are Spock Speck tests so wordy?
- How can I embed Geb screenshots and HTML snapshot artifacts into renatoathaydes/spock-reports?
- Customize XML report files in Spock
- Spock Framework: How to create a customized Data Provider
- 'ClassCastException class [B cannot be cast to class [C' when attempting to generate spock reports
- Is there any way to add/print custom step/text in html reports
- Integrating serenity/thucidydes with spock
- Jenkins Publishing Multi Module Spock Test Reports
- Spock & Spock Reports: How print a variable valuable in Label/Block
- Spock & Spock Reports: how "catch" and customize the error message for AssertionError?
- Spock & Spock Reports how retrieve the MockHttpServletResponse (from Spring MVC Testing) for the where block?
- how to apply if and OR if or condition in td tag in html file
- How to take screenshots only for failure step in geb using athaydes plugin
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I don't know of such a feature out of the box but you could write your own report template. just copy the default templates and add your filter code directly to the template.
another way I could imagine is that you run your tests twice and exclude the tests to hide with an
@IgnoreIfannotation (http://mrhaki.blogspot.com/2014/06/spocklight-ignore-specifications-based.html?m=1). This could make the decision based on an environment variable.However, tests are important and it is even more important what has NOT been tested. So you should report that certain tests where excluded in order to have a valid test report.