Skip to content
GitLab
Explorer
Connexion
S'inscrire
Navigation principale
Rechercher ou aller à…
Projet
P
parlote-facil
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de paquets
Registre de conteneur
Registre de modèles
Opération
Environnements
Modules Terraform
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
facil
parlote-facil
Validations
3e499c0f
Valider
3e499c0f
rédigé
14 years ago
par
Stephen Caudill
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Hack the rake tasks to run cucumber + rspec
parent
5f2d4ba0
Aucune branche associée trouvée
Branches contenant la validation
Aucune étiquette associée trouvée
Étiquettes contenant la validation
Aucune requête de fusion associée trouvée
Modifications
3
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
3 fichiers modifiés
Rakefile
+1
-0
1 ajout, 0 suppression
Rakefile
lib/tasks/cucumber.rake
+6
-4
6 ajouts, 4 suppressions
lib/tasks/cucumber.rake
lib/tasks/rspec.rake
+0
-3
0 ajout, 3 suppressions
lib/tasks/rspec.rake
avec
7 ajouts
et
7 suppressions
Rakefile
+
1
−
0
Voir le fichier @
3e499c0f
...
@@ -10,4 +10,5 @@
...
@@ -10,4 +10,5 @@
require
File
.
expand_path
(
'../config/application'
,
__FILE__
)
require
File
.
expand_path
(
'../config/application'
,
__FILE__
)
require
'rake'
require
'rake'
ENV
[
'GNUPGHOME'
]
=
File
.
expand_path
(
"../../gpg/diaspora-
#{
Rails
.
env
}
/"
,
__FILE__
)
ENV
[
'GNUPGHOME'
]
=
File
.
expand_path
(
"../../gpg/diaspora-
#{
Rails
.
env
}
/"
,
__FILE__
)
Diaspora
::
Application
.
load_tasks
Diaspora
::
Application
.
load_tasks
Ce diff est replié.
Cliquez pour l'agrandir.
lib/tasks/cucumber.rake
+
6
−
4
Voir le fichier @
3e499c0f
...
@@ -14,19 +14,19 @@ begin
...
@@ -14,19 +14,19 @@ begin
require
'cucumber/rake/task'
require
'cucumber/rake/task'
namespace
:cucumber
do
namespace
:cucumber
do
Cucumber
::
Rake
::
Task
.
new
(
{
:ok
=>
'db:test:prepare'
}
,
'Run features that should pass'
)
do
|
t
|
Cucumber
::
Rake
::
Task
.
new
(
:ok
,
'Run features that should pass'
)
do
|
t
|
t
.
binary
=
vendored_cucumber_bin
# If nil, the gem's binary is used.
t
.
binary
=
vendored_cucumber_bin
# If nil, the gem's binary is used.
t
.
fork
=
true
# You may get faster startup if you set this to false
t
.
fork
=
true
# You may get faster startup if you set this to false
t
.
profile
=
'default'
t
.
profile
=
'default'
end
end
Cucumber
::
Rake
::
Task
.
new
(
{
:wip
=>
'db:test:prepare'
}
,
'Run features that are being worked on'
)
do
|
t
|
Cucumber
::
Rake
::
Task
.
new
(
:wip
,
'Run features that are being worked on'
)
do
|
t
|
t
.
binary
=
vendored_cucumber_bin
t
.
binary
=
vendored_cucumber_bin
t
.
fork
=
true
# You may get faster startup if you set this to false
t
.
fork
=
true
# You may get faster startup if you set this to false
t
.
profile
=
'wip'
t
.
profile
=
'wip'
end
end
Cucumber
::
Rake
::
Task
.
new
(
{
:rerun
=>
'db:test:prepare'
}
,
'Record failing features and run only them if any exist'
)
do
|
t
|
Cucumber
::
Rake
::
Task
.
new
(
:rerun
,
'Record failing features and run only them if any exist'
)
do
|
t
|
t
.
binary
=
vendored_cucumber_bin
t
.
binary
=
vendored_cucumber_bin
t
.
fork
=
true
# You may get faster startup if you set this to false
t
.
fork
=
true
# You may get faster startup if you set this to false
t
.
profile
=
'rerun'
t
.
profile
=
'rerun'
...
@@ -38,7 +38,9 @@ begin
...
@@ -38,7 +38,9 @@ begin
desc
'Alias for cucumber:ok'
desc
'Alias for cucumber:ok'
task
:cucumber
=>
'cucumber:ok'
task
:cucumber
=>
'cucumber:ok'
task
:default
=>
:cucumber
Rake
.
application
.
instance_variable_get
(
'@tasks'
).
delete
(
'default'
)
task
:default
=>
[
:cucumber
,
:spec
]
task
:features
=>
:cucumber
do
task
:features
=>
:cucumber
do
STDERR
.
puts
"*** The 'features' task is deprecated. See rake -T cucumber ***"
STDERR
.
puts
"*** The 'features' task is deprecated. See rake -T cucumber ***"
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
lib/tasks/rspec.rake
+
0
−
3
Voir le fichier @
3e499c0f
...
@@ -32,13 +32,10 @@ MSG
...
@@ -32,13 +32,10 @@ MSG
end
end
end
end
Rake
.
application
.
instance_variable_get
(
'@tasks'
).
delete
(
'default'
)
spec_prereq
=
Rails
.
root
.
join
(
'config'
,
'database.yml'
).
exist?
?
"db:test:prepare"
:
:noop
spec_prereq
=
Rails
.
root
.
join
(
'config'
,
'database.yml'
).
exist?
?
"db:test:prepare"
:
:noop
task
:noop
do
task
:noop
do
end
end
task
:default
=>
:spec
task
:stats
=>
"spec:statsetup"
task
:stats
=>
"spec:statsetup"
desc
"Run all specs in spec directory (excluding plugin specs)"
desc
"Run all specs in spec directory (excluding plugin specs)"
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter