Closed lucaswerkmeister closed 9 years ago
Basically, the steps for each test are:
And the easiest way to do that might be to have one folder per test, and inside that:
command
file, contains the ceylon format
command that’s run in that foldercommand
result-expected
folder – contains the expected structureand the test is simply to run command
in the folder and then compare the trees of result-expected
and result-actual
(where result-actual
is what the formatter produced).
We desperately need tests for the CLI – how file redirection and output works. Probably not as
ceylon.test
tests though, I think this would be simpler to test using some (shell) scripts.