Skip to content

Commit 1ff9ed7

Browse files
committed
[FR] Testing
1 parent 84d96dd commit 1ff9ed7

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

i18n/fr-FR.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,15 +2236,15 @@ Alors que ce guide explique le *quoi*, le *pourquoi* et le *comment*, il m'a ét
22362236
22372237
**[Retour en haut de page](#table-des-matières)**
22382238
2239-
## Testing
2240-
Unit testing helps maintain clean code, as such I included some of my recommendations for unit testing foundations with links for more information.
2239+
## Le Test
2240+
Les tests unitaires aident à maintenir un code propre, ainsi, j'ai inclu quelques unes de mes recommandations sur les fondamentaux du test unitaire avec des liens pour plus déinformation.
22412241
2242-
### Write Tests with Stories
2242+
### Écriture des Tests avec les Stories
22432243
###### [Style [Y190](#style-y190)]
22442244
2245-
- Write a set of tests for every story. Start with an empty test and fill them in as you write the code for the story.
2245+
- Écrivez un ensemble de tests pour chaque story. Commencer avec un test vide et complétez-les à mesure que vous écrivez le code pour la story.
22462246
2247-
*Why?*: Writing the test descriptions helps clearly define what your story will do, will not do, and how you can measure success.
2247+
*Pourquoi ?* : Écrire les descriptions de tests aident à définir clairement ce que votre story devra faire, ne devra pas faire et comment mesurer l'avancement.
22482248
22492249
```javascript
22502250
it('should have Avengers controller', function() {
@@ -2263,48 +2263,48 @@ Unit testing helps maintain clean code, as such I included some of my recommenda
22632263
//TODO ($httpBackend?)
22642264
});
22652265

2266-
// and so on
2266+
// et ainsi de suite
22672267
```
22682268
2269-
### Testing Library
2269+
### Librairie de Test
22702270
###### [Style [Y191](#style-y191)]
22712271
2272-
- Use [Jasmine](http://jasmine.github.io/) or [Mocha](http://visionmedia.github.io/mocha/) for unit testing.
2272+
- Utilisez [Jasmine](http://jasmine.github.io/) or [Mocha](http://visionmedia.github.io/mocha/) pour les tests unitaires.
22732273
2274-
*Why?*: Both Jasmine and Mocha are widely used in the AngularJS community. Both are stable, well maintained, and provide robust testing features.
2274+
*Pourquoi ?* : Jasmine et Mocha sont toutes deux largement utilisées dans la communauté AngularJS. Toutes les deux stables, bien maintenues, et fournissant des fonctionnalités robustes de test.
22752275
2276-
Note: When using Mocha, also consider choosing an assert library such as [Chai](http://chaijs.com).
2276+
Note : Lorsque vous utilisez Mocha, utilisez aussi une librairie d'assertion telle que [Chai](http://chaijs.com).
22772277
2278-
### Test Runner
2278+
### Lanceur de Test
22792279
###### [Style [Y192](#style-y192)]
22802280
2281-
- Use [Karma](http://karma-runner.github.io) as a test runner.
2281+
- Utilisez [Karma](http://karma-runner.github.io) comme lanceur de test.
22822282
2283-
*Why?*: Karma is easy to configure to run once or automatically when you change your code.
2283+
*Pourquoi ?* : Karma est facile à configurer pour lancer les tests une fois ou automatiquement lorsqu'un changement est fait dans le code.
22842284
2285-
*Why?*: Karma hooks into your Continuous Integration process easily on its own or through Grunt or Gulp.
2285+
*Pourquoi ?* : Karma s'intègre facilement dans votre processus d'Intégration Continue soit tout seul ou par Grunt ou Gulp.
22862286
2287-
*Why?*: Some IDE's are beginning to integrate with Karma, such as [WebStorm](http://www.jetbrains.com/webstorm/) and [Visual Studio](http://visualstudiogallery.msdn.microsoft.com/02f47876-0e7a-4f6c-93f8-1af5d5189225).
2287+
*Pourquoi ?* : Quelques EDI commencent à s'intégrer avec Karma, c'est le cas de [WebStorm](http://www.jetbrains.com/webstorm/) et [Visual Studio](http://visualstudiogallery.msdn.microsoft.com/02f47876-0e7a-4f6c-93f8-1af5d5189225).
22882288
2289-
*Why?*: Karma works well with task automation leaders such as [Grunt](http://www.gruntjs.com) (with [grunt-karma](https://github.com/karma-runner/grunt-karma)) and [Gulp](http://www.gulpjs.com) (with [gulp-karma](https://github.com/lazd/gulp-karma)).
2289+
*Pourquoi ?* : Karma fonctionne bien avec les leaders de l'automatisation de tâches tel que [Grunt](http://www.gruntjs.com) (avec [grunt-karma](https://github.com/karma-runner/grunt-karma)) ou [Gulp](http://www.gulpjs.com) (avec [gulp-karma](https://github.com/lazd/gulp-karma)).
22902290
2291-
### Stubbing and Spying
2291+
### Les Stubs et les Spy
22922292
###### [Style [Y193](#style-y193)]
22932293
2294-
- Use Sinon for stubbing and spying.
2294+
- Utilisez Sinon pour les stubs et les spy.
22952295
2296-
*Why?*: Sinon works well with both Jasmine and Mocha and extends the stubbing and spying features they offer.
2296+
*Pourquoi ?* : Sinon fonctionne bien avec Jasmine et Mocha et étend les fonctionnalités de stub et de spy qu'ils offrent.
22972297
2298-
*Why?*: Sinon makes it easier to toggle between Jasmine and Mocha, if you want to try both.
2298+
*Pourquoi ?* : Sinon rend plus facile l'alternance entre Jasmine et Mocha, si vous voulez essayer les deux.
22992299
2300-
### Headless Browser
2300+
### Navigateur sans Interface Graphique
23012301
###### [Style [Y194](#style-y194)]
23022302
2303-
- Use [PhantomJS](http://phantomjs.org/) to run your tests on a server.
2303+
- Utilisez [PhantomJS](http://phantomjs.org/) pour éxécuter les tests sur un serveur.
23042304
2305-
*Why?*: PhantomJS is a headless browser that helps run your tests without needing a "visual" browser. So you do not have to install Chrome, Safari, IE, or other browsers on your server.
2305+
*Pourquoi?* : PhantomJS est un navigateur sans interface graphique qui peut vous aider à éxécuter les tests sans avoir besoin d'un navigateur "visuel". Ainsi vous n'avez pas besoin d'installer Chrome, Safari, IE, ou d'autres navigateurs sur votre serveur.
23062306
2307-
Note: You should still test on all browsers in your environment, as appropriate for your target audience.
2307+
Note : Que cela ne vous dispense pas de tester sur tous les navigateurs dans votre environnement, d'après les clients que vous ciblez.
23082308
23092309
### Code Analysis
23102310
###### [Style [Y195](#style-y195)]

0 commit comments

Comments
 (0)