-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
remove browser support #62
Comments
Hey, a lot of activity on this recently, that's good news! Personally i never run this in the browser, but i often used it in order to test code written for the browser |
I had a busy weekend. :)
Could you elaborate? Do the modules you're testing reference |
I was mostly referring to module systems which can be used in Browsers. We added support for AMD in the past and i used it, with a project based on Require. Nowadays i am working almost all the time with Angular, which kind of prevents me from using Doctest. Hopefully in the future modularisation in Javascript will follow just one standard, but currently there is still some fragmentation, so i think that keeping room for alternative module systems still has quite some value. Of course this needs to be balanced with the cost in terms of complexity |
Thanks for providing more detail, Francesco. :) I'm going to put together a pull request just to see how much infrastructure we could remove from the project if we removed the ability to run doctests in the browser. |
Sure! 🌞 As far as i remember, our approach for supporting custom running environments in the past was based on mocking necessary objects like |
That's a good idea. I'd like to wait for a concrete use case before doing so. I currently only use doctest to test Node modules, so my needs are already met. :)
|
I see that you are keeping support for different module systems there, so all fine :) |
Have you seen Doctest.js? It's specialized for browser (if you deprecate it) and never quite got Node support. |
I'm aware of that project. It seems overly complex to me. I want a way to ensure the examples in my documentation stay up to date; I've no desire to replace unit tests with doctests. Doctests are great for pure, synchronous functions. Asynchronous functions are better tested by unit tests. |
👍 I meant if you drop browser support you could point users there. |
Yep. Thanks for the suggestion! :) |
@dnalot |
This project could be simplified significantly were it to target Node exclusively. Is anyone out there running doctest in the browser?
The text was updated successfully, but these errors were encountered: