From 9a06c883a19ef899ae8c4cb01f5ddba727b7a414 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Thu, 16 May 2024 17:06:11 +0200 Subject: [PATCH] Copy node test files from correct place, and tidy greedy mocha test Using '**/*.spec.js' on the file root raises errors as Mocha tries to read procfs and so on --- green_metric_tests/package.json | 2 +- usage_scenario.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/green_metric_tests/package.json b/green_metric_tests/package.json index 49997901..09a5481e 100644 --- a/green_metric_tests/package.json +++ b/green_metric_tests/package.json @@ -4,7 +4,7 @@ "description": "Integration tests for the Greencheck API, intended for use with the Green Metrics Tool from Green Code Berlin. (https://www.green-coding.io/projects/green-metrics-tool/)", "main": "index.js", "scripts": { - "test": "mocha '**/*.spec.js'" + "test": "mocha '/*.spec.js'" }, "author": "James Camilleri", "license": "SEE LICENSE IN ../LICENCE", diff --git a/usage_scenario.yml b/usage_scenario.yml index 7cb67060..b84008c7 100644 --- a/usage_scenario.yml +++ b/usage_scenario.yml @@ -74,8 +74,8 @@ services: depends_on: - django setup-commands: - - cp ./green_metric_tests/greencheck_test.spec.js . - - cp ./green_metric_tests/package.json . + - cp /tmp/repo/green_metric_tests/greencheck_test.spec.js . + - cp /tmp/repo/green_metric_tests/package.json . - npm install networks: - greencheck-network