[
https://issues.apache.org/jira/browse/SCB-719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
wujimin updated SCB-719:
------------------------
Comment: was deleted
(was: {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)
> 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
>
> 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 Travis CI docker container resources are limited, so must start
> multiple containers
> 2.not depend on docker, can run in windows too.
> -3.support run in IDE equals run unit test-
> abandon
> because it's too difficult to manage microservice instance lifecycle and
> junit test class lifecycle
> some microservice instances should share cross many test class, and some
> microservice instances only used by one test class
> junit child test suite always run duplicate when whole project or package.
> 4.support run by java -jar ......
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)