Skip to content
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

Export marble diagram images from tests #766

Open
Widdershin opened this issue Dec 28, 2017 · 5 comments
Open

Export marble diagram images from tests #766

Widdershin opened this issue Dec 28, 2017 · 5 comments

Comments

@Widdershin
Copy link
Member

@Widdershin Widdershin commented Dec 28, 2017

From @real34 on February 11, 2017 10:11

First thank you for this great driver!

It would be great to have diagrams exported as images (seehttps://github.com/ReactiveX/rxjs/blob/master/doc/writing-marble-tests.md#generating-png-marble-diagrams-from-tests) for several reasons:

  • living documentation
  • introducing Cycle.js concepts and ideas to developers
  • awesomeness!

Do you think this could be part of the responsibility of this project?

From what I saw, it seems that it could be achieved easily by reusing https://github.com/ReactiveX/rxjs/tree/31dfc7324bf51b98df6678f072b7a3bd4c0b5888/spec/helpers/tests2png however I have not much experience with other reactive libraries than rxjs and don't know it it would be difficult to port it with adapters for most and xstream.

Copied from original issue: cyclejs/time#11

@Widdershin Widdershin self-assigned this Dec 28, 2017
@Widdershin
Copy link
Member Author

@Widdershin Widdershin commented Dec 28, 2017

Do you think this could be part of the responsibility of this project?

Yep, I'm open to supporting this case 😄

From a quick glance at the code you linked, we can reuse the painter.js code, but probably the code to create the requisite data to paint would need to be custom.

I imagine it's just another operator over Time.record.

Are you interested in attempting a pull request for this issue?

@Widdershin
Copy link
Member Author

@Widdershin Widdershin commented Dec 28, 2017

@raquelxmoss has pointed out that it might be more straightforward to generate SVGs. We're going to have a go at this later on today.

@Widdershin
Copy link
Member Author

@Widdershin Widdershin commented Dec 28, 2017

From @real34 on February 13, 2017 12:23

Great! Thanks for your feedback.

I might not be able to work on it really soon as I already have a lot on my plate. Feel free to try things and I'll keep you updated when I will find the time for it (I may try during a few lunch breaks, but I still have a lot to learn to be efficient on this)

@Widdershin
Copy link
Member Author

@Widdershin Widdershin commented Dec 28, 2017

From @raquelxmoss on February 13, 2017 19:11

@real34 We've made a start on this and have been progressing pretty well. Hopefully we'll have a PR up this week if all goes well 😄

@Widdershin
Copy link
Member Author

@Widdershin Widdershin commented Dec 28, 2017

From @staltz on February 14, 2017 20:12

has pointed out that it might be more straightforward to generate SVGs. We're going to have a go at this later on today.

Yeah, I'm the one who made those painter.js etc, and in hindsight, I'm not sure why didn't I choose SVG! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.