Skip to content

Commit

Permalink
Merge pull request #318 from Grummfy/fix-misc-netbeans
Browse files Browse the repository at this point in the history
netbeans, auto open ide file and some fix
  • Loading branch information
Grummfy committed Mar 3, 2018
2 parents 3711818 + 1944adc commit cbf11d9
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
4 changes: 2 additions & 2 deletions source/en/asserters/generator.inc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ Example:
->yields->integer->isEqualTo(3)
;
In this example we create a generator that yields 3 values : 1, 2 and 3.
In this example we create a generator that yields 3 values: 1, 2 and 3.
Then we yield each value and run an assertion on this value to check it's type and value.
In the first two yields we use the ``variable`` asserter and only check the value.
In the third yields call we add a check on the type of the value by using the integer asserter (any asserter could by used on this value) before checking the value.



.. _generator-returns:

returns
Expand Down
17 changes: 14 additions & 3 deletions source/en/ide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ It's possible to navigate through errors, or even to go to the line in the edito
Installation of the plug-in atoum for VIM
=========================================

You will find the file corresponding to the plug-in, named ``atoum.vmb``, in the directory named ``resources/vim``.
You will find the file corresponding to the plug-in, named ``atoum.vmb``, in the directory named ``resources/vim``. Or inside its `dedicated repository <https://github.com/atoum/vim-plugin>`_.

If you are using the PHAR archive, you must extract the file with the following command:

Expand Down Expand Up @@ -137,7 +137,7 @@ If you need more information check the `repository of the plugins <https://githu
Atom
****

atoum comes with an official package for atom. It helps you in several tasks :
atoum comes with an official package for atom. It helps you in several tasks:

* A panel with all tests
* Run all the tests, a directory or the current one
Expand All @@ -153,6 +153,14 @@ It's easy to install, simply follow the `official documentation <http://flight-m

If you need more information check the `repository of the package <https://github.com/atoum/atom-plugin>`_.


.. _ide_netbeans:

netbeans
********

atoum is officially integrated into netbeans since a long time, so you have nothing to do. Check this tutorial on `how to use netbeans with atoum <https://github.com/atoum/netbeans-sample>`_.

.. _ide_auto-open-test:

Automatically open failed tests
Expand All @@ -165,7 +173,10 @@ atoum is able to automatically open files from failed tests at the end of there
* :ref:`PhpStorm<ide_auto-open_phpstorm>` (Mac OS X/Unix)
* :ref:`gedit<ide_auto-open_gedit>` (Unix)

To use this feature, you need to change the :ref:`configuration file <fichier-de-configuration>`:
To use this feature, you need to change the :ref:`configuration file <fichier-de-configuration>` following you ide:

.. note::
You also simplfy you life using an `extension that do it for you <http://extensions.atoum.org/extensions/atoum-ide-helper>`_.

.. _ide_auto-open_macvim:

Expand Down
2 changes: 1 addition & 1 deletion source/en/start_with_atoum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ You need to write a test class for each tested class. When you want to test a va
Extension
*********

Atoum came with a set of extension you can use. To discover them, just go to the `dedicated website <http://extensions.atoum.org/>`_.
atoum came with a set of extension you can use. To discover them, just go to the `dedicated website <http://extensions.atoum.org/>`_.

5 changes: 3 additions & 2 deletions source/fr/asserters/generator.inc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ Exemple :
->yields->integer->isEqualTo(3)
;
Dans cette exemple nous créer un générateur qui produit 3 valeurs : 1, 2 et 3.
Ensuite nous produisons chaque valeurs et effectuons une assertion sur celle-ci pour vérifier le type et la valeur.
Dans les deux premières valeurs produite, nous utilisons l'asserter ``variable et nous ne vérifions que la valeur.
Dans les deux premières valeurs produite, nous utilisons l'asserter ``variable`` et nous ne vérifions que la valeur.
Avec la troisième valeur produite, nous vérifions qu'il s'agit bien d'un entier (toute asserter peut-être utiliser sur cette valeur) avant de vérifier la valeur.


Expand Down Expand Up @@ -92,4 +93,4 @@ Dans cet exemple, nous effectuons quelques vérifications sur toutes les valeurs
On vérifie ensuite que le générateur renvoie un entier avec une valeur de 42 (tout comme un appel à l’assertion yields, vous pouvez utiliser n’importe quel asserter pour vérifier la valeur retournée).

.. versionadded:: 3.0.0
`Asserter generator ajouté<https://github.com/atoum/atoum/blob/master/CHANGELOG.md#300---2017-02-22>`_
`Asserter generator ajouté <https://github.com/atoum/atoum/blob/master/CHANGELOG.md#300---2017-02-22>`_
5 changes: 2 additions & 3 deletions source/fr/configuration_bootstraping/configuration.inc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Utilisation de rapports standards
atoum est fourni avec de nombreux rapports standards : tap, xunit, html, cli, phing, vim, ... Il y a aussi quelques :ref:`rapports funs<fun-with-atoum>`. Vous trouverez les plus importants ici.

.. note::
Si vous souhaitez aller plus loin, il y a une :ref:`extension<http://extensions.atoum.org/extensions/reports>`_ dédiée aux rapports appelée ``reports-extension``.
Si vous souhaitez aller plus loin, il y a une `extension <http://extensions.atoum.org/extensions/reports>`_ dédiée aux rapports appelée ``reports-extension``.

.. _reports-configuration:

Expand All @@ -130,8 +130,7 @@ Couverture des branches et chemins

Dans le fichier de configuration, vous pouvez activer la couverture des branches et chemins à l'aide de l'option ``enableBranchAndPathCoverage``. Cette action améliorera la qualité de la couverture du code car elle ne se limitera pas à vérifier qu'une fonction est appelée, mais également
que chaque branche l'est également.
Pour faire simple, si vous avez un ``if``, le rapport changera si vous cherchez le
else. Vous pouvez aussi l'activer via la ligne commande avec :ref:`l'option --epbc<cli-options-ebpc>`.
Pour faire simple, si vous avez un ``if``, le rapport changera si vous cherchez le ``else``. Vous pouvez aussi l'activer via la ligne commande avec :ref:`l'option --epbc<cli-options-ebpc>`.

.. code-block:: php
Expand Down

0 comments on commit cbf11d9

Please sign in to comment.