-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add rush test command #60
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
], | ||
"description": "", | ||
"scripts": { | ||
"build": "rm -rf dist && tsc && cp -r src/test/backend/ dist/test/", | ||
"build": "rm -rf dist && tsc && cp -r src/test/backend dist/test/", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't modern There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. tsc does not clean up, so various confusing files collect up over time. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But the behaviour this implements is confusing Seems like we're trying to fix microsoft/TypeScript#30602 en passant. It will confuse various tools (such as anything that looks at file I don't want to second-guess TypeScript. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is not an uncommon pattern (e.g. https://github.com/ReactiveX/rxjs-tslint/blob/11d64176b717c5029c212d883bfc2dfc5d14d06d/package.json#L14), I just copied it from somewhere - this is just the most paranoid version of starting from a clean slate. I run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why did you make this change? it can cause a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was a bug - the tests did not pass on mac before. See this example - for a cross-platform copying of a directory contents need to |
||
"test": "jest" | ||
}, | ||
"author": "", | ||
|
@@ -22,6 +22,7 @@ | |
"@types/node": "^10.14.9", | ||
"babel-plugin-tester": "^6.4.0", | ||
"jest": "^24.8.0", | ||
"jest-standard-reporter": "^1.0.1", | ||
"typescript": "^3.5.2" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"comment": "", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Standard There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A dummy rush change since this isn't really a patch change which requires a release and only the testing infrastructure. |
||
"packageName": "@binaris/shift-babel-macro", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@binaris/shift-babel-macro", | ||
"email": "vladimir@binaris.com" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,6 +122,17 @@ | |
// */ | ||
// "shellCommand": "node common/scripts/my-global-command.js" | ||
// } | ||
{ | ||
"commandKind": "bulk", | ||
"name": "test", | ||
"summary": "Run all tests", | ||
// disable parallelism for tests | ||
// 1. Test output becomes interleaved and harder to search for errors | ||
// 2. Microsoft example uses parallelism of 1 (possibly due to 1.) | ||
// 3. Testing frameworks (Jest, AVA) have number-of-cores parallelism, allowing parallelism between projects | ||
// might result in additional flakiness due to starvation | ||
"enableParallelism": false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not? (It would be disappointing if Rush is incapable of re-ordering the output to get this to print errors nicely.) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is disappointing, really. I documented this and other reasons why it's serial now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can this be true? |
||
} | ||
], | ||
|
||
/** | ||
|
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 is much nicer. Might even work with Windows!