Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Towards the possibility of mocking parts of the system under test #177

Open
stevana opened this issue Oct 12, 2017 · 2 comments
Open

Towards the possibility of mocking parts of the system under test #177

stevana opened this issue Oct 12, 2017 · 2 comments

Comments

@stevana
Copy link
Collaborator

stevana commented Oct 12, 2017

In the paper Modelling of Autosar Libraries for Large Scale Testing a mocking framework is used to simplify the testing process. The framework is described in the paper An expressive semantics of mocking [PDF].

It seems the mocking part also uses a model, a pre-condition and a transition function, but instead of semantics and post-conditions it has a so called callout function. This callout function is what constructs the mocked return value from the model and the arguments to the mocked action.

How exactly this works and how it can be fit into our library is still not clear to me...

@stevana
Copy link
Collaborator Author

stevana commented Dec 14, 2017

Some ideas about mocking can perhaps also be stolen from: https://github.com/abailly/ioautomata/blob/master/src/IOAutomaton/Model.hs .

@stevana
Copy link
Collaborator Author

stevana commented Feb 15, 2019

The following approach seems to be a step in the right direction of making mocking easier: http://www.well-typed.com/blog/2019/01/qsm-in-depth/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant