Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.arch.embedded > #27754
| From | Tobias Baumann <tobias.baumann@elpra.de> |
|---|---|
| Newsgroups | comp.arch.embedded |
| Subject | Re: Unit testing for embedded development |
| Date | 2018-05-18 10:10 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <pdm1pp$pde$1@dont-email.me> (permalink) |
| References | <pdluoq$7rm$1@dont-email.me> |
Am 18.05.2018 um 09:18 schrieb pozz: > > How do you simulate passing of the time (wait for 1010ms)? Of course, I > don't want to wait 10 seconds for the test. I need to speed up the time. > > Is this the correct way to create a unit testing for a buzzer library? You should think about placing constants like the buzzer on/off time in a header file and using preprocessor macros. Then you can use two different header files, one for unit testing and one for the real embedded system. -- Viele Grüße, Tobi https://www.elpra.de
Back to comp.arch.embedded | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Unit testing for embedded development pozz <pozzugno@gmail.com> - 2018-05-18 09:18 +0200 Re: Unit testing for embedded development Tobias Baumann <tobias.baumann@elpra.de> - 2018-05-18 10:10 +0200 Re: Unit testing for embedded development Tom Gardner <spamjunk@blueyonder.co.uk> - 2018-05-18 09:17 +0100 Re: Unit testing for embedded development Paul Rubin <no.email@nospam.invalid> - 2018-05-18 01:23 -0700 Re: Unit testing for embedded development StateMachineCOM <statemachineguru@gmail.com> - 2018-05-19 08:15 -0700
csiph-web