Comments (8)
What do you mean by "return a passing Result"?
from quickcheck-state-machine.
Also the equivalent NParallel.. commands may encounter executeCommands: impossible (for example when an exception during a MemoryReferene Create fails) because this #317 is not adopted yet.
Yes, we should implement the analogue of #317 for the NParallel...
functions.
from quickcheck-state-machine.
What do you mean by "return a passing Result"?
The property doesn't fail
from quickcheck-state-machine.
The parallel property shouldn't necessarily fail if an exception is thrown on one of the threads. It should only fail if we cannot complete the history (#317) in any way that linearises.
Arguably we should either make runParallelCommands'
(which completes histories) the default way to run the parallel property and remove runParallelCommands
, or keep both runParallelCommands
and runParallelCommands'
and have runParallelCommands
fail if there's any exception (since that function doesn't complete histories).
Is that what you meant or did you mean something else?
from quickcheck-state-machine.
Another way to think of it is that runParallelCommands
should be used when there's no fault injection (exceptions), while runParallelCommands'
should be used when there's fault injection.
from quickcheck-state-machine.
Yes, this is what I meant. I personally agree a bit more with the second option: make runParallelCommands
fail on exceptions, since it doesn't complete histories.
from quickcheck-state-machine.
Another way to think of it is that
runParallelCommands
should be used when there's no fault injection (exceptions), whilerunParallelCommands'
should be used when there's fault injection.
Yes exactly.
from quickcheck-state-machine.
I personally agree a bit more with the second option...
Yeah, I think you're right -- that's probably the better option.
from quickcheck-state-machine.
Related Issues (20)
- `forAllCommands` generating fewer commands than expected HOT 3
- Exception while generating shrink-list
- simplify: impossible, because of the structure of linearise. HOT 7
- Use dot for visualization of counter examples HOT 13
- simplify: impossible, because of the structure of linearise HOT 2
- shrinking optimizations HOT 5
- Fix CI HOT 15
- Improve garbage-collection/cleaning-up HOT 20
- Add pretty print for CounterExample and improve test output HOT 1
- Use Dot drawing for sequential programs
- Convenient way for manually writing examples HOT 5
- Drop lts-11 and add lts-14 to Travis CI HOT 5
- Fix CI HOT 2
- New Release? HOT 3
- Use a generator to init models HOT 4
- Mock mismatch with semantics HOT 1
- Event as defined in Labelling is misleading HOT 1
- Read instance for Commands HOT 2
- Lower bound on text in latest revision HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickcheck-state-machine.