Skip to content

Commit

Permalink
SPSH-887: Seeding erweitern (50 Schulen mit Klassen) & Seedingdata Ge…
Browse files Browse the repository at this point in the history
…nerator (#605)

* SPSH-887: Implemented a new command to generate seeding data, added the generated organisations in the seeding folder, and implemented integration tests.

* SPSH-887: Deleted a test file

* SPSH-887: Reduced number of schools generated with the integration test.

* SPSH-887: Added the directory path in the command for db:seedingdata-generate

* SPSH-887: Added two test classes for the Playwright tests in the seeding data.

---------

Co-authored-by: Marvin Rode (Cap) <[email protected]>
Co-authored-by: Youssef Bouchara <[email protected]>
  • Loading branch information
3 people authored Aug 19, 2024
1 parent 3a27d71 commit d6fd83b
Show file tree
Hide file tree
Showing 8 changed files with 6,834 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
"db:migration-init": "npm run start:console -- db migration-init",
"db:migration-create": "npm run start:console -- db migration-create",
"db:migration-apply": "npm run start:console -- db migration-apply",
"setup": "npm run db:migration-apply && npm run db:seed dev"
"setup": "npm run db:migration-apply && npm run db:seed dev",
"db:seedingdata-generate": "npm run start:console -- db seedingdata-generate ./seeding/dev/01/ numberOfSchools=50 classesPerSchool=12"

},
"dependencies": {
"@automapper/classes": "^8.8.1",
Expand Down
20 changes: 20 additions & 0 deletions seeding/dev/01/01_organisation.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,26 @@
"typ": "KLASSE",
"administriertVon": 3,
"zugehoerigZu": 3
},
{
"id": 13,
"kennung": "1111111-3a",
"name": "Playwright3a",
"namensergaenzung": "Keine",
"kuerzel": "Testschule-3a",
"typ": "KLASSE",
"administriertVon": 9,
"zugehoerigZu": 9
},
{
"id": 14,
"kennung": "1111111-4b",
"name": "Playwright4b",
"namensergaenzung": "Keine",
"kuerzel": "Testschule-4b",
"typ": "KLASSE",
"administriertVon": 9,
"zugehoerigZu": 9
}
]
}
Loading

0 comments on commit d6fd83b

Please sign in to comment.