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
Task/jenkins 43083 testing improvements #1002
Merged
Merged
Changes from 10 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
9648f5e
[JENKINS-43083] add support for testing via jest with "npm run test"
da7978d
[JENKINS-43083] run jest via gulp instead
9925505
[JENKINS-43083] add junit reporting; provide two different tasks for …
9d665ba
[JENKINS-43083] ensure failed test breaks build
54647f5
[JENKINS-43083] ensure unhandled error breaks build
74216a4
[JENKINS-43083] remove failure
7050859
[JENKINS-43083] support "test" "test-fast" and "test-debug" npm scrip…
8c5c997
[JENKINS-43083] refactor code to use "runJest" function which adds pr…
c72fd08
[JENKINS-43083] docs about tests
cb1399c
[JENKINS-43083] use Jest mocking to provide a "no-op" implementation …
ca6c391
[JENKINS-43083] switch from "before" to "beforeAll"
6839281
[JENKINS-43083] WIP for running jjsbuilder tests with Jest; still nee…
a4cf207
[JENKINS-43083] ignore jest reports
0dce085
[JENKINS-43083] dashboard uses Jest and minor tweaks to use "beforeAll"
a5ff04b
[JENKINS-43083] export a named function to avoid test breakage when u…
a33c509
[JENKINS-43083] personalization uses Jest; use different approach to …
b096a46
[JENKINS-43083] eliminate obsolete mocking code that is no longer needed
a98de77
[JENKINS-43083] typo in coverage dir name
c3cea0d
Merge branch 'master' into task/JENKINS-43083-testing-improvements
b0f5227
Merge branch 'master' into task/JENKINS-43083-testing-improvements
fce4528
[JENKINS-43083] use i18n mock in TimeHarmonizer
78e55e9
[JENKINS-43083] fix weird package.json / shrink entry for js-builder-…
b6b75af
Merge branch 'master' into task/JENKINS-43083-testing-improvements
fb21ec4
fix test that was intentionally failing
3da6886
Merge branch 'master' into task/JENKINS-43083-testing-improvements
6f7dbfe
invoke gulp natively (bypassing jjsb command line) to facilitate debu…
8f64714
update shrinkwrap to include jest and related libs
6d41d8f
Merge branch 'master' into task/JENKINS-43083-testing-improvements
b903dba
experiment with adding jest junit reports
9bd0816
align run script naming w/ dashboard and personalization
aa3146f
verify that core-js tests are being picked up
7de78da
re-enable test
e804953
updating to master
michaelneale 8abc740
Merge branch 'master' into task/JENKINS-43083-testing-improvements
53c6af6
Merge branch 'master' into task/JENKINS-43083-testing-improvements
michaelneale 682bcb5
Merge branch 'master' into task/JENKINS-43083-testing-improvements
11412ba
Merge branch 'master' into task/JENKINS-43083-testing-improvements
imeredith 5fa3b66
Merge branch 'master' into task/JENKINS-43083-testing-improvements
ab66686
Merge branch 'master' into task/JENKINS-43083-testing-improvements
f623b37
Merge branch 'master' into task/JENKINS-43083-testing-improvements
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ dist | |
*.iml | ||
.idea/ | ||
/.project | ||
coverage | ||
reports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,29 @@ | ||
# Blue Ocean Core JS | ||
|
||
This is an npm module that contains common javascript libraries/utilities that are used across modules and plugins and blue oceans. | ||
|
||
# Running Tests | ||
|
||
Tests are run via jest using the gulp-jest plugin. Three modes of execution are supported: | ||
|
||
## `npm run test` | ||
|
||
Runs jest and outputs JUnit test reports and code coverage metrics, in the 'reports' and 'coverage' dirs. | ||
This is the "full" execution that is run in CI. | ||
|
||
## `npm run test-fast` | ||
|
||
Runs jest without test reports or coverage. Fastest run, useful for local development. | ||
|
||
## `npm run test-debug` | ||
|
||
Runs jest in debug mode listening on localhost:5858. You must attach a debugger for execution to proceed. | ||
Test reports and coverage are skipped. | ||
|
||
## Running select test(s) | ||
|
||
All of the above profiles support executing one or more tests via jest's `testPathPattern` parameter: | ||
|
||
`npm run test-fast -- --test test/js/UrlUtils-spec.js` // one test | ||
`npm run test-fast -- --test /capability/` // any tests in a 'capability' dir | ||
`npm run test-fast -- --test Url` // any test with 'Url' in the name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
maybe this should be default? vs the one above? how much overhead does it really ad?
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.
hrm no - I now disagree with myself. Carry on.