Comments (5)
Open question - can we integrate Cypress tests with codecov? Would be nice to get a blended picture of coverage
from datasette-ui-extras.
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.
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.
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.
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)
- don't enable fkey checks on _internal database
- omnisearch fails to redirect row if compound pkey is used HOT 1
- omnisearch can refuse to do string searches if there are a few integers mixed in
- JSONTagsControl: no way to add an item that doesn't exist in autosuggest
- add row: give option to specify pkey if it's a text field without a default
- Datasette 1.0/main compatibility HOT 1
- python windows charset invalid
- Not working with recent releases
- Add the ability to export a mutable database HOT 1
- Autosuggest doesn't work on mobile
- Consider JSON Schema support HOT 1
- Add `dux` command, rename `dedux` to `undux` HOT 1
- view support for omnisearch
- be able to explicitly specify columns for omnisearch
- CHECK (column IS NULL OR column IN (...)) should work HOT 2
- omnisearch: string fkey to table with no label column is omitted
- pysqlite3-binary does not like setting synchronous = NORMAL HOT 1
- dux_stats_column_values `pks` column got double-encoded somehow HOT 2
- investigate sqlite3 vs pysqlite3-binary difference HOT 4
- `dux_pending_rows` trigger can't handle blobs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datasette-ui-extras.