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

JAV-14 Updated Coverage Configuration #11

Merged
merged 1 commit into from Jun 1, 2017

Conversation

asifdxtreme
Copy link
Member

@asifdxtreme asifdxtreme commented Jun 1, 2017

Updated the UT configuration for Service Center

Note: After this pull requests is merged please enable the service-center project in https://coveralls.io and change the link in the Readme.md

.travis.yml Outdated
go:
- 1.7.3

before_install:
- export HostIP="192.168.12.50"
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need export this IP address?

Copy link
Member Author

Choose a reason for hiding this comment

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

etcd will be running on this internal ip address and service-center will be connect with etcd using this ip

.travis.yml Outdated
- cp etc/conf/app.conf common/cron/conf/app.conf
- cd common/cron
- ginkgo -r -v -cover -coverprofile=cron.coverprofile ./...
- $HOME/gopath/bin/goveralls -coverprofile=cron.coverprofile -service=travis-ci -repotoken O04ikci0NXVZLDXJinpl79tcQvoenip2C
Copy link
Member

Choose a reason for hiding this comment

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

We may need to use the environment variable to store the token.

README.md Outdated
@@ -1,4 +1,4 @@
# service-center [![Build Status](https://travis-ci.org/ServiceComb/service-center.svg?branch=master)](https://travis-ci.org/ServiceComb/service-center)
# service-center [![Build Status](https://travis-ci.org/ServiceComb/service-center.svg?branch=master)](https://travis-ci.org/ServiceComb/service-center) [![Coverage Status](https://coveralls.io/repos/github/asifhuawei/service-center/badge.svg?branch=master)](https://coveralls.io/github/asifhuawei/service-center?branch=master)
Copy link
Member

Choose a reason for hiding this comment

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

please leave this file out of the commit

@@ -29,59 +29,59 @@ var _ = Describe("Cron", func() {
It("Test every second cron", func() {
job := Every(1).Seconds()
job.Do(DummyTask)
Expect(job.String()).To(Equal("[JOB]type: 1(seconds), interval: 1, delay: 0, at: , task: servicecenter/common/cron_test.DummyTask"))
Expect(job.String()).To(ContainSubstring("[JOB]type: 1(seconds), interval: 1, delay: 0, at: ,"))
Copy link
Member

Choose a reason for hiding this comment

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

why changing the test?

Copy link
Member Author

Choose a reason for hiding this comment

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

This testcase specifically checks the job name and job name is decided by the path from which the code is running, the path can change for the forked branches so to make it generic this change was made.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 3de17c4 on asifhuawei:latest into ** on ServiceComb:master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 6f22c3d on asifhuawei:latest into ** on ServiceComb:master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 4ef0b20 on asifhuawei:latest into ** on ServiceComb:master**.

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@61e3690). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #11   +/-   ##
=========================================
  Coverage          ?   49.56%           
=========================================
  Files             ?        6           
  Lines             ?      458           
  Branches          ?        0           
=========================================
  Hits              ?      227           
  Misses            ?      215           
  Partials          ?       16

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 61e3690...4ef0b20. Read the comment docs.

@WillemJiang WillemJiang merged commit a02f4ac into apache:master Jun 1, 2017
ChinX pushed a commit to ChinX/servicecomb-service-center that referenced this pull request May 28, 2019
Fix Table issue in README.md and README-ZH.md
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.

None yet

5 participants