-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add more features from copy-paste downstreams #26
Comments
Looks like some of:
could be moved to this repo for example? Trying to think of a minimal setup with the least amount of configuration files and boilerplate, that could for example be used to test a "traditional" JupyterLab extension. And maybe add this setup as an opt-in to the cookiecutter, so end to end testing would be enabled out of the box for new extensions. |
Yeah, Testing WXYZ Widgets with Robot
Lesson Learned: Testing code in the browser is the most expensive, and highest false-positive, way to test jupyter functionality. Do everything you can first to find problems. RobotOps: the nuts and bolts of robot testingFor the actual running of robot tasks, I think some of the higher-order boilerplate robot invocation. is important.
Lesson Learned: Robot/selenium browser tests can easily get very, very slow; a lot of the time can get lost just waiting for bad conditions. RoboDocsUsing the output of a robot test suite run as the input of a docs build with e.g. Lesson Learned: Eventually a human has to look at the output of screenshots, and have a sensible way to compare them. Docs are a pretty good way to do this, especially if the text caption corresponds to what you should expect to see on the page! I'd really love to figure out how to do screencasts... i've done this at the heavyweight VM level, but perhaps FF has a way to do it semi-natively. Unless you're readthedocs magic is very strong, it's all but pointless to try to do this on their hardware. The situation might improve with the MAMBA_FEATURE_FLAG. |
For reference, a lot of that does already exist, with some polish, in this library. Which specific things are you looking for? |
Thanks for all the details 👍
Have you been able to compare that with other tools such as
Ah nice! I thought they were slightly different compared to the one in |
Call me old-fashioned, but I prefer real, actual, open source browsers that
people can use vs magic testing browser blobs downloaded by nodejs post
install scripts. I'm sure new stuff is fancier, and there's some work
happening in the robot community around wrapping it... But for the
foreseeable future, this project will be selenium-based.
I've mostly given up trying to test with Google chrome/driver (much less
edgium) unless I have a magic docker image that already has all that stuff
installed, and don't even bother for open source projects.
|
In jupyterlab-lsp and probably scattered a few other places, there are a trove of lab- (but not extension-) specific options, which would be nice to polish and document, and include in this repo:
jupyter_notebook_config.json
shell
and peril-fraught escapingThe text was updated successfully, but these errors were encountered: