Ai
4 Star 37 Fork 11

Gitee 极速下载/DevDocs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/freeCodeCamp/devdocs
克隆/下载
test.thor 518 Bytes
一键复制 编辑 原始数据 按行查看 历史
Thibaut 提交于 2015-01-03 23:42 +08:00 . Add thor tasks for running individual test suites
require 'pry'
class TestCLI < Thor
def self.to_s
'Test'
end
default_command :all
def initialize(*args)
$LOAD_PATH.unshift 'test'
super
end
desc 'all', 'Run all tests'
def all
Dir['test/**/*_test.rb'].map(&File.method(:expand_path)).each(&method(:require))
end
desc 'docs', 'Run "Docs" tests'
def docs
Dir['test/lib/docs/**/*_test.rb'].map(&File.method(:expand_path)).each(&method(:require))
end
desc 'app', 'Run "App" tests'
def app
require 'app_test'
end
end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Ruby
1
https://gitee.com/mirrors/DevDocs.git
git@gitee.com:mirrors/DevDocs.git
mirrors
DevDocs
DevDocs
main

搜索帮助