Page MenuHomePhabricator

[alias-server] node unit test CI integration
ClosedPublic

Authored by bytesofman on Mar 29 2023, 23:40.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCc92af272d746: [alias-server] node unit test CI integration
Summary

T3060

CI integration for alias-server unit tests

Added nyc dependency to generate coverage report for CI

Test Plan

See if tests run in CI

Diff Detail

Repository
rABC Bitcoin ABC
Branch
alias-server-tests-to-ci
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22844
Build 45308: Build Diff
Build 45307: arc lint + arc unit

Event Timeline

@bot alias-server-tests

web/alias-server/.gitignore
5 ↗(On Diff #39035)

newline

Tail of the build log:

/work/web/alias-server /work/abc-ci-builds/alias-server-tests
npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

added 426 packages, and audited 427 packages in 5s

79 packages are looking for funding
  run `npm fund` for details

4 moderate severity vulnerabilities

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
npm notice 
npm notice New major version of npm available! 7.7.6 -> 9.6.2
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.2>
npm notice Run `npm install -g npm@9.6.2` to update!
npm notice 
npm notice 
npm notice New major version of npm available! 7.7.6 -> 9.6.2
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.2>
npm notice Run `npm install -g npm@9.6.2` to update!
npm notice 
npm ERR! Missing script: "build"
npm ERR! 
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-03-30T07_21_00_521Z-debug.log
Build alias-server-tests failed with exit code 1
Fabien requested changes to this revision.Mar 30 2023, 08:12

the script is not working, back to your queue

This revision now requires changes to proceed.Mar 30 2023, 08:12

alias-server does not have a build script, removed from tests

updating env variables for mocha

globally install command line mocha test reporting dependencies

remove junit-reporter from alias-server npm dependencies

cleaning up script and dirs

Adding reporter and report script

change script name from 'report' to 'junit'

This revision is now accepted and ready to land.Mar 30 2023, 14:52