Skip to content

scottmf/postgresql-integration-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postgresql-integration-test

Wraps PostgreSQL Embedded by yandex-qatools with Spring Boot

To Use

Sample integration test

@EnablePostgres
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = PostgresAutoConfigurationApplication.class)
public class IntegrationTest {
    @Autowired
    private DataSource dataSource;

    @Test
    public void test() {
        // test something with a pg backend ...
    }
}
Config properties - $HOME/.pgtest/devbuild.properties

postgres.username=postgres
postgres.password=postgres
postgres.dbName=test
# postgres version valid values are 9.2, 9.3, 9.4 or 9.5
postgres.version=test
postgres.postExecSqlFiles=classpath:/path/to/sql/file,/absolute/path/to/sql/file,...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages