-
Notifications
You must be signed in to change notification settings - Fork 112
Conversation
Looks like the browser tests are failing in CI because it can't run |
5be36cc
to
4c545da
Compare
Got CI to work by apt-get installing some additional dependencies. |
@@ -0,0 +1,33 @@ | |||
<!DOCTYPE html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we're not super consistent in our directory naming between using hyphens and underscores. Do we want to have a mix of both?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah we have been inconsistent here. Part of the problem is that there is an unofficial Go convention of using hyphens, but we also have things like node_modules/ which is using underscores.
How about we use hyphens for directory names whenever possible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I'm down.
32312e3
to
0bc35fa
Compare
0bc35fa
to
e06331f
Compare
This PR adds full browser support for the
meshdb
package (and thedb
package, which it depends on). Fixes #297.I've also added a new test which uses QUnit bindings. The test is compiled to WebAssembly and run in a headless browser as part of
go test
. We might be able to clean up and simplify the process in the future (e.g. by using a tool which automatically builds the required index.html file instead of checking it into git), but it should be good enough for now.I think our testing strategy should be to run all unit tests in Node.js because it's easier and allows us to use the same test files we already have (any file ending in
_test.go
). We only need to run high-level integration tests in the browserThis depends on two external PRs. I modified our Gopkg.toml file to pull from our forks while we are waiting for these PRs to be merged.
goleveldb
pacakge.norunners/vert
package, which we are using to help convert between Go and JavaScript types.