---
lang: en
title: 'API docs: repository-tests'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository-tests.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository-tests](./repository-tests.md)

## repository-tests package

[@loopback/repository-tests](https://github.com/strongloop/loopback-next/tree/master/packages/repository-tests)

## Functions

|  Function | Description |
|  --- | --- |
|  [crudRepositoryTestSuite(dataSourceOptions, repositoryClass, partialFeatures)](./repository-tests.crudrepositorytestsuite.md) |  |

## Interfaces

|  Interface | Description |
|  --- | --- |
|  [CrudFeatures](./repository-tests.crudfeatures.md) | List of flags describing behavior specific to different connectors and repository implementations. These flags are used by the test suite to tweak assertions and skip tests for scenarios not supported by some implementations. |

## Type Aliases

|  Type Alias | Description |
|  --- | --- |
|  [CrudRepositoryCtor](./repository-tests.crudrepositoryctor.md) | A constructor of a class implementing CrudRepository interface, accepting the Entity class (constructor) and a dataSource instance. |
|  [DataSourceOptions](./repository-tests.datasourceoptions.md) | DataSource configuration (connector name, connection string, etc.). |
|  [TransactionalRepositoryCtor](./repository-tests.transactionalrepositoryctor.md) | A constructor of a class implementing TransactionalRepository interface, accepting the Entity class (constructor) and a dataSource instance. |


