question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

test: move backend-specific backend tests to the larger suite

See original GitHub issue

Issue rephrased from: https://github.com/ibis-project/ibis/pull/3988#issuecomment-1138599760.

Since https://github.com/ibis-project/ibis/pull/3988, database loading is done automatically by the pytest backend fixtures. In theory, ci/datamgr.py load should not be necessary anymore.

However, we cannot remove ci/datamgr.py load from the CI. Some of the backends have tests that run against backend data, but aren’t “backend” tests in that they do not run across all the backends. The non-backend-backend tests and the proper backend tests expect the same loaded data. Without loading that data at some point, the tests will fail to find the things they need to run the test.

We want to move the backend-specific backend tests to the larger suite. We’ll have to go test by test and remove duplicated tests as well as notimpl/notyet/never-mark the ones that don’t work on the other backends.

The places to start looking are ibis/backends/{sqlite,postgres,clickhouse}/tests/test_functions.py. Much of the duplicated backend testing lies there.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cpcloudcommented, Nov 20, 2022

Let’s close this out! We can continue to do this as time permits.

Thanks for your work on this @anjakefala!

1reaction
cpcloudcommented, Jul 11, 2022

I think we do. I suspect this will need to be tackled in a few PRs, since there are a good number of backend specific tests.

I’ll suggest the following order:

  1. Move the SQL backend tests
  2. Look into moving the pandas tests if they are generalizable
  3. ^ same for the dask backend
  4. Delete the backend specific test directories with prejudice.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Backend Testing Tutorial (Examples) - Guru99
The first step is to acquire design specifications for a database server. The next step is to test the specification design, followed by ......
Read more >
How to Perform Backend Testing - Software Testing Help
This article will help you learn Backend testing. It points you to resources and references that will aid you to master database back...
Read more >
Backend testing: the definitive guide — MindK Blog
We've been providing backend testing as a part of QA service for over 10 years. Here are the basics you need to know...
Read more >
How we added backend integration testing to our CI pipeline
These tests would boot up a virtual browser, move the cursor, and click buttons to simulate a real user using the Sourcegraph application....
Read more >
airflow/TESTING.rst at main · apache/airflow - GitHub
Backend-specific tests only run when the Breeze environment is running with the right backend. If you specify more than one backend in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found