Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Added test + logic to shortcircuit test command #381

Merged
merged 4 commits into from
Mar 30, 2018

Conversation

Blackbaud-BobbyEarl
Copy link

@Blackbaud-BobbyEarl Blackbaud-BobbyEarl commented Mar 27, 2018

This should shave off a couple minutes of builds, mainly for Stache sites that contain to unit tests.

@codecov-io
Copy link

codecov-io commented Mar 27, 2018

Codecov Report

Merging #381 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #381      +/-   ##
==========================================
+ Coverage   99.25%   99.25%   +<.01%     
==========================================
  Files          71       71              
  Lines        1743     1750       +7     
  Branches      283      284       +1     
==========================================
+ Hits         1730     1737       +7     
  Misses         13       13
Flag Coverage Δ
#builder 100% <100%> (ø) ⬆️
#runtime 94.8% <ø> (ø) ⬆️
#srcapp 100% <ø> (ø) ⬆️
Impacted Files Coverage Δ
cli/test.js 100% <100%> (ø) ⬆️
cli/e2e.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 62d6c8d...e42693e. Read the comment docs.

@@ -227,4 +227,16 @@ describe('cli test', () => {

expect(process.exit).toHaveBeenCalledWith(0);
});

it('should not continue if no e2e spec files exist', () => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean "no unit test spec"?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Correcting now...

cli/test.js Outdated
@@ -46,6 +50,11 @@ function test(command, argv) {
process.exit(exitCode);
};

if (specsGlob.length === 0) {
logger.info('No spec files located. Stopping command from running.');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd maybe change the wording to "No spec files located. Skipping test command."

Copy link
Author

@Blackbaud-BobbyEarl Blackbaud-BobbyEarl Mar 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied this text verbatim from what's displayed today in skyux e2e. I'll update both to use your text, accounting for "test" vs "e2e" of course.

@Blackbaud-BobbyEarl Blackbaud-BobbyEarl merged commit 80b392b into master Mar 30, 2018
@Blackbaud-BobbyEarl Blackbaud-BobbyEarl deleted the shortcircuit-test branch March 30, 2018 17:26
Blackbaud-MikitaYankouski pushed a commit to Blackbaud-MikitaYankouski/skyux-builder that referenced this pull request May 3, 2019
* Added test + logic to shortcircuit test command

* Incorporated feedback
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants