timotheecour / Nim

Nim is a compiled, garbage-collected systems programming language with a design that focuses on efficiency, expressiveness, and elegance (in that order of priority).
http://nim-lang.org/
Other
2 stars 0 forks source link

we need a way to test for `nim js -d:nimbrowser` #197

Open timotheecour opened 4 years ago

timotheecour commented 4 years ago

links

timotheecour commented 3 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):

juancarlospaco commented 3 years ago

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:

tandy-1000 commented 2 years ago
* 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