Back

Phpunit test

  • 0
  • Databases
  • Storage
  • Cloud
SK20
17 Oct, 2023, 07:27

Ok

TL;DR
The user is having issues running PHPUnit tests on a specific file. They mention that they pushed changes, ran the tests, and encountered an error. They also mention a command they used to run the tests but encountered another error. They ask for guidance on how to add custom functions using the OracleObject API or SDK. There is no solution provided in the thread.
SK20
17 Oct, 2023, 07:27

I will go through it🥶

SK20
19 Oct, 2023, 11:42

Getting this after following all the steps

SK20
19 Oct, 2023, 11:42
Drake
19 Oct, 2023, 15:54

did you start the containers?

SK20
19 Oct, 2023, 16:12

Did this..newbie to Docker🥶

Drake
19 Oct, 2023, 18:07

what did you run exactly?

Drake
19 Oct, 2023, 18:07

so is this running now?

SK20
19 Oct, 2023, 18:09

docker-compose up

Drake
19 Oct, 2023, 18:10

FYI, that will attach and show the logs. if you exit out the containers will stop

SK20
19 Oct, 2023, 18:11

yes😬

SK20
19 Oct, 2023, 18:12

i want to run this one

Drake
19 Oct, 2023, 18:13

so run it in a new terminal window

SK20
19 Oct, 2023, 18:13

ok

SK20
19 Oct, 2023, 18:22

skaswa20@saket-desktop:~/storage$ docker compose exec -T tests vendor/bin/phpunit tests/Storage/Device/$OracleObjectTest.php PHPUnit 9.6.13 by Sebastian Bergmann and contributors.

Cannot open file "tests/Storage/Device/.php".

Drake
19 Oct, 2023, 18:44

look...at...the...error

Drake
19 Oct, 2023, 18:45

why are you putting $OracleObjectTest?

SK20
19 Oct, 2023, 18:48

Oops🥶

SK20
19 Oct, 2023, 18:48

Now running it correctly

SK20
19 Oct, 2023, 18:51

Now the tests are running, will do the necessary changes and push

SK20
22 Oct, 2023, 12:30

Did the tests!

SK20
24 Oct, 2023, 10:04

I have pushed the changes.

SK20
28 Oct, 2023, 03:44

To add custom functions I would need OracleObject API or SDK. Can you guide a bit with that.

Drake
28 Oct, 2023, 04:10

Sorry I cannot...you'll have to go through the docs

SK20
28 Oct, 2023, 07:25

Sure

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