Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Redesign / Rework test infra #472

Closed
7 tasks done
msterin opened this issue Jun 15, 2016 · 5 comments
Closed
7 tasks done

Redesign / Rework test infra #472

msterin opened this issue Jun 15, 2016 · 5 comments

Comments

@msterin
Copy link
Contributor

msterin commented Jun 15, 2016

Our current test infra ('make test-all' and CI) is comprise of python server-side tests, GO client-side tests, and Go end to end test which sometimes call .sh (e.g. refcnt_test.sh). Issue:

Notes from @shuklanirdesh82: we have started implementing test library to reuse code while writing new automation tests so marking this as addressed.

This Issue asks for a desgin/discussion and plan of record for reworked test infra and new test sets for GA. We may create other issues to address actual work

//CC @pdhamdhere @kerneltime

@govint
Copy link
Contributor

govint commented Jun 16, 2016

Also, the infra should allow easy addition of new tests. My suggestions are:

a. defining a template for a test script which is coded by who ever needs to add a test case. The script/code is dropped into the repository and is then picked up by the infra and included in a test run. Developer just needs to supply the functions in the template - say, init(), run(), cleanup().

b. assign IDs for tests so we know what tests in a list have passed/failed.

c. Categorize the tests into groups so they can be run independently, developer may want to run a subset depending on what code they fix.

@kerneltime
Copy link
Contributor

We have need for VMs that have been running over a long duration as well as VMs that get setup as new. #584

@shuklanirdesh82
Copy link
Contributor

shuklanirdesh82 commented Mar 8, 2017

Govindan's comment #472 (comment)

need to find out better test automation framework which satisfies all the requirement mentioned in the above comment.

Note: keeping this issue open to address above comment.

Mark's comment #472 (comment)

separate issues are created to keep track of each action item so moving this issue in to future milestone.

@shuklanirdesh82
Copy link
Contributor

Sharing some details from my research. gocheck serves our need. There are many good automation framework available and gocheck is sufficient for our e2e tests. Code contribution guideline at docker leverages the same. One more advantage of using gocheck is to reuse existing developed tests with minor modification to use gocheck library on top of golang's inbuilt testing library (some of our existing tests are written using that).

As a next step, one sample testcase should be automated using gocheck.

@shuklanirdesh82 shuklanirdesh82 modified the milestones: 0.15, Future May 12, 2017
@shuklanirdesh82 shuklanirdesh82 self-assigned this May 12, 2017
shuklanirdesh82 added a commit to shuklanirdesh82/vsphere-storage-for-docker that referenced this issue May 13, 2017
shuklanirdesh82 added a commit to shuklanirdesh82/vsphere-storage-for-docker that referenced this issue May 15, 2017
shuklanirdesh82 added a commit that referenced this issue May 15, 2017
* Adding gocheck testframework support (Issue #472)
@shuklanirdesh82
Copy link
Contributor

new test framework integration task is done through #1246 so closing this Issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants