Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Svelte example lacks test command #255

Open
justinmoon opened this issue Mar 29, 2020 · 1 comment
Open

Svelte example lacks test command #255

justinmoon opened this issue Mar 29, 2020 · 1 comment

Comments

@justinmoon
Copy link

Instructions say to run:

yarn && yarn test

I get:

$ yarn test
yarn run v1.22.4
warning package.json: No license field
error Command "test" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

package.json seems to lack a test command.

@DevanB
Copy link
Owner

DevanB commented Mar 29, 2020

Hey @justinmoon!

Thanks for opening a story. I've actually been struggling to get testing working in all three examples. It seems that model-based testing is actually not as easy as David Khourshid likes to show. In fact, the last attempt I had at building a model-based testing solution for these trivia game examples proved to me that I would have to remove all guards, transient transitions, and invoke calls in the machine that is tested against (not the app machine). Doing this means the machine is effectively a welcome state, a quiz state that displays only one question, and a results state. Based on this finding, I've questioned how much model-based testing in these examples helps.

I'd be curious to know if a Cypress E2E test be more beneficial to someone like yourself who is looking at these examples?

I'm curious your thoughts; share them all as I'm passionate about helping others try to understand why and why not to use state machines in their library/framework/language of choice.

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

No branches or pull requests

2 participants