File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ The following instructions were tested for Windows:
58
58
59
59
1 . First, you will need PHP installed on your host system first. See [ Installing PHP] ( /developer/testing/install_php ) *
60
60
61
- 2 . Next, you will need [ Composer] ( https://getcomposer.org/doc/00-intro.md ) installed on your host system as well.
61
+ 2 . Next, you will need [ Composer] ( https://getcomposer.org/download/ ) installed on your host system as well.
62
62
During this install, you will need to change settings in a php.ini file. Change the settings the prompt recommends.
63
63
64
64
3 . Run `` composer global require slevomat/coding-standard `` and `` composer global require "squizlabs/php_codesniffer=*" `` inside your terminal.
Original file line number Diff line number Diff line change @@ -6,14 +6,25 @@ category: Developer > Development Instructions > Continuous Integration Testing
6
6
To validate the unit behavior of the site code, we utilize
7
7
[ phpunit] ( https://phpunit.readthedocs.io/en/latest ) .
8
8
9
+ ### Dependencies
9
10
10
- ### Running PHP Unit Tests
11
+ Before running PHP Unit Tests, you must install the required dependencies. You may either run your tests locally or inside the VM:
12
+
13
+ ##### Inside the Vagrant VM
14
+
15
+ 1 . Install [ Composer] ( https://getcomposer.org/download/ ) through the command-line installation copy-paste.
16
+ 2 . ` cd ` to ` /usr/local/submitty/GIT_CHECKOUT/Submitty/site/ `
17
+ 3 . run ` composer update `
11
18
12
- * You will need PHP installed on your host system first, see [ Installing PHP] ( /developer/testing/install_php ) *
19
+ * Please be aware that many unit tests will not work inside the VM. It is suggested that you run tests individually.*
20
+
21
+ ##### On Your Local Machine
22
+
23
+ ### Running PHP Unit Tests
13
24
14
- To run the PHP unit test suite locally, ` cd ` to the ` Submitty/site ` directory and type:
25
+ * If you are running on WSL and are seeing errors, remove ` php ` from the following commands. *
15
26
16
- If you are running on WSL and are seeing errors, remove " ` php ` " from the following commands.
27
+ To run the PHP unit test suite locally, ` cd ` to ` /usr/local/submitty/GIT_CHECKOUT/Submitty/site/ ` and type:
17
28
18
29
```
19
30
php vendor/bin/phpunit
You can’t perform that action at this time.
0 commit comments