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

update 'save and run' button in Mocha Specs #246

Open
MelMepham opened this issue Jun 26, 2019 · 3 comments
Open

update 'save and run' button in Mocha Specs #246

MelMepham opened this issue Jun 26, 2019 · 3 comments

Comments

@MelMepham
Copy link

BEHAVIOR:
When you press save and run it pops up saying This will overwrite "xxx". Continue? if you press cancel it still runs the test.
If you press continue and are changing the underlying javascript it will over ride the code - making it difficult to figure out how to run the test while keeping changes custom.

ISSUE:

  • I want to run a test without saving it easily.
  • I assumed if you pressed cancel it would not run the test. - but by pressing cancel it is doing the thing I want it to do.

FIX:
Better wording to understand what the actual behaviour is
OR
Add an extra button to run without saving and make the cancel behaviour not run the test.

@phenomnomnominal
Copy link
Contributor

Because the test runs on the generated JavaScript code, the code has to be saved before the test can run. I guess it might be possible to save to a temp location and run it, but that sounds hard!

@MelMepham
Copy link
Author

The test does run if you say 'cancel'..

@phenomnomnominal
Copy link
Contributor

Yeah, cause it saves the file. The “cancel” is definitely broken, but I don’t know exactly how you’d like it to work?

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