{
  "version": "https://jsonfeed.org/version/1.1",
  "title": "chem-bla-ics",
  "description": "Chemblaics (pronounced chem-bla-ics) is the science that uses open science and computers to solve problems in chemistry, biochemistry and related fields.",
  "home_page_url": "https://chem-bla-ics.linkedchemistry.info/",
  "feed_url": "https://chem-bla-ics.linkedchemistry.info/2007/11/07/comparing-junit-test-results-between.json",
  "icon": "https://chem-bla-ics.linkedchemistry.info/assets/images/chem-bla-ics_logo.png",
  "language": "en",
  "authors": [
    {
      "name": "Egon Willighagen",
      "url": "https://orcid.org/0000-0001-7542-0286",
      "_orcid": "0000-0001-7542-0286"
    }
  ],
  "items": [

    {
      "id": "https://doi.org/10.59350/zs3tv-pp865",
      "url": "https://chem-bla-ics.linkedchemistry.info/2007/11/07/comparing-junit-test-results-between.html",
      "title": "Comparing JUnit test results between CDK trunk/ and a branch",
      "content_html": "<p>I have started using branches for non-trivial patches, like removing the HückelAromaticityDetector, in favor of the\n<a href=\"https://chem-bla-ics.linkedchemistry.info/2007/11/06/evidence-of-aromaticity.html\">new CDKHückelAromaticityDetector <i class=\"fa-solid fa-recycle fa-xs\"></i></a>. I am doing\nthis in my personal <a href=\"http://cdk.svn.sf.net/svnroot/cdk/branches/egonw/remove-non-cdkatomtype-code/\">remove-non-cdkatomtype-code</a>\nbranch, where I can quietly work on the patch until I am happy about it. I make sure to keep it synchronized with\ntrunk with regular <code class=\"language-plaintext highlighter-rouge\">svn merge</code> commands.</p>\n\n<p>Now, the goal is that my branch only fixed failing JUnit tests, not that it creates new regressions. To compare the\nresults between two versions of the <a href=\"\">CDK</a>, I use these commands:</p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>$ cd cdk/trunk/cdk\n$ ant -lib develjar/junit-4.3.1.jar -logfile ant.log test-all\n$ cd ../../branches/egonw/remove-non-cdkatomtype-code/\n$ ant -lib develjar/junit-4.3.1.jar -logfile ant.log test-all\n$ cd ../../..\n$ grep Testcase branches/egonw/remove-non-cdkatomtype-code/reports/*.txt | cut -d':' -f2,3 &gt; branch.results\n$ grep Testcase trunk/cdk/reports/*.txt | cut -d':' -f2,3 &gt; trunk.results\n$ diff -u trunk.results branch.results\n</code></pre></div></div>\n\n<p>The last diff commands gives me a quick overview of what has changed. See get the statistics, I can do:</p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>$ diff -u trunk.results branch.results | grep \"^-Testcase\" | wc -l\n$ diff -u trunk.results branch.results | grep \"^+Testcase\" | wc -l\n</code></pre></div></div>\n\n<p>The first gives me the number of JUnit tests which are now no longer failing, while the second\ngives me the number of tests which are new fails. Ideally, the second is zero. Unfortunately, not yet the case :)</p>",
      "summary": "I have started using branches for non-trivial patches, like removing the HückelAromaticityDetector, in favor of the new CDKHückelAromaticityDetector . I am doing this in my personal remove-non-cdkatomtype-code branch, where I can quietly work on the patch until I am happy about it. I make sure to keep it synchronized with trunk with regular svn merge commands.",
      
      "date_published": "2007-11-07T00:00:00+00:00",
      "date_modified": "2025-04-20T00:00:00+00:00",
      "tags": ["cdk","junit"],
      
      
      
      
      
      
        "authors": [ { "name": "Egon Willighagen", "url": "https://orcid.org/0000-0001-7542-0286" } ]
      
    }

  ]
}
