|
3 years ago | |
---|---|---|
bin | 3 years ago | |
config | 3 years ago | |
cypress | 3 years ago | |
mockUpload | 3 years ago | |
public | 3 years ago | |
src | 3 years ago | |
templates | 3 years ago | |
tests | 3 years ago | |
.env | 3 years ago | |
.env.test | 3 years ago | |
.gitignore | 3 years ago | |
README.md | 3 years ago | |
composer.json | 3 years ago | |
composer.lock | 3 years ago | |
cypress.json | 3 years ago | |
phpunit.xml.dist | 3 years ago | |
symfony.lock | 3 years ago |
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.
Install data test sets by typing in your app console:
php bin/console doctrine:fixtures:load
To run tests (LMS and SCORMBundle’s tests)
php bin/phpunit
Never it will failed ;-)
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"
}
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.