Code Monkey home page Code Monkey logo

Comments (3)

benilovj avatar benilovj commented on September 27, 2024

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:

  1. Configure a timeout for long queries at the database level
  2. 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)
  3. 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.

javornikolov avatar javornikolov commented on September 27, 2024

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.

benilovj avatar benilovj commented on September 27, 2024

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)

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.