You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "wujimin (JIRA)" <ji...@apache.org> on 2018/07/07 00:37:00 UTC
[jira] [Comment Edited] (SCB-719) support complex integration test
[ https://issues.apache.org/jira/browse/SCB-719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16535517#comment-16535517 ]
wujimin edited comment on SCB-719 at 7/7/18 12:36 AM:
------------------------------------------------------
{code:java}
@RunWith(SCBSuite.class)
@Transports(Const.RESTFUL)
public class TestRestful {
@Test
public void test1() {
...
}
@Test
public void test2() {
...
}
}{code}
if run in IDE, will get a result:
!image-2018-07-07-08-31-37-950.png!
change Transports annotation:
{code:java}
@Transports()
{code}
or just delete the annotation
will get a result:
!image-2018-07-07-08-35-01-791.png!
annotation Transport support both class and method level
was (Author: wujimin):
{code:java}
@RunWith(SCBSuite.class)
@Transports(Const.RESTFUL)
public class TestRestful {
@Test
public void test1() {
...
}
@Test
public void test2() {
...
}
}{code}
if run in IDE, will get a result:
!image-2018-07-07-08-31-37-950.png!
change Transports annotation:
{code:java}
@Transports()
{code}
or just delete the annotation
will get a result:
!image-2018-07-07-08-35-01-791.png!
> support complex integration test
> --------------------------------
>
> Key: SCB-719
> URL: https://issues.apache.org/jira/browse/SCB-719
> Project: Apache ServiceComb
> Issue Type: Task
> Components: Java-Chassis
> Reporter: wujimin
> Assignee: wujimin
> Priority: Major
> Attachments: image-2018-07-07-08-31-37-950.png, image-2018-07-07-08-35-01-791.png
>
>
> currently we only support simple integration test
> if a test case need to start/stop microservice instance, then must run it manually, it's not so good.
>
> so we need to create a mechanism to support complex integration test.
> 1.support multiple node
> because CI docker container resources are limited, so must start multiple processes
> 2.not depend on docker, can run in windows too.
> 3.support run in IDE like unit test
> 4.support drive by integration test controller
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)