Skip to content

improves test performance on mongodb #4862

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

Merged
merged 2 commits into from
Jun 29, 2018
Merged

improves test performance on mongodb #4862

merged 2 commits into from
Jun 29, 2018

Conversation

flovilmart
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Jun 29, 2018

Codecov Report

Merging #4862 into master will decrease coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4862      +/-   ##
==========================================
- Coverage   92.82%   92.75%   -0.07%     
==========================================
  Files         119      119              
  Lines        8825     8825              
==========================================
- Hits         8192     8186       -6     
- Misses        633      639       +6
Impacted Files Coverage Δ
src/Controllers/DatabaseController.js 94.69% <ø> (ø) ⬆️
src/Adapters/Storage/Mongo/MongoStorageAdapter.js 90.77% <100%> (-1.27%) ⬇️
...dapters/Storage/Postgres/PostgresStorageAdapter.js 97.21% <100%> (-0.09%) ⬇️

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 1e8ba74...e87c0f0. Read the comment docs.

@flovilmart flovilmart requested a review from acinader June 29, 2018 19:51
@acinader
Copy link
Contributor

can you tell me what you're doing?

something like: start the server for each test instead of when the file is loaded?

@flovilmart
Copy link
Contributor Author

@acinader you're right, it was messing up with the good practices for jasmine. Also droping the DB instead of calling deleteAllClasses should save between 0 and 100ms per test, depending on the data, so that's better.

@flovilmart flovilmart merged commit 585938c into master Jun 29, 2018
@flovilmart flovilmart deleted the test-performance branch June 29, 2018 21:10
flovilmart added a commit that referenced this pull request Aug 12, 2018
* improves test performance on mongodb

* Removes unused methdos
flovilmart added a commit that referenced this pull request Aug 12, 2018
* improves test performance on mongodb

* Removes unused methdos
UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
* improves test performance on mongodb

* Removes unused methdos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants