testing-strategies

Test Automation with Embedded Hardware

旧时模样 提交于 2019-11-28 03:35:58
Has anyone had success automating testing directly on embedded hardware? Specifically, I am thinking of automating a battery of unit tests for hardware layer modules. We need to have greater confidence in our hardware layer code. A lot of our projects use interrupt driven timers, ADCs, serial io, serial SPI devices (flash memory) etc.. Is this even worth the effort? We typically target: Processor: 8 or 16 bit microcontrollers (some DSP stuff) Language: C (sometimes c++). Sure. In the automotive industry we use $100,000 custom built testers for each new product to verify the hardware and

What Makes a Good Unit Test? [closed]

两盒软妹~` 提交于 2019-11-26 00:38:57
问题 I\'m sure most of you are writing lots of automated tests and that you also have run into some common pitfalls when unit testing. My question is do you follow any rules of conduct for writing tests in order to avoid problems in the future? To be more specific: What are the properties of good unit tests or how do you write your tests? Language agnostic suggestions are encouraged. 回答1: Let me begin by plugging sources - Pragmatic Unit Testing in Java with JUnit (There's a version with C#-Nunit