Skip to main content
  • Log in
  • Manage Cookies
EclipseCon - Eclipse Foundation
  • Conference
    • Program Schedule
    • Program List
    • Registration
  • Features
    • Community Day
    • Hacker Day
    • Dinner Meetups
    • OSGi Summit
    • Keynotes
  • Community
    • Code of Conduct
    • Health & Safety at EclipseCon
    • Community Resources
    • 2022 Speakers
    • Information for Speakers
  • Sponsors
    • Be a Sponsor
    • Information for Exhibitors
    • Our Sponsors
    • Sponsor Testimonials
  • Venue
    • Conference Venue
    • Hotels
    • Ludwigsburg
  • About Us
    • EclipseCon 2022
    • Program Committee
    • The Eclipse Foundation
    • Past Conferences
    • Other Events
  1. Home
  2. EclipseCon
  3. EclipseCon 2022
  4. Sessions
  5. Challenges and perils of testing database manipulation code

Challenges and perils of testing database manipulation code

Session details
Status: 
Declined
Speaker(s): 
Csaba Nagy (Software Institute - USI, Lugano)
Experience level: 
Beginner
Tags: 
software testing
Database Access Code
Java
SQL
Session Track: 
All Things Quality & Security
Session Type: 
Standard

Do you have tests for your database manipulation code?

We know the answer. In our research, we studied how database manipulation code is tested in open-source projects. We developed an Eclipse plugin that performs a static analysis based on the Eclipse Java AST to identify the code involved in database communication, and we analyzed hundreds of open-source projects. We were curious about how open-source projects test database access code and found that the database is poorly tested. About 46% of the projects with executable tests did not cover half of their database access methods, and 33% of the projects did not cover the database code at all. Developers face many challenges. Do integration or unit tests need to be written? Should mocks be implemented or an in-memory database be used? How should a database be reset or repopulated between tests? These are only a few examples.

In this talk, we briefly introduce the analysis technique based on our Eclipse plugin and show examples of interesting prevalent problems in testing database manipulation code.

Objective of the presentation: 
Get an insight into testing practices of open-source projects. Understand challenges of testing database manipulation code. Learn about best practices of testing database manipulation code. See an example static analysis tool built on Eclipse technologies to database accesses in Java programs.
Attendee pre-requisites - If none, enter "N/A": 
N/A
  • Sign in to post comments.

Elite

  • Huawei
  • IBM

Premium

  • Yatta Solutions GmbH
  • Eurotech
  • Red Hat

Basic

  • Mercedes-Benz Tech Innovation
  • TypeFox GmbH
  • Obeo
  • SSI Schaefer IT Solutions GmbH
  • SCANOSS
  • Bosch IO GmbH
  • EclipseSource
  • ARCAD Software

Media

  • GermanTechJobs

Become a Sponsor

Eclipse Foundation

  • About Us
  • Contact Us
  • Sponsor
  • Members
  • Governance
  • Code of Conduct
  • Logo and Artwork
  • Board of Directors
  • Careers

Legal

  • Privacy Policy
  • Terms of Use
  • Copyright Agent
  • Eclipse Public License
  • Legal Resources

Useful Links

  • Report a Bug
  • Documentation
  • How to Contribute
  • Mailing Lists
  • Forums
  • Marketplace
EclipseCon is brought to you by The Eclipse Foundation with the support of our sponsors.
Powered by Drupal and built on COD.

Copyright © Eclipse Foundation. All Rights Reserved.

Back to the top