-
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Add tests to verify CLI shows its help properly:
tns -hshould print the helptns --helpshould print the helptns <command> --helpshould print command's help- Add test to verify
tns dev-generate-helpis working - this command should generate all the.htmlfiles of the help and it is used for our documentation. The generation of help can be broken by either changes in the code or changes in any help page. As CLI supports injecting code in the help pages, when the help is generated, in case the code in the help page is invalid, generation of html files will fail. So it is important to have a test that does the following:- remove
<cli installation dir>/docs/html - execute
tns dev-generate-help - ensure the exit code of the above mentioned command is 0.
- ensures there are files in
<cli installation dir>/docs/html.
- remove
tns helpshould open browser (I know it is not easy to be tested, so this can be added in the future. For the moment we can just ensure CLI is not printing its command line help in this case.)
Metadata
Metadata
Assignees
Labels
No labels