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

Proposal: pretty test runner in browser #7

Open
evancz opened this issue Jun 3, 2014 · 5 comments
Open

Proposal: pretty test runner in browser #7

evancz opened this issue Jun 3, 2014 · 5 comments

Comments

@evancz
Copy link

evancz commented Jun 3, 2014

@michaelbjames is working on performance benchmarking this summer, and we are drawing on this library for design inspiration a bit. One thing we came up with as a way to profile rendering was actually running the tests in browser. And if we are in the browser, we might as well have a progress bar as things run and then render some graphs when all the info is ready.

So the idea is, what if there was a test runner along these lines:

run : [Test] -> Element
run : [Test] -> Signal Element

In the second case you could show incremental results as the tests run. This would hook up to main so I don't think it'd interfere with running things on the command line.

@deadfoxygrandpa
Copy link
Owner

I've thought about doing this before. I'll give it some thought as to how to best do it now.

@evancz
Copy link
Author

evancz commented Jun 3, 2014

Cool :) We'll be doing some visual stuff with benchmarking, so maybe we can share code or at least share style a bit if you think it's a good idea.

@maxsnew
Copy link
Collaborator

maxsnew commented Jun 3, 2014

The only way I know to do this (make a "pure" signal) is to have a foldp/automaton running one test at each step and then have that run on a super fast "pumping" signal like every millisecond. It's how IO used to work.

@deadfoxygrandpa
Copy link
Owner

I've figured out how to do this with a simple native JS extension. I just created a native branch where I'm working on it.

@deadfoxygrandpa
Copy link
Owner

Thanks to Michael's benchmarking code, anyway. I read through that to get an idea of how it all fits together.

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

No branches or pull requests

3 participants