-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
676 libms commander error on windows #888
676 libms commander error on windows #888
Conversation
uncommented http tests
Uncommented pm2 installment
….com/INTO-CPS-Association/DTaaS into 676-libms-commander-error-on-windows
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature/distributed-demo #888 +/- ##
============================================================
- Coverage 66.49% 0.00% -66.50%
============================================================
Files 31 6 -25
Lines 394 107 -287
Branches 26 3 -23
============================================================
- Hits 262 0 -262
+ Misses 117 104 -13
+ Partials 15 3 -12
... and 34 files with indirect coverage changes
|
@nichlaes Please consider the following suggestions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nichlaes
Please change CloudCMD word to CloudCMD (an npm package dependency)
@nichlaes |
@nichlaes I get the following error.
This did not happen before. Do you know why? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nichlaes please see the comments. Thanks.
"clean": "npx rimraf build node_modules coverage dist src.svg test.svg", | ||
"format": "prettier --ignore-path ../.gitignore --write \"**/*.{ts,tsx,css,scss}\"", | ||
"graph": "npx madge --image src.svg src && npx madge --image test.svg test", | ||
"start": "node dist/src/main.js", | ||
"start:pm2": "pm2 start pm2.config.js", | ||
"stop:pm2": "pm2 delete libms", | ||
"syntax": "npx eslint . --fix", | ||
"syntax": "eslint . --fix", | ||
"pretest": "npx shx cp test/data/user2/tools/README.md ../../files/user2/tools/README.md", | ||
"posttest": "npx rimraf ../../files/user2/tools/README.md", | ||
"test:all": "npx cross-env LOCAL_PATH=test/data jest --testPathIgnorePatterns=cloudcmd --coverage", | ||
"test:e2e": "npx cross-env LOCAL_PATH=test/data jest --config ./test/jest-e2e.json --coverage", | ||
"test:http": "yarn build && pm2 start -f --name libms-test dist/src/main.js -- -c .env -H ./config/http.json && jest test/cloudcmd --coverage --coverageThreshold=\"{}\" && pm2 delete libms-test", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command, when executed on git-bash of Windows 11, is giving the following error.
$ yarn test:http
yarn run v1.22.19
$ yarn build && pm2 start -f --name libms-test dist/src/main.js -- -c .env -H ./config/http.json && jest test/cloudcmd --coverage --coverageThreshold="{}" && pm2 delete libms-test
$ tsc
[PM2] Starting C:\Users\au598657\git\DTaaS\servers\lib\dist\src\main.js in fork_mode (1 instance)
[PM2] Done.
┌────┬───────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├────┼───────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ libms-test │ default │ 0.4.6 │ fork │ 28440 │ 0s │ 0 │ online │ 9.3% │ 54.8mb │ au598657 │ disabled │
└────┴───────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
console.log
{
path: '/',
files: [
{
name: 'common',
size: '0b',
date: '08.04.2024',
owner: 0,
mode: 'rw- rw- rw-',
type: 'directory'
},
{
name: 'template',
size: '0b',
date: '18.06.2024',
owner: 0,
mode: 'rw- rw- rw-',
type: 'directory'
},
{
name: 'user1',
size: '0b',
date: '11.12.2023',
owner: 0,
mode: 'rw- rw- rw-',
type: 'directory'
},
{
name: 'user2',
size: '0b',
date: '11.12.2023',
owner: 0,
mode: 'rw- rw- rw-',
type: 'directory'
},
{
name: 'README.md',
size: '180b',
date: '11.12.2023',
owner: 0,
mode: 'rw- rw- rw-',
type: 'file'
},
{
name: 'test.txt',
size: '12b',
date: '11.09.2024',
owner: 0,
mode: 'rw- rw- rw-',
type: 'file'
}
]
}
at Object.<anonymous> (test/cloudcmd/cloudcmd.spec.ts:27:13)
PASS test/cloudcmd/cloudcmd.spec.ts (10.616 s)
cloudcmd test for the application
√ should return the correct directory that is set as root (103 ms)
√ should return the content of a file that is uplaoded to cloudcmd (5 ms)
√ should upload a file to cloudcmd (30 ms)
---------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
---------------------------|---------|----------|---------|---------|-------------------
All files | 0 | 0 | 0 | 0 |
src | 0 | 0 | 0 | 0 |
bootstrap.ts | 0 | 0 | 0 | 0 | 1-36
types.ts | 0 | 100 | 0 | 0 | 1-91
src/cloudcmd | 0 | 0 | 0 | 0 |
cloudcmd.ts | 0 | 0 | 0 | 0 | 2-40
src/files | 0 | 100 | 100 | 0 |
files.module.ts | 0 | 100 | 100 | 0 | 1-9
src/files/resolvers | 0 | 100 | 0 | 0 |
files.resolver.ts | 0 | 100 | 0 | 0 | 1-21
src/files/services | 0 | 0 | 0 | 0 |
files-service.factory.ts | 0 | 0 | 0 | 0 | 1-20
local-files.service.ts | 0 | 0 | 0 | 0 | 1-62
---------------------------|---------|----------|---------|---------|-------------------
Test Suites: 1 passed, 1 total
Tests: 3 passed, 3 total
Snapshots: 0 total
Time: 17.925 s
Ran all test suites matching /test\\cloudcmd/i.
[PM2] Applying action deleteProcessId on app [libms-test](ids: [ 0 ])
[PM2] [libms-test](0) ✓
┌────┬───────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
└────┴───────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
Done in 22.34s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nichlaes has problem been resolved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@prasadtalasila Is that an error? Is it not just the console.log?
@nichlaes is this PR complete? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nichlaes thanks for the updates. Please see the comments.
"clean": "npx rimraf build node_modules coverage dist src.svg test.svg", | ||
"format": "prettier --ignore-path ../.gitignore --write \"**/*.{ts,tsx,css,scss}\"", | ||
"graph": "npx madge --image src.svg src && npx madge --image test.svg test", | ||
"start": "node dist/src/main.js", | ||
"start:pm2": "pm2 start pm2.config.js", | ||
"stop:pm2": "pm2 delete libms", | ||
"syntax": "npx eslint . --fix", | ||
"syntax": "eslint . --fix", | ||
"pretest": "npx shx cp test/data/user2/tools/README.md ../../files/user2/tools/README.md", | ||
"posttest": "npx rimraf ../../files/user2/tools/README.md", | ||
"test:all": "npx cross-env LOCAL_PATH=test/data jest --testPathIgnorePatterns=cloudcmd --coverage", | ||
"test:e2e": "npx cross-env LOCAL_PATH=test/data jest --config ./test/jest-e2e.json --coverage", | ||
"test:http": "yarn build && pm2 start -f --name libms-test dist/src/main.js -- -c .env -H ./config/http.json && jest test/cloudcmd --coverage --coverageThreshold=\"{}\" && pm2 delete libms-test", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nichlaes has problem been resolved?
Code Climate has analyzed commit 05d0f01 and detected 0 issues on this pull request. View more on Code Climate. |
No description provided.