-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for images #12
Comments
I started working on this a few days ago actually. I was thinking of I was thinking it should be easy enough to intercept the final HTML (as Sorry it's taken so long. This is something people at my office want as On Thu, Nov 15, 2012 at 1:21 AM, dirkrombauts notifications@github.comwrote:
|
I'd be satisfied if you just blindly copy the files that follow the naming convention, though. |
Added support for moving images based on relative paths. Test included. Tests need to be expanded to handle deeper hierarchies and absolute paths in the future.
I'm starting to push some changes up for this issue. I'll pexk away at it over the next few days. Take a peek when you get a chance. |
Calling the HtmlImageRelocator to move images
So this feature will only be supported for the HTML output then? |
We should support it for all formats, but HTML will be first. Which format On Saturday, January 5, 2013, aaronjrich wrote:
|
Maybe this doesn't apply to this feature, but the reason I ask is that I'm working on the DHTML output and ran across and issue where the JSON output doesn't have test results at the scenario level. Well, it looked like test results in general are added in by the builder for each output type. I was thinking about this a bit and was considering looking at adding TestResult to Feature and Scenario so it would be in the data and technically other outputs could get at it. I'd have see what your thinking about with the images - maybe it's something we'd like to use. Have you created something in the Examples project that represents what it will look like? |
No example just yet, but hopefully by tomorrow On Saturday, January 5, 2013, aaronjrich wrote:
|
Added an example of image relocation to one of the features in the example.
Looking into how this was implemented for the HTML output format, I may be able to use some of this for the DHTML output without too much effort. Wonder if anyone is actively using this feature? |
@aaronjrich regarding your comment to simply take all images we find in the source directory and copy them to the output directory (which I received be email but somehow didn't make it to github): I suggested a naming convention at the top of this issue, but your suggestion is even simpler of course. And seeing as nothing happened with this issue for the past 10 months, it's probably a good idea to make the requirements simpler :-) So yes, I'm all for it! |
Ran across a scenario in our specs where we refer to an Excel document that contains our "expected" output but there is no way to view this from the Pickled specs. I think we could generalize this image feature request by simply pulling in a white list of files found in the feature source directory (images, office docs, text files?) that we feel may be commonly referenced. Perhaps file types outside the white list can be included via a command line argument or something like that as well if the need arises. Again, the benefit would be to keep the usage to standard markdown to reference these. I may take a stab at this for the DHTML format. |
@aaronjrich I added support for images to the HTML version. Would you care to have a go at adding them to the DHTML version? |
I can't commit to a timeframe, but yes, I'd like to get this done. Let me look at how the static version was accomplished. |
I'm closing this issue because it has a new home at uservoice: https://pickles.uservoice.com/forums/232147-general/suggestions/5728981-support-for-images |
About what to do next: here’s something that came up in conversation with a colleague: sometimes a picture says more than a thousand words in the description of a feature. Markdown allows us to add links to images (and Pickles correctly outputs the html for them) BUT the paths are screwed up (of course).. It would be nice if the corresponding files would be copied too.
An example: suppose I have “” in my description somewhere. When pickles generates the html, this is rendered as which only works if the html pages are in the same location as the feature files. It would be cool if Pickles would detect this and copy that file. Or maybe we can be lazy and simply copy all image files – perhaps using a naming convention or something like that.
An idea for the naming convention:
The text was updated successfully, but these errors were encountered: