sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Create fletch cmdline tool smoke tests

Open wibling opened this issue 10 years ago • 3 comments

We should have fletch cmdline tool smoke tests that test rudimentary commands for the tool.

E.g. fletch run foo.dart fletch show log ...

Also add running the same command a couple of times. See https://github.com/dart-lang/fletch/issues/325 for an example.

wibling avatar Nov 20 '15 11:11 wibling

@peter-ahe-google These tests should be part of our fletch_tests setup, but should we run tests by mocking the process and directly using Action objects or should we start a subprocess and interact using the command line interface?

zerny avatar Nov 24 '15 12:11 zerny

@zerny that depends on what you want to test. I think you'd want some tests that are based on running the command line (black box), other tests that are using Action objects, and other tests that are calling methods in developer.dart so they can ensure that SessionState.current has the correct state before and after the operation (white box).

peter-ahe-google avatar Nov 30 '15 11:11 peter-ahe-google

This seems to be a general placeholder for adding more fletch command line tests.

Assigning it to Ian as he has created the CLITest et. al.

wibling avatar Dec 23 '15 09:12 wibling