exe/liri in liri-0.3.0 vs exe/liri in liri-0.3.1

- old
+ new

@@ -24,11 +24,11 @@ c.example 'Ejecuta el programa principal mostrando el resultado en línea de comandos', 'liri manager' c.example 'Ejecuta el programa principal guardando los resultados en un archivo .html', 'liri -o result.html' c.option '-o', '--output [filename]', String, 'Especifica donde guardar los resultados de la ejecución de pruebas unitarias' c.action do |args, options| current_folder = Dir.pwd - Liri.set_setup(current_folder) + Liri.set_setup(current_folder, :manager) Liri::Common::Benchmarking.start(end_msg: "\nFinalizado en: ", stdout: true) do # Metodo que se ejecuta al llamar al comando manager Liri::Manager.run(current_folder) end puts '' @@ -55,24 +55,43 @@ end # Define el alias m para el comando agent alias_command :a, :agent +# Define el comando y los parámetros para obtener los archivos de tests +command :tests_files do |c| + c.syntax = 'Liri tests_files [options]' + c.summary = 'Retorna los archivos de tests' + c.description = 'Ejecuta el comando para obtener la cantidad total de tests del proyecto' + c.example 'Ejecuta el comando tests', 'liri tf' + c.example 'Ejecuta el comando tests', 'liri tests_files' + c.action do |args, options| + # Método que se ejecuta al llamar al comando tests + current_folder = Dir.pwd + Liri.set_setup(current_folder, :manager) + tests_count = Liri::Task.tests_files(current_folder) + puts tests_count + end +end + +# Define el alias t para el comando tests +alias_command :tf, :tests_files + # Define el comando y los parámetros para obtener la cantidad de tests -command :tests do |c| - c.syntax = 'Liri tests [options]' +command :tests_count do |c| + c.syntax = 'Liri tests_count [options]' c.summary = 'Retorna la cantidad total de tests' c.description = 'Ejecuta el comando para obtener la cantidad total de tests del proyecto' - c.example 'Ejecuta el comando tests', 'liri t' - c.example 'Ejecuta el comando tests', 'liri tests' + c.example 'Ejecuta el comando tests', 'liri tc' + c.example 'Ejecuta el comando tests', 'liri tests_count' c.action do |args, options| # Método que se ejecuta al llamar al comando tests current_folder = Dir.pwd - Liri.set_setup(current_folder) + Liri.set_setup(current_folder, :manager) tests_count = Liri::Task.tests_count(current_folder) puts tests_count end end # Define el alias t para el comando tests -alias_command :t, :tests +alias_command :tc, :tests_count