Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7799441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:18:36+00:00 2026-06-02T00:18:36+00:00

I am going to write code coverage tool for myBatis SQL maps. Basically, I

  • 0

I am going to write code coverage tool for myBatis SQL maps.

Basically, I want to know if each statement has been called during “mvn test”. The second step is to compare executed and existing statements and print difference somehow.

I wonder if it already exist because I didn’t find?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:18:39+00:00Added an answer on June 2, 2026 at 12:18 am

    For those who are interested in. Finally I’ve implemented this feature.

    Just a few facts. I’ve created framework based on spring-test and junit. The main goal was to test myBatis statements on multiple databases at the same time.

    Coverage tool is just a feature to help developer define missing tests.
    The way how coverage tool is working could be explained as following steps:

    • get all statement names from myBatis once using getMappedStatementNames() method from SqlMapExecutorDelegate class.
    • collect all statement names that was called.
    • print difference between all and executed to the log.

    There are many other improvements to this small test framework. And then all this stuff integrated into automated build system, integrated with Bamboo server etc.

    At the end I’ve got output like this:

    WARN  18/04/2012 15:14:50 (MultipleDatabaseRunner.java:108) COVERAGE: Statement Audit.getAudit wasn't tested.
    ...
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm going to write first code for handling ssh commands on python and I
So I'm using this code to write the file(just testing now, I'm going to
I know this has been asked before but I can't find it so... Say
I know that each programming language has certain guideline and styles. My question is
I'm going to write a CMS, but right now I'm writing down all my
We are going to write an entire new application for a reservation system. In
I'm going to write my own DAL in C#. I decided to use 'Unit
I'm going to write the web portal using Cassandra databases. Can you advise me
I am going to write a hybrid Web/Desktop app. The main purpose of the
I'm going to write a function for thumbnail creation. I can use both Imagemagick

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.