diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-03-15 17:58:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-15 17:58:59 +0100 |
commit | 70434b5bfba701f9de2221b64ee40262c5370ae0 (patch) | |
tree | 9aa3753abf6f2e0f98cd16055cf8819153921ac2 /cli/tests | |
parent | 620dd9724d4f8568efebb1642b49c653de9424cd (diff) |
refactor: change test reporter output (#4371)
This commit changes output of default test reporter to resemble output from Rust test runner;
first the name of running test is printed with "...", then after test has run result is printed on the same line.
* Split "Deno.TestEvent.Result" into "TestStart" and "TestEnd";
* changes TestReporter interface to support both events;
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/057_revoke_permissions.out | 16 | ||||
-rw-r--r-- | cli/tests/compiler_api_test.out | 27 | ||||
-rw-r--r-- | cli/tests/workers_test.out | 10 |
3 files changed, 27 insertions, 26 deletions
diff --git a/cli/tests/057_revoke_permissions.out b/cli/tests/057_revoke_permissions.out index 5ea2b9ecb..45c1340ee 100644 --- a/cli/tests/057_revoke_permissions.out +++ b/cli/tests/057_revoke_permissions.out @@ -1,10 +1,10 @@ running 7 tests -OK runGranted [WILDCARD] -OK readGranted [WILDCARD] -OK writeGranted [WILDCARD] -OK netGranted [WILDCARD] -OK envGranted [WILDCARD] -OK pluginGranted [WILDCARD] -OK hrtimeGranted [WILDCARD] +test runGranted ... ok [WILDCARD] +test readGranted ... ok [WILDCARD] +test writeGranted ... ok [WILDCARD] +test netGranted ... ok [WILDCARD] +test envGranted ... ok [WILDCARD] +test pluginGranted ... ok [WILDCARD] +test hrtimeGranted ... ok [WILDCARD] -test result: OK 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [WILDCARD] +test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [WILDCARD] diff --git a/cli/tests/compiler_api_test.out b/cli/tests/compiler_api_test.out index 9ab6536a2..b0071bd5a 100644 --- a/cli/tests/compiler_api_test.out +++ b/cli/tests/compiler_api_test.out @@ -1,15 +1,16 @@ running 12 tests -OK compilerApiCompileSources [WILDCARD] -OK compilerApiCompileNoSources [WILDCARD] -OK compilerApiCompileOptions [WILDCARD] -OK compilerApiCompileLib [WILDCARD] -OK compilerApiCompileTypes [WILDCARD] -OK transpileOnlyApi [WILDCARD] -OK transpileOnlyApiConfig [WILDCARD] -OK bundleApiSources [WILDCARD] -OK bundleApiNoSources [WILDCARD] -OK bundleApiConfig [WILDCARD] -OK bundleApiJsModules [WILDCARD] -OK diagnosticsTest [WILDCARD] +test compilerApiCompileSources ... ok [WILDCARD] +test compilerApiCompileNoSources ... ok [WILDCARD] +test compilerApiCompileOptions ... ok [WILDCARD] +test compilerApiCompileLib ... ok [WILDCARD] +test compilerApiCompileTypes ... ok [WILDCARD] +test transpileOnlyApi ... ok [WILDCARD] +test transpileOnlyApiConfig ... ok [WILDCARD] +test bundleApiSources ... ok [WILDCARD] +test bundleApiNoSources ... ok [WILDCARD] +test bundleApiConfig ... ok [WILDCARD] +test bundleApiJsModules ... ok [WILDCARD] +test diagnosticsTest ... ok [WILDCARD] + +test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [WILDCARD] -test result: OK 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [WILDCARD] diff --git a/cli/tests/workers_test.out b/cli/tests/workers_test.out index 1238ca70a..efc0ce57c 100644 --- a/cli/tests/workers_test.out +++ b/cli/tests/workers_test.out @@ -1,7 +1,7 @@ running 4 tests -OK workersBasic [WILDCARD] -OK nestedWorker [WILDCARD] -OK workerThrowsWhenExecuting [WILDCARD] -OK workerCanUseFetch [WILDCARD] +test workersBasic ... ok [WILDCARD] +test nestedWorker ... ok [WILDCARD] +test workerThrowsWhenExecuting ... ok [WILDCARD] +test workerCanUseFetch ... ok [WILDCARD] -test result: OK 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [WILDCARD] +test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [WILDCARD] |