A content repository to allow QA testing from a user perspective, using the platform.
-
Set up a piscine For example, duplicate the go piscine and put Quest2 "on top" (put the tester user in the piscine)
Set thelanguage(typeSTRING) in theChildren Attributesasgoqa -
Mirror the
qarepo from github in the root gitea
Create aNew Migrationfrom the Github repohttps://github.com/01-edu/qa
Tick theMigration Options:This repository will be a mirror
Untick theVisibilityoption -
Set up a new "dummy exercise" The name of the exercise must match one of the exercises available in the repository
https://github.com/01-edu/qa
Add the followingObject Attributeslanguage(typeSTRING):goqasubject(typeSTRING):/markdown/root/qa/go/subjects/<name>/README.mdexpectedFiles(typeARRAY):Add a new index in arraywith the expected files, most likely<name>/main.goif the exercise is a program or<name>.goif a function
- Create a directory to place the solution to be tested, for example
mkdir piscine-goorgit clone <your-repo>in theqadirectory - run the following commands in the following location
./qa/piscine-go/:
go mod init piscine
go mod tidy- Update all the required files for the selected exercise(s)
- Run
./go/test_all.shor./go/test_one.sh <exercise_name>
The following repositories aims to provide a close to production testing environment. To ensure this, check that the followings are in line with the respositories used for the current platform:
- For GO exercises: the organization of the
testsandsolutionsdirectories combined with thelibfunctions used to run the tests are the same as the one used for the working platform