LMS minimum s'appuyant sur SCORMBundle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
frederic be885a3ddc Merge branch 'master' of https://git.logipro.com/Logipro/SCORMLMS 2 years ago
bin Ajout config bundle SCORM 2 years ago
config Ajout de la fonctionnalité "dupliquer un cours" 2 years ago
cypress navigation avec btn prev et suivant toujours accessible 2 years ago
mockUpload data fixtures 2 years ago
public next/prev 2 years ago
src Merge branch 'master' of https://git.logipro.com/Logipro/SCORMLMS 2 years ago
templates Ajout de la fonctionnalité "dupliquer un cours" 2 years ago
tests frederic 2 years ago
.env protection des données 2 years ago
.env.test Ajout config bundle SCORM 2 years ago
.gitignore cypress 2 years ago
README.md data fixtures 2 years ago
composer.json data fixtures 2 years ago
composer.lock Modification de la création des cours 2 years ago
cypress.json cypress 2 years ago
phpunit.xml.dist protection des données 2 years ago
symfony.lock Ajout config bundle SCORM 2 years ago

README.md

SCORM LMS is a small minimum LMS very usefull to test the SCORMBundle.

Assume you have a LAMP 7.2 installed in a docker called SCORMLMS

Install dependency.

After having git cloned this LMS in local create database schema.

Use data tests

Install data test sets by typing in your app console:

php bin/console doctrine:fixtures:load

PHPUnit tests

To run tests (LMS and SCORMBundle’s tests)

php bin/phpunit

Never it will failed ;-)

cypress tests

install

Save your time, just install it once please

cd (...)/SCORMLMS/
npm install cypress --save-dev

Follow https://docs.cypress.io/guides/getting-started/installing-cypress.htm/

Perhaps you will have to change “baseUrl” parameter route in the cypress.json file at SCORMLMS project’s root. By default :

{
    "baseUrl": "http://localhost:100/lms",
    "userAgent": "Firefox"
}

open

Find a console (don’t open in the docker SCORMLMS, it will fail)

cd (...)/SCORMLMS/
./node_modules/.bin/cypress open

In the window you will find the “scormlms_spec.js” entry. Just click on it. Enjoy.