Open timotheecour opened 4 years ago
@xflywind @juancarlospaco now that https://github.com/nim-lang/fusion/pull/64 was merged, let's discuss how to fix this; lots of nim js code (eg @juancarlospaco's wrappers) can only be tested inside a browser environment. There's 2 things to do IMO (and we should do both):
My idea was to make a pure-nim stdlib-only single-file KISS way of testing those things, thats why I sent https://github.com/nim-lang/Nim/pull/15828 the solution was literally there, with that integrated and tested with Nim you can create a browser specifically designed for testing on <500 LOC
It is financed by Petrobras big oil corp, coded by Lua creators, 100% C, moves slow like ~1 version/year.
Now we need a GUI module on stdlib for "Finish.exe GUI", but we removed all of them.
:shrug:
* harder (this issue): run in CI, either selenium or webdriver or chromium etc. At least running on 1 browser (eg chromium) would be a good start
With bindings for puppeteer this would be doable. https://github.com/puppeteer/puppeteer
links
https://chromedriver.chromium.org/ WebDriver is an open source tool for automated testing of webapps across many browsers. It provides capabilities for navigating to web pages, user input, JavaScript execution, and more. ChromeDriver is a standalone server that implements the W3C WebDriver standard. ChromeDriver is available for Chrome on Android and Chrome on Desktop (Mac, Linux, Windows and ChromeOS).
Selenium driver · Issue #76 · nim-lang/needed-libraries
dom96/webdriver
nim js -r --port:1234 main
: open in browser a template html that calls generated js, use livereload server etc; ditto withnim doc -r
· Issue #165 · timotheecour/NimD20200514T223607
[do not merge] dummy commit that shows CI doesn't check validity of html files by timotheecour · Pull Request #41 · brentp/nim-plotly
https://github.com/nim-lang/fusion/issues/71
Headless Nim Executable App Option? - Nim forum
I want to use gecko driver headless. - Nim forum