forked from rubinius/rubinius
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Translate "Specs" documentation chapter into italian
- Loading branch information
Showing
1 changed file
with
32 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,45 @@ | ||
--- | ||
layout: doc_it | ||
title: Specs | ||
previous: Ruby - Global Variables | ||
title: Specifiche | ||
previous: Ruby - Variabili globali | ||
previous_url: ruby/global-variables | ||
next: RubySpec | ||
next_url: specs/rubyspec | ||
--- | ||
|
||
The Rubinius project generally uses TDD/BDD-style executable specifications to | ||
drive development. The Rubinius 'spec' directory is conceptually divided into | ||
two parts: | ||
Lo sviluppo del progetto Rubinius è guidato generalmente da specifiche | ||
eseguibili in stile TDD/BDD. La cartella 'spec' si divide concettualmente | ||
i due parti: | ||
|
||
1. All the files under './spec/ruby' that describe the behavior of MatzRuby. | ||
2. And all the other files under the './spec' directory that describe the | ||
behavior of Rubinius. | ||
1. I file in './spec/ruby' descrivono il comportamento dell'interprete | ||
Ruby ufficiale. | ||
2. I restanti file nella cartella './spec' descrivono invece il | ||
comportamento di Rubinius. | ||
|
||
The specs at ./spec/ruby are a copy of RubySpec at a particular revision. | ||
These are regularly imported from the RubySpec project and failing specs are | ||
tagged so that the CI process always runs a known good set of specs. This | ||
enables easily confirming that changes to Rubinius code do not cause | ||
regressions. | ||
Le specifiche in ./spec/ruby sono una copia delle RubySpec ad una particolare | ||
revisione. Queste vengono importate regolarmente dal progetto RubySpec e le | ||
specifiche che falliscono vengono taggate per far sì che il processo di | ||
Continuous Integration esegua sempre un set di specifiche riconosciute come | ||
funzionanti. Ciò consente di assicurarsi facilmente che cambiamenti al codice | ||
di Rubinius non causino regressioni. | ||
|
||
Documentation about the organization of specs and guidelines for writing specs | ||
can be found at the [RubySpec project](http://rubyspec.org/). | ||
Il sito del [progetto RubySpec](http://rubyspec.org/) contiene documentazione | ||
sull'organizzazione delle specifiche e linee guide per scriverle. | ||
|
||
Use the following workflow when adding specs and code to Rubinius: | ||
Nell'aggiungere codice e specifiche a Rubinius utilizzate la seguente | ||
procedura: | ||
|
||
1. Write failing specs for some aspect of Ruby behavior. Commit the specs in | ||
a separate commit to the appropriate files under ./spec/ruby. | ||
2. Add Rubinius code to make the specs pass. Again, commit these changes in | ||
a separate commit from the spec changes. | ||
3. Run the `rake` command to ensure that all the CI specs pass. | ||
1. Scrivete una specifica che fallisce riguardo a qualche aspetto del | ||
comportamento di Ruby. Effettuate un commit separato con i file necessari | ||
in ./spec/ruby. | ||
2. Aggiungete a Rubinius il codice necessario a far passare le specifiche. | ||
Effettuate un commit separato da quello con i cambiamenti alle | ||
specifiche. | ||
3. Lanciate il comando `rake` per assicurarvi che tutte le specifiche | ||
eseguite nel processo di Continuous Integration passino. | ||
|
||
The changes to files in ./spec/ruby are regularly pushed to the RubySpec | ||
project. Also, current changes to RubySpec from committers to other Ruby | ||
implementations are regularly updated in the ./spec/ruby directories. When the | ||
specs are updated from RubySpec, the CI tags are also updated. | ||
I cambiamenti ai file in ./spec/ruby vengono regolarmente integrati nel | ||
progetto RubySpec. Allo stesso modo, i cambiamenti correnti effettuati alle | ||
RubySpec da collaboratori di altre implementazioni Ruby vengono regolarmente | ||
integrati in ./spec/ruby. In questo caso vengono aggiornati anche i tag della | ||
Continuous Integration. |