I'd like to get the metadata for the examples in my suite before running it. I want to parallelize my test suite based off of tags. Anyone know how to get this data during something like RSpec.configure?
RSpec: How to get example metadata before running suite
455 Views Asked by Dane O'Connor At
2
There are 2 best solutions below
Related Questions in TESTING
- How does Robot's Telnet library work?
- Behat doesn't load extensions?
- Load additional CONFIG file with values
- rails controller test failing non-deterministicly wrt state leak (I think)
- Ordering tests using trial twisted
- Unexcepted failed Gavel/Dredd test
- How to use Jasmine and CucumberJS with Protractor
- Django login tests session problems
- How to mock specific RequireJs dependencies while unit testing
- Test case for WCF REST Service
- how to test this business logic
- Protractor - How to get first or last CHILD value
- Factory Not Registered in rspec but found in console
- Pick out certain lines from files
- Selenium stops running after click() function runs
Related Questions in RSPEC
- Rails routes, rspec
- Faking instance variable in RSpec and Capybara feature spec
- Using Rspec should_receive to test that a controller calls a method on an object correctly
- stubbing 'gets' in ruby multiple times
- Testing Twitter Typeahead with RSpec/Capybara
- Rspec is giving file is not defined error
- Why spec does not see the class in the module?
- Clicking label element that unfortunately contains a link
- Why am I receiving a load error in my RSpec tests?
- If I stub out .save method in my controller test how can I check the correct show template is rendered?
- Cannot run elastic search in circleci to make my rspec for elasticsearch to pass?
- Factory Not Registered in rspec but found in console
- Route Not Working in Rspec
- Padrino + FactoryGirl not performing Lazy Loading
- 'cannot load such file -- factory_girl_rails (LoadError)' in rails 4.1.8
Related Questions in TAGS
- How to make a multi model tag_cloud with a join table?
- Inserting template code below code in Handlebars layout.hbs
- Is it possible to access gmail anonymous profile for a logged in user?
- Youtube Google API V3: List Videos not returning video tags
- Winforms control for displaying html text
- git-svn problems creating tags
- Having an archive page with categories and tags
- How to keep comma between tags in _form?
- PHP Comment Tag
- custom WordPress tag.php page .. trying to get tag info
- Pushwoosh: how does it work
- Styling Two Navigation Bars
- git tag -l does not remove deleted tags
- unexpected end of file in html code
- <H2> followed by <Sup>
Related Questions in METADATA
- Extract bytes of specific stream from mpegts file using ffmpeg
- Configuring Web Applications for iOS
- Compiler Error: 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\014679fc\1b393534\App_Web_glpoum5i.dll' could not be found
- Rest API to upload an image with customized metadata in office 365
- Transient fields from Hibernate PersistentClass
- Retrieve metadata from a database with EntityFramework
- storing ntfs file metadata for retrieval via webserver and linking with database
- Delete all posts and associated meta data that are not custom post types
- Unsupported field datatype: metadata
- Shibboleth - Secure different URLs with different IdPs
- How to find header section in Magento platform?
- How to know to which columns a foreign key is referencing in Oracle SQL Developer?
- Getting a MySQL table's key and engine information from a statement's metadata using java
- Why does ^metadata 'symbol not work?
- ffmpeg: add album art with fluent-mmpeg
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 see a way to do this while running the suite. You could conceivably create a custom formatter and run the suite with
rspec --dry-run --format=MyFormatter, capture the output, extract the metadata and then do what you want with it. Unfortunately it appears the built-in JSON formatter does not output example metadata.More info on formatters in the RSpec docs.