Skip to content

Nacos-embedded provides easy way to run Nacos in integration tests. Inspired by embedded-consul.

License

Notifications You must be signed in to change notification settings

JervyShi/nacos-embedded

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nacos Embedded

Build Status codecov

Nacos-embedded provides easy way to run Nacos in integration tests. Inspired by embedded-consul.

Compatible with jdk1.8+. Working on all operating systems: Mac(Intel & Apple silicon), Linux, Windows.

How to get it?

<dependency>
    <groupId>name.jervyshi</groupId>
    <artifactId>nacos-embedded</artifactId>
    <version>0.3.0</version>
    <scope>test</scope>
</dependency>

Usage

Manual

public class IntegrationTest {

    private NacosProcess nacosProcess;

    @Before
    public void setup() {
        nacosProcess = NacosStarterBuilder.nacosStarter().build().start();
    }

    @After
    public void cleanup() throws Exception {
        nacosProcess.close();
    }

    /* tests with nacos client */
}

About

Nacos-embedded provides easy way to run Nacos in integration tests. Inspired by embedded-consul.

Resources

License

Stars

Watchers

Forks

Packages

No packages published