1
0
mirror of https://github.com/bitwarden/server synced 2026-01-30 16:23:37 +00:00
Files
server/util/Seeder
Matt Gibson edf694b8d4 Use Scene result for SingleUserScene (#6909)
* Scenes should return resulting data in the result object

The result is for data that cannot be known by the client requesting the scene and the mangle map used for mangling input values to enable parallelizing tests

* Fix filenames

* SingleUserScene now has a return value of various created User data

* 1/100 too frequent for false test failures
2026-01-27 21:55:04 +01:00
..
2026-01-14 09:02:49 -05:00

Bitwarden Database Seeder

A class library for generating and inserting test data.

Project Structure

The project is organized into these main components:

Factories

Factories are helper classes for creating domain entities and populating them with realistic data. This assist in decreasing the amount of boilerplate code needed to create test data in recipes.

Recipes

Recipes are pre-defined data sets which can be run to generate and load data into the database. They often allow a allow for a few arguments to customize the data slightly. Recipes should be kept simple and focused on a single task. Default to creating more recipes rather than adding complexity to existing ones.