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


Groups > comp.arch.embedded > #29661

Tests in embedded

From pozz <pozzugno@gmail.com>
Newsgroups comp.arch.embedded
Subject Tests in embedded
Date 2020-05-16 08:43 +0200
Organization A noiseless patient Spider
Message-ID <r9o23d$9ln$1@dont-email.me> (permalink)

Show all headers | View raw


I'm reading TDD book by Grenning, but I don't know if it is really 
up-to-date.

Do you use unit tests, automatic testing and/or TDD approach in your 
embedded projects? Which tools do you really use?

Writing some tests for isolated units is very simple, they can be 
manually written with some asserts. When the unit is connected to other 
units (i.e., uses services from another module or control a driver) this 
is much more complex and I understood you need to write some mocks in 
the tests. In this case, manually writing mocks without using any tools 
can be cumbersome.

What do you think of ceedling, that is Unity + Cmock + CException?

Do you usually run tests on simulator/emulator on development machine or 
directly on the target board?

Could you suggest books (or online resources) on unit testing in 
general, not strictly related to embedded?

Another question. Usually tests are software that checks other software 
(the final application). They can be run automatically if the build 
system is well organized.
What about when you need to test the firmware/hardware? For example, how 
do you test a SPI GPIO expander driver? The only way to test if the 
driver is able to pull high or low a pin on the expander is to inspect 
the voltage with a voltmeter. Of course this isn't automatic.

Back to comp.arch.embedded | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Tests in embedded pozz <pozzugno@gmail.com> - 2020-05-16 08:43 +0200
  Re: Tests in embedded Mikko OH2HVJ <mikko.syrjalahti@nospam.fi> - 2020-05-16 10:26 +0300
    Re: Tests in embedded Paul Rubin <no.email@nospam.invalid> - 2020-05-16 02:04 -0700
      Re: Tests in embedded Mikko OH2HVJ <mikko.syrjalahti@nospam.fi> - 2020-05-16 20:08 +0300
        Re: Tests in embedded pozz <pozzugno@gmail.com> - 2020-05-16 20:51 +0200
          Re: Tests in embedded Clifford Heath <no.spam@please.net> - 2020-05-17 09:35 +1000
          Re: Tests in embedded Mikko OH2HVJ <mikko.syrjalahti@nospam.fi> - 2020-05-17 11:26 +0300
      Re: Tests in embedded Dave Nadler <drn@nadler.com> - 2020-06-11 05:38 -0700

csiph-web