Commit e9066b38 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Rename doctests to simply tests.

So we now have a --tests option and all related modules are named
tests, not doctests.
parent a3ca4dc6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -221,10 +221,10 @@ task :ext4 => :sass do
end

desc "Run JSDuck with example test hacks"
task :doctests => :sass do |t, args|
task :tests => :sass do |t, args|
  runner = JsDuckRunner.new
  runner.add_ext4
  runner.add_options("--doctests")
  runner.add_options("--tests")
  runner.add_debug
  runner.run

+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ module JsDuck
        end
        format_classes

        if @opts.doctests
        if @opts.tests
          examples = InlineExamples.new
          examples.add_classes(@relations)
          examples.add_guides(@assets.guides)
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ module JsDuck
          :examples => @assets.examples.to_array,
          :search => SearchData.new.create(@relations.classes, @assets),
          :stats => @opts.stats ? Stats.new.create(@relations.classes) : [],
          :doctests => @opts.doctests,
          :tests => @opts.tests,
          :signatures => MetaTagRegistry.instance.signatures,
          :localStorageDb => @opts.local_storage_db,
          :showPrintButton => @opts.seo,
+4 −4
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ module JsDuck
    attr_accessor :seo
    attr_accessor :eg_iframe
    attr_accessor :examples_base_url
    attr_accessor :doctests
    attr_accessor :tests

    # Debugging
    attr_accessor :processes
@@ -100,7 +100,7 @@ module JsDuck
      @seo = false
      @eg_iframe = nil
      @examples_base_url = "extjs-build/examples/"
      @doctests = false
      @tests = false

      # Debugging
      # Turn multiprocessing off by default in Windows
@@ -294,8 +294,8 @@ module JsDuck
          @examples_base_url = path
        end

        opts.on('--doctests', "Creates infrastructure for running tests. Experimental!", " ") do
          @doctests = true
        opts.on('--tests', "Creates infrastructure for running tests. Experimental!", " ") do
          @tests = true
        end

        opts.separator "Debugging:"
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ Ext.define('Docs.Application', {
        'Videos',
        'Stats',
        'Tabs',
        'DocTests'
        'Tests'
    ],

    launch: function() {
Loading