Comments (3)
The desired behaviour is the given test to be aborted if a query takes too long.
I believe that you could achieve the same effect in other ways even without such a feature in DbFit:
- Configure a timeout for long queries at the database level
- Configure your CI to break off the test run if something takes too long (obviously not ideal as that prevents subsequent tests from running, but at least prevents the build from hanging)
- You could in fact use the JUnit feature you mentioned, because FitNesse (and hence DbFit) tests can be triggered using JUnit. This is in fact how DbFit's own acceptance tests are run inside the Maven build.
Would any of these alternatives work for you?
Also, adding stable and well-running timeout functionality is a non-trivial task technically, one that could potentially add quite a bit of complexity to the code. It's not that I'm not ruling out adding this feature, I just don't see getting to it any time soon.
I would be open to pull requests though!
from dbfit.
There is a [Statement.setQueryTimeout](http://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#setQueryTimeout(int\)) method which may be helpful in implementing this.
No urgent need for this from my side. Maybe I'll take the opportunity for pull requests for some of the open issues - as soon as I get some idea about the internals of dbfit, fitness and all the related stuff :-)
from dbfit.
There is a Statement.setQueryTimeout method which may be helpful in implementing this.
Ah, didn't know about this - makes things pretty simple!
No urgent need for this from my side. Maybe I'll take the opportunity for pull requests for some of the open issues - as soon as I get some idea about the internals of dbfit, fitness and all the related stuff :-)
That would of course be awesome and very appreciated! Give me a heads-up if a particular bug/features takes your fancy and I can support you with it...
from dbfit.
Related Issues (20)
- Insertion not working HOT 2
- Upgrade Junit to 5.x/Jupiter
- Broken link/missing version? HOT 3
- How to use regular expressions in dbfit HOT 2
- How can I supply mass input from a table to a stored procedure
- Accessing dbfit parameter as a variable HOT 2
- Running a single test from a table of tests HOT 2
- What is the exclamation mark for in dbfit commands? HOT 2
- Whitespace issue makes test fail, but html report does not highlight this. HOT 2
- Clean fixture is not documented in command reference documentation
- Can't get the startWith and RerunLastFailures features to work
- UnsupportedOperationException: Type PL/SQL RECORD is not supported
- Test results not matching with the Message HOT 11
- dbfit 4.0.0 and maven HOT 1
- Publish dbfit 4.0.0 to maven central HOT 4
- Incorrect sqlserver maven dependencies 4.0.0
- Test execution hangs on an Apple chip M1 based laptop HOT 2
- No table found "mysql.proc" when connecting with MYSQL version 8
- Oracle JRE only? HOT 2
- MySQL v8
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 dbfit.