Faster tests (#1686)

This commit is contained in:
Dawa Ometto
2021-02-26 11:34:41 +01:00
committed by GitHub
parent 7c60841bad
commit 104335706a
3 changed files with 4 additions and 3 deletions
+2
View File
@@ -62,6 +62,8 @@ Pull Requests fixing bugs, implementing new features, or updating documentation
```
bundle exec rake test
```
To profile slow tests, you can use `bundle exec rake test TESTOPTS="--verbose"`.
### Working with test repositories
+1 -2
View File
@@ -6,5 +6,4 @@ end
gemspec
gem "rake", '~> 13.0'
gem 'rake', '~> 13.0'
+1 -1
View File
@@ -117,7 +117,7 @@ module Precious
@js = settings.wiki_options[:js]
@mathjax_config = settings.wiki_options[:mathjax_config]
@use_static_assets = settings.wiki_options.fetch(:static, settings.environment == :production || settings.environment == :staging)
@use_static_assets = settings.wiki_options.fetch(:static, settings.environment != :development)
@static_assets_path = settings.wiki_options.fetch(:static_assets_path, ::File.join(File.dirname(__FILE__), 'public/assets'))
@mathjax_path = ::File.join(File.dirname(__FILE__), 'public/gollum/javascript/MathJax')