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

test: fix unit test failures for certain random orders #1094

Merged
merged 5 commits into from
Oct 19, 2020

Conversation

raphinesse
Copy link
Contributor

Motivation and Context

Some tests were not order independent

Description

Fixed unit tests to be independent of execution order. See commits.

Testing

Tests pass for various random orders

@raphinesse raphinesse added the bug label Oct 17, 2020
@raphinesse raphinesse added this to the 9.0.1 milestone Oct 17, 2020
raphinesse added a commit to raphinesse/cordova-android that referenced this pull request Oct 19, 2020
This makes it easier to map test output to files and allows for common
setup & teardown of all tests in a file.

* test(prepare): wrap in top-level describe block
* test(Api): wrap in top-level describe block
@raphinesse raphinesse force-pushed the fix-random-order-unit-tests branch 2 times, most recently from 5fdc545 to 2f95944 Compare October 19, 2020 08:08
@codecov-io
Copy link

codecov-io commented Oct 19, 2020

Codecov Report

Merging #1094 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1094   +/-   ##
=======================================
  Coverage   69.76%   69.76%           
=======================================
  Files          20       20           
  Lines        1806     1806           
=======================================
  Hits         1260     1260           
  Misses        546      546           

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 b1f01d7...95af537. Read the comment docs.

@raphinesse raphinesse force-pushed the fix-random-order-unit-tests branch from 2f95944 to 95af537 Compare October 19, 2020 08:20
@raphinesse raphinesse merged commit 335b0f2 into apache:master Oct 19, 2020
@raphinesse raphinesse deleted the fix-random-order-unit-tests branch October 19, 2020 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants