Skip to content
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

Expand stubs available in testing module #1149

Merged
merged 7 commits into from
Oct 11, 2023
Merged

Conversation

ericcornelissen
Copy link
Owner

Merges into #963

Summary

Provide additional stubs to users from the testing module now that Shescape has additional failure modes.

@github-actions github-actions bot added documentation Improvements or additions to documentation test Relates to testing labels Aug 21, 2023
@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

Merging #1149 (5c6fe3b) into main (3e99c28) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main     #1149   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           16        16           
  Lines         1449      1465   +16     
=========================================
+ Hits          1449      1465   +16     
Flag Coverage Δ
e2e-MacOS 90.88% <ø> (ø)
e2e-Ubuntu 90.88% <ø> (ø)
e2e-Windows 90.07% <ø> (ø)
integration-Windows 98.77% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
testing.js 100.00% <100.00%> (ø)

Base automatically changed from initialize-v2 to main September 7, 2023 13:33
test/integration/testing/commonjs.test.js Outdated Show resolved Hide resolved
test/integration/testing/functional.test.js Outdated Show resolved Hide resolved
test/unit/testing/throwscape.test.js Outdated Show resolved Hide resolved
- Correct the test title for the unit test of `Throwscape`.
- Use property testing for the functional integration test of
  `Throwscape`.
- Use a differential property test for the CJS version of `Throwscape`.
- Correct file overview of integration tests for the testing module:
  there's now multiple testing implementations.
- Update functional integration test titles to make clear what testing
  implementation's API function is being tested.
Update the Stubscape implementation so that the behavior of `quote` and
`quoteAll` is more similar to the real implementation of Shescape. Tests
are updated accordingly, mostly resulting in cleaner integration tests
(with more coverage) at the minor cost of more specific unit tests (that
actually more accurately reflect expected behavior).

Also update the Stubscape JSDoc to be up-to-date, both with respect to
the changes seen here as well as the changes of v3.0.0.
@ericcornelissen ericcornelissen marked this pull request as ready for review October 10, 2023 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request test Relates to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant