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

some es5 to es6, coverage improvement and fix script commands #38

Merged
merged 6 commits into from
Sep 21, 2016

Conversation

cgalvarez
Copy link

Some coverage improvement and some changes from es5 to es6.

@@ -361,8 +356,8 @@ Why? When a browser opens the client side of your application, this package inte
- type: the type of report you want to create inside your `COVERAGE_APP_FOLDER`

- Default: `coverage`, used to dump the coverage object in a file because when there are several types of test, we want to merge results, and the server reloads between each one.
- Allowed values: `cobertura`, `html`, `json`, `json-summary`, `lcov`, `teamcity`, `text`, `text-lcov`, `text-summary`, `lcovonly`, `coverage`, `remap`
- **Not working values:** `clover`, `cobertura`, `lcov`, `text`, `text-lcov`, PR welcome
- Allowed values: `cobertura`, `coverage`, `html`, `json`, `json-summary`, `lcov`, `lcovonly`, `remap`, `teamcity`, `text`, `text-lcov`, `text-summary`
Copy link
Owner

Choose a reason for hiding this comment

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

remove teamcity

Copy link
Author

@cgalvarez cgalvarez Sep 21, 2016

Choose a reason for hiding this comment

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

The "not working" values are listed in "Allowed values" too. I should remove then cobertura, text-lcov, lcov, text and teamcity.

Copy link
Owner

Choose a reason for hiding this comment

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

My bad. As you want

@@ -112,18 +121,12 @@ instrumentClientJs = function (params, req, res, next) {
}
};


let noop = function () {};
export default Handlers = {
Copy link
Owner

Choose a reason for hiding this comment

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

sadness... You optimized some legacy code. Handlers is not exposed anymore if Conf.IS_ACTIVE === false, so it does not require this mechanism

Copy link
Author

Choose a reason for hiding this comment

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

So I can remove all the export...

Copy link
Owner

Choose a reason for hiding this comment

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

👍

@serut
Copy link
Owner

serut commented Sep 21, 2016

All right for me.

@coveralls
Copy link

Coverage Status

Coverage decreased (-6.06%) to 69.904% when pulling 86eda90 on dev-1.0.0-coverage_improvement into 9bfcda0 on dev-1.0.0.

@codecov-io
Copy link

codecov-io commented Sep 21, 2016

Current coverage is 69.86% (diff: 81.25%)

Merging #38 into dev-1.0.0 will decrease coverage by 6.10%

@@           dev-1.0.0        #38   diff @@
===========================================
  Files             22         21     -1   
  Lines            774        730    -44   
  Methods            0          0          
  Messages           0          0          
  Branches           0          0          
===========================================
- Hits             588        510    -78   
- Misses           186        220    +34   
  Partials           0          0          

Powered by Codecov. Last update 9bfcda0...94b9c6b

@coveralls
Copy link

Coverage Status

Coverage decreased (-6.1%) to 69.863% when pulling 94b9c6b on dev-1.0.0-coverage_improvement into 9bfcda0 on dev-1.0.0.

@coveralls
Copy link

Coverage Status

Coverage increased (+2.4%) to 78.356% when pulling 2197f98 on dev-1.0.0-coverage_improvement into 9bfcda0 on dev-1.0.0.

@serut serut merged commit 02e02af into dev-1.0.0 Sep 21, 2016
@serut serut deleted the dev-1.0.0-coverage_improvement branch September 21, 2016 20:23
serut added a commit that referenced this pull request Sep 21, 2016
* warn user when invalid .coverage.json

* fix details page on html report with package test

* two new exclusions for client side

* bootstrap in separate file

* fix not considered source map path patterns

* generic glob patterns for exclusions

* publishing workspace - wip

* fix coverage verbosity

* Update the readme with --settings usage + add some changes to @cgalvarez pull requests #26 #22 + reliability tests for client instrumentation script

* Deploy 0.9.6 with - new configuration file - internal behavior fixed - new readme

* Improve client errors and improve SourceMap.alterSourceMapPaths

* Update README.md

* Update README.md

* Fix SourceMap sources paths

* Remove old check inside coverage-data.js that existed when source maps where not reliable + lint + still a bug with client coverage that is not correcty exported in reports

* fix four new source pattern and cover all test-packages perms (location and pkg quantity)

* fix four new source pattern and cover all test-packages perms (location and pkg quantity)

* new/remap

* Edit the configuration file to remove 1 test from coverage + improve readme.md

* Remove legacy code used by meteor-coverage to override wrong paths that we had before. more aggressive way than #36

* merge #37

* some es5 to es6, coverage improvement and fix script commands (#38)

* some es5 to es6, coverage improvement and fix script commands

* remove legacy code and fix readme info

* revert handlers export

* don't run ghost test

* set spacejam as devdep

* fix script commands with new spacejam syntax
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.

4 participants