-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run local tests #3022
Comments
Try |
Thanks the trick / config seems to work for the api tests but not for
Edit: when |
This also resolved my issue. Could we get the test script altered so it's the default? Or is there a significant behaviour difference? |
Should be fixed by 93ab838 |
It was an old issue, it's more a doc update for a docker-compose dev env with tests.
After following the documentation https://docs.joinpeertube.org/#/contribute-getting-started?id=develop.
I was able to adapt to test env with a docker database and redis containers.
Redis tools installation :
sudo apt install redis-tools
docker-compose.yml dev configuration
docker-compose up -d
in docker compose dev directoryFederation tests
I created the 3 databases for test, still in docker compose dev directory :
Unit tests
in docker compose dev directory :
In PeerTube directory, I run
yarn install
,npm run build -- --light-fr
andnpm run clean:server:test
npm run test
I got this error :Error: Module did not self-register.
just after sass-lintnpm run mocha -- --exit -r ts-node/register -r tsconfig-paths/register --bail server/tests/api/index.ts
) :Node and NPM version
node v12.18.2
npm v6.14.5
The text was updated successfully, but these errors were encountered: