Skip to content

Commit

Permalink
Update behat instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmuras committed Jan 27, 2025
1 parent 97c2eb4 commit 66d08fd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 63 deletions.
33 changes: 0 additions & 33 deletions www/_site/dev/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,27 +176,8 @@ <h4>Do the following steps to install and run moosh tests:</h4>
<p>To</p>

<pre><code>$CFG-&gt;prefix = 'b_';
</code></pre>

<p>Get into the web container:</p>

<pre><code>cd ~/moosh-testing/moodle-docker
bin/moodle-docker-compose exec webserver bash
</code></pre>

<p>In your console you should be logged in as root (you should see something like this root@b5ba7a659e83:/var/www/html#), run the following commands:</p>

<pre><code>apt-get update
apt-get install sudo
chown -R www-data /var/www
sudo -u www-data -E -H bash
</code></pre>

<p>Then you should be logged in as www-data (and see something like this www-data@b5ba7a659e83:~/html$)</p>

<p>Run then:</p>

<pre><code>cd /var/www/html
php admin/tool/behat/cli/init.php
</code></pre>

Expand All @@ -208,15 +189,6 @@ <h4>Do the following steps to install and run moosh tests:</h4>

<hr />

<p>When you get warning like this one:</p>

<p>PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/oci8.so' - libmql1.so: cannot open shared object file: No such file or directory in Unknown on line 0</p>

<p>Run this command:</p>

<pre><code>export LD_LIBRARY_PATH=/usr/local/instantclient_12_1/
</code></pre>

<p>Now you can run any moosh test with command:</p>

<pre><code>php admin/tool/behat/cli/run.php --format pretty --tags=@moosh
Expand All @@ -235,11 +207,6 @@ <h4>Do the following steps to install and run moosh tests:</h4>
<a name="Exit..stop.and.remove.container:"></a>
<h4>Exit, stop and remove container:</h4>

<p>To exit from the interactive container, type:</p>

<pre><code>exit
</code></pre>

<p>To stop the container:</p>

<pre><code>bin/moodle-docker-compose stop
Expand Down
30 changes: 0 additions & 30 deletions www/dev/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,26 +89,6 @@ To
$CFG->prefix = 'b_';


Get into the web container:

cd ~/moosh-testing/moodle-docker
bin/moodle-docker-compose exec webserver bash

In your console you should be logged in as root (you should see something like this root@b5ba7a659e83:/var/www/html#), run the following commands:


apt-get update
apt-get install sudo
chown -R www-data /var/www
sudo -u www-data -E -H bash


Then you should be logged in as www-data (and see something like this www-data@b5ba7a659e83:~/html$)


Run then:

cd /var/www/html
php admin/tool/behat/cli/init.php


Expand All @@ -118,13 +98,6 @@ At the end of the installation, it should show local_mooshtest being installed:

++ Success ++
______________
When you get warning like this one:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/oci8.so' - libmql1.so: cannot open shared object file: No such file or directory in Unknown on line 0

Run this command:

export LD_LIBRARY_PATH=/usr/local/instantclient_12_1/


Now you can run any moosh test with command:
Expand All @@ -143,9 +116,6 @@ Example:

####Exit, stop and remove container:

To exit from the interactive container, type:

exit

To stop the container:

Expand Down

0 comments on commit 66d08fd

Please sign in to comment.