Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ jobs:
run: |
cd sandbox
npm run test
cd -
mkdir coverage coverage-temp
TMPDIR="./coverage-temp" npx lcov-result-merger sandbox/coverage/lcov.info coverage/lcov.info --prepend-source-files
rm -r coverage-temp

- name: Check licenses
run: make check-licenses
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ env
*.pem
sandbox/coverage
sandbox/.nyc_output
coverage
zap-report/
zap-report.json
zap-report.xml
Expand Down
2 changes: 1 addition & 1 deletion sandbox/messages/2WL4pcpmKxYYblm3PSKVEqcmEPX.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{
"queriedAt": "2023-10-09T10:31:59Z",
"source": "pds",
"version": 1,
"version": "1",
"labels": []
}
]
Expand Down
142 changes: 0 additions & 142 deletions sandbox/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"license-checker": "^25.0.1",
"mocha": "^11.7.2",
"mocha-junit-reporter": "^2.2.1",
"mocha-multi": "^1.1.3",
"nodemon": "^3.1.10",
"supertest": "^7.1.4"
}
Expand Down
10 changes: 7 additions & 3 deletions scripts/config/sonar-scanner.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ sonar.organization=nhsdigital
sonar.projectKey=NHSDigital_communications-manager-api
sonar.sourceEncoding=UTF-8
sonar.language=js,python
sonar.qualitygate.wait=true

sonar.sources=.
sonar.tests=tests/, sandbox/__test__
sonar.test.inclusions=tests/**.py, sandbox/__test__/**
sonar.exclusions=.venv/**,proxies/utils/performance/*

#exclude everything from test coverage, this is covered by other tools
sonar.coverage.exclusions=**/*
#sonar.nodejs.executable=/usr/bin/node
sonar.python.version=3.10.8

# Configure test coverage reporting
sonar.javascript.lcov.reportPaths=coverage/lcov.info

#exclusion rules for our proxy JS - rhinojs 1.7.12 -https://mozilla.github.io/rhino/compat/engines.html
sonar.issue.ignore.multicriteria=optChain,useLet

Expand Down
4 changes: 4 additions & 0 deletions tests/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@
'.txt': 'markdown',
'.md': 'markdown',
}

autodoc_mock_imports = [
"tests"
]
2 changes: 1 addition & 1 deletion tests/lib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .assertions import Assertions
from .assertions.assertions import Assertions
from .permutations import Permutations
from .generators import Generators
from .authentication import AuthenticationCache
Expand Down
Loading
Loading