Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #32238

Re: API vc MVC

From Martin Gregorie <martin@address-in-sig.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: API vc MVC
Date 2015-08-01 10:13 +0000
Organization A noiseless patient Spider
Message-ID <mpi64r$6do$3@dont-email.me> (permalink)
References (6 earlier) <mparf2$jvp$1@dont-email.me> <55bae330$0$297$14726298@news.sunsite.dk> <55bb73ad$0$2873$e4fe514c@news.xs4all.nl> <55bc0612$0$293$14726298@news.sunsite.dk> <mphiea$k8s$1@dont-email.me>

Show all headers | View raw


On Sat, 01 Aug 2015 05:39:12 +0100, Eternal Hope wrote:

> I stick to plain vanilla when I can and I don't mind admitting it and
> there's not much I can't do, in fact I can't think of anything I can't
> do and I don't need a framework to do it. My SQL is spare, and usually
> works OOTB, my java compiles first time. Years of practice and studious
> avoidance of frameworks.
> 
> Give me a basic text editor, a terminal and a runtime and compiler and
> I'm good to go
>
Yep. I see no need for JUnit either: having used it, I wasn't impressed 
with the appearance or content of the test results. 

Instead I prefer to script rather than program my unit/regression tests, 
though I admit this probably shows a bias toward the UNIX way of doing 
things rather than the Windows way. My approach is simple: one driver 
class I wrote years ago that reads the script, splits non-comment lines 
into words (function name followed by argument list the comments describe 
expected results), and passes the function name and arguments to an 
interface class which is little more than an if..then..else totem pole 
and is specific to the class(es) that the script tests. When run, the 
output is the script with interspersed results, i.e. something thats 
easily readable. Regression tests? Simple: a bash script that diffs the 
output against saved good output from a previous run. If there's any 
output from diff, the regression test failed. 

This approach is not only dead simple, its fast too. Even scripts 
containing several tens of test cases typically run in well under a 
second, so its practical to run a suite of regression tests after every 
successful compile to prove that the last changes didn't break anything.

I use the same approach for C development. Also, because the test 
harnesses have very few dependencies, its entirely practical to 
distribute them with the source so anybody can use the regression tests 
to check that they have successfully compiled and installed the code.


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

API vc MVC Leonan Luppi <leonan.luppi@gmail.com> - 2015-05-11 19:04 -0700
  Re: API vc MVC Joerg Meier <joergmmeier@arcor.de> - 2015-05-12 08:09 +0200
    Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-27 22:36 -0400
  Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-27 22:40 -0400
    Re: API vc MVC Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-07-28 11:55 +0800
      Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-28 18:56 -0400
        Re: API vc MVC Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-07-29 07:03 +0800
          Re: API vc MVC Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-07-29 08:10 +0800
            Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-30 22:43 -0400
          Re: API vc MVC e.d.programmer@gmail.com - 2015-07-29 05:14 -0700
            Re: API vc MVC Eternal Hope <laughingspam99@gmail.com> - 2015-07-29 16:30 +0100
              Re: API vc MVC Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-07-30 05:46 +0800
                Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-30 22:56 -0400
              Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-30 22:53 -0400
                Re: API vc MVC Silvio <silvio@internet.com> - 2015-07-31 15:10 +0200
                Re: API vc MVC Silvio <silvio@internet.com> - 2015-07-31 15:12 +0200
                Re: API vc MVC Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-08-01 09:04 +0800
                Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-31 19:34 -0400
                Re: API vc MVC Eternal Hope <laughingspam99@gmail.com> - 2015-08-01 05:39 +0100
                Re: API vc MVC Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-01 10:13 +0000
                Re: API vc MVC Eternal Hope <laughingspam99@gmail.com> - 2015-08-01 21:54 +0100
                Re: API vc MVC Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-01 22:49 +0000
                Re: API vc MVC Eternal Hope <laughingspam99@gmail.com> - 2015-08-02 07:57 +0100
                Re: API vc MVC Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-02 07:49 +0000
                Re: API vc MVC Eternal Hope <laughingspam99@gmail.com> - 2015-08-02 09:28 +0100
            Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-30 22:45 -0400
              Re: API vc MVC e.d.programmer@gmail.com - 2015-07-31 05:31 -0700
          Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-30 22:41 -0400
        Re: API vc MVC Eternal Hope <laughingspam99@gmail.com> - 2015-07-29 16:24 +0100

csiph-web