Back

Running appwrite tests

  • 0
  • General
Nevus
20 May, 2023, 02:51

There's no logs ๐Ÿค”

TL;DR
User is having trouble running appwrite tests and is seeking support. Solution: The following steps should be followed to run appwrite tests: 1. Install docker. 2. Clone the appwrite repository using the provided git URL. 3. Update the submodules using the command 'git submodule update --init'. 4. Build the docker images using 'docker compose build'. 5. Start the docker containers in the background using 'docker compose up -d'. 6. Run the tests using the command 'docker exec appwrite test /usr/src/code/tests/e2e/Services/Account'. Additional troubleshooting steps mentioned by other users include: - Checking
Drake
20 May, 2023, 02:52

appwrite should definitely have logs

Drake
20 May, 2023, 02:52

Yes

Nevus
20 May, 2023, 02:59

I think there's wrong with the setup ๐Ÿค” I'll prune everything and restart

Drake
20 May, 2023, 03:00

How come appwrite logs were empty here

Drake
20 May, 2023, 03:00

But not here

Nevus
20 May, 2023, 03:01

I have no idea. I created a database using web console and the logs magically appeared. ๐Ÿ˜ฟ

Drake
20 May, 2023, 03:01

Maybe you have some docker network conflict. Maybe clear out unused networks too

Drake
20 May, 2023, 03:04

Did you try to enable the debugger?

Nevus
20 May, 2023, 03:07

I ignored the debug section https://github.com/Suven-p/appwrite/blob/master/CONTRIBUTING.md#debug and the debug arg for appwrite in docker-compose.yml is false

Drake
20 May, 2023, 03:08

Ya..I'm baffled ๐Ÿ˜ตโ€๐Ÿ’ซ

Nevus
20 May, 2023, 10:08

After a complete reset of docker images, using live boot and using oracle server I still cant figure this out.

Nevus
20 May, 2023, 10:10
  1. Install docker.
  2. git clone git@github.com:Suven-p/appwrite.git
  3. git submodule update --init
  4. docker compose build
  5. docker compose up -d
  6. docker exec appwrite test /usr/src/code/tests/e2e/Services/Account

Is this all the steps?

Maniac_Fighter
20 May, 2023, 10:41

Hang on a second, you running those tests on oracle cloud??

Nevus
20 May, 2023, 12:48

well not at first but figure I'd give it a try

Drake
20 May, 2023, 14:22

Did you install docker desktop or docker via snap? Or the basic docker engine?

Nevus
20 May, 2023, 14:23

Basic docker engine. Snaps are scary for debugging

Drake
20 May, 2023, 21:08

so i just tried on gitpod and it works fine ๐Ÿ‘€

Nevus
21 May, 2023, 09:37
Nevus
21 May, 2023, 09:37

the last one is on windows with docker desktop

Nevus
21 May, 2023, 09:39

I missed a part. There IS a file called /usr/local/bin/test

Nevus
21 May, 2023, 10:04

I officially give up. I am using gitpod for tests.

Drake
21 May, 2023, 14:34
Nevus
22 May, 2023, 03:29

That doesn't work either

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more