Coder Social home page Coder Social logo

Smoke tests about datasette-ui-extras HOT 5 CLOSED

cldellow avatar cldellow commented on June 28, 2024
Smoke tests

from datasette-ui-extras.

Comments (5)

cldellow avatar cldellow commented on June 28, 2024

Open question - can we integrate Cypress tests with codecov? Would be nice to get a blended picture of coverage

from datasette-ui-extras.

cldellow avatar cldellow commented on June 28, 2024

Rough idea: add e2e_test_host.py that looks like:

import sys
from datasette.cli import cli

sys.exit(cli())

Have a pre-canned cooking.db that we can fetch from the web. It should be duxed already so we don't have to wait for the indexers to run.

Then as a Cypress setup step do:

coverage run -m e2e_test_host

Then do the Cypress stuff.

Then Ctrl+C the coverage process (how?)

Then we should have an accurate capture of the backend stuff.

This will have exercised the JS, but the JS is not instrumented, so we won't have coverage data... that's probably OK for the moment, though it would be nice to have a more complete picture.

from datasette-ui-extras.

cldellow avatar cldellow commented on June 28, 2024

The April 2011 DIY meta dump is only 500kb as a SQLite db, let's prefer to use that for testing (vs cooking @ 35MB or superuser @ 435MB)

from datasette-ui-extras.

cldellow avatar cldellow commented on June 28, 2024

That also indexes basically immediately, it has like ~3,000 rows total. I think we could use it in non-duxed form as the starting point for the tests, which would be convenient for also testing indexing.

from datasette-ui-extras.

cldellow avatar cldellow commented on June 28, 2024

Fixed in #91

The tests are very smokey, but I think that's a reasonable balance for the moment

from datasette-ui-extras.

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.