mirror of
https://github.com/gchq/CyberChef
synced 2025-12-11 05:43:28 +00:00
Tidied up test runner. Passing tests are no longer printed to the console.
This commit is contained in:
@@ -48,6 +48,7 @@ class TestRegister {
|
||||
* Runs all the tests in the register.
|
||||
*/
|
||||
runTests () {
|
||||
console.log("Running tests...");
|
||||
return Promise.all(
|
||||
this.tests.map(function(test, i) {
|
||||
const chef = new Chef();
|
||||
@@ -103,6 +104,8 @@ class TestRegister {
|
||||
* Run all api related tests and wrap results in report format
|
||||
*/
|
||||
runApiTests() {
|
||||
console.log("Running tests...");
|
||||
|
||||
return Promise.all(this.apiTests.map(async function(test, i) {
|
||||
const result = {
|
||||
test: test,
|
||||
|
||||
Reference in New Issue
Block a user