You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We already have unit tests on the transport modules and some basic end-to-end tests of the scanners via the vECU.
But we are missing unit tests on the scanner level, meaning isolated tests for the functionality/logic of the scanner.
I see the following advantages by having those:
mock interface for all dependent modules (e.g. transport, power supply, ...)
test infrastructure
write test cases
One essential question is, how we want to express the test case logic.
Should this be in code, or in some kind of configuration language which gets then parsed by the test infrastructure.
A configuration language could be expressed as a table:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We already have unit tests on the transport modules and some basic end-to-end tests of the scanners via the vECU.
But we are missing unit tests on the scanner level, meaning isolated tests for the functionality/logic of the scanner.
I see the following advantages by having those:
Based on the thoughts from Russ Cox (https://research.swtch.com/testing), I'm thinking about the following test concept:
To realize this, I see the following open points
One essential question is, how we want to express the test case logic.
Should this be in code, or in some kind of configuration language which gets then parsed by the test infrastructure.
A configuration language could be expressed as a table:
{'request': '27*', 'response': '7F2711'}
{'scan-result': {0x01: {0x27: 'serviceNotSupported'}}, 'exception': none, 'events': []}
{'request': '27*', 'response': 'TimeoutError'}
{'scan-result': {0x01: {0x27: 'TimeoutError'}}, 'exception': none, 'events': ['reconnect']}
What do you think about this topic?
Beta Was this translation helpful? Give feedback.
All reactions