Giter VIP home page Giter VIP logo

Comments (9)

DanielRuf avatar DanielRuf commented on May 22, 2024 2

Would be good to have some tests, probably based on puppeteer and Browserstack.

from immortaldb.

jcar787 avatar jcar787 commented on May 22, 2024 1

Sorry, for the delay in my response.
I have experience on Jest no Puppeteer.
I can start working in some jest tests and leave the door open for Puppeteer if someone else likes to take that task.

from immortaldb.

DanielRuf avatar DanielRuf commented on May 22, 2024 1

Afaik there is jest-puppeteer to simplify the integration.

from immortaldb.

DanielRuf avatar DanielRuf commented on May 22, 2024 1

https://www.npmjs.com/package/jest-puppeteer

from immortaldb.

gruns avatar gruns commented on May 22, 2024

Thus far, I've run a simple webserver in the root directory

$ http-server -p 5050 &
$ google-chrome "http://localhost:5050/testing/test.html"

and tested manually via testing/test.html. This is, obviously, boorish.

IronDB needs automated tests.

Until I get around to this, pull requests graciously welcome.

from immortaldb.

jcar787 avatar jcar787 commented on May 22, 2024

IIn the PR I did for using lodash functions instead of the whole library, I added a webpack-server to make the test in the browser easier using npm run serve.
I can add that again if you want.
Also we can add another set of unit tests using jest and then add the tests using puppeteer.
That's my thought at least.
Let me know. If that works.

from immortaldb.

gruns avatar gruns commented on May 22, 2024

IIn the PR I did for using lodash functions instead of the whole library, I
added a webpack-server to make the test in the browser easier using npm run
serve. I can add that again if you want.

I saw that. That was great. So great, I added it back out of band.

Thank you.

Also we can add another set of unit tests using jest and then add the tests
using puppeteer. That's my thought at least. Let me know. If that works.

That would awesome; ImmortalDB needs automated tests.

Do you have experience with Jest and/or Puppeteer? Would you be able to start on
such tests?

from immortaldb.

gruns avatar gruns commented on May 22, 2024

I can start working in some jest tests and leave the door open for Puppeteer
if someone else likes to take that task.

Awesome. Tests will be sick.

I have no experience with Jest nor Puppeteer, but let me know if/where I can
help provide input.

from immortaldb.

gruns avatar gruns commented on May 22, 2024

Until automated tests have been built, the webpack-dev-server can be started,
and the test page testing/test.html automatically opened, with:

$ npm start

from immortaldb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.