1. 03 2月, 2020 1 次提交
  2. 03 1月, 2020 1 次提交
  3. 18 7月, 2019 1 次提交
    • B
      Refactor DenoDir (#2636) · 8214b686
      Bartek Iwańczuk 提交于
      * rename `ModuleMetaData` to `SourceFile` and remove TS specific
        functionality
      
      * add `TsCompiler` struct encapsulating processing of TypeScript files
      
      * move `SourceMapGetter` trait implementation to `//cli/compiler.rs`
      
      * add low-level `DiskCache` API for general purpose caches and use it in
        `DenoDir` and `TsCompiler` for filesystem access
      
      * don't use hash-like filenames for compiled modules, instead use
        metadata file for storing compilation hash
      
      * add `SourceFileCache` for in-process caching of loaded files for fast
        subsequent access
      
      * define `SourceFileFetcher` trait encapsulating loading of local and
        remote files and implement it for `DenoDir`
      
      * define `use_cache` and `no_fetch` flags on `DenoDir` instead of using
        in fetch methods
      8214b686
  4. 08 6月, 2019 1 次提交
    • A
      make tests quieter (#2468) · 5960e398
      Andy Hayden 提交于
      Don't mix every http request in with the tests output.
      Don't print that the file servers are starting unless
      -vv flag is passed.
      
      Capture the output of run with run_output which returns
      stdout, stderr and exit_code. Test against this rather
      than relying on sys.exit.
      5960e398
  5. 04 6月, 2019 1 次提交
    • B
      Refactor test infrastructure (#2432) · 43c6c1a9
      Bartek Iwańczuk 提交于
      * use subclass of unittest.TestCase for all test cases
      
      * allow to run single test file (eg. python tools/integration_tests.py)
      
      * test filtering (via --pattern/-p CLI flag)
      
      * use common CLI parser for all tests:
        usage: test.py [-h] [--failfast] [--verbose] [--executable EXECUTABLE]
                     [--release] [--pattern PATTERN] [--build-dir BUILD_DIR]
      
        optional arguments:
        -h, --help            show this help message and exit
        --failfast, -f        Stop on first failure
        --verbose, -v         Verbose output
        --executable EXECUTABLE
                              Use external executable of Deno
        --release             Test against release executable
        --pattern PATTERN, -p PATTERN
                              Run tests that match provided pattern
        --build-dir BUILD_DIR
                              Deno build directory
      
      * respect NO_COLOR variable
      43c6c1a9
  6. 31 5月, 2019 1 次提交
    • A
      chore: refactor python tests to use unittest (#2414) · 8fb44eba
      Andy Hayden 提交于
      Move every test to a method on DenoTestCase.
      test.py is a single TestSuite of every TestCase.
      
      Add a Spawn context manager for http_server,
      this is explicitly used where it's needed.
      Each python test file can now be run independently
      without needing to manually run http_server.
      
      Add --help and consistent flags using argparse for
      each python test, including --failfast.
      
      Use ColorTextTestRunner so that '... ok' is green.
      8fb44eba
  7. 04 5月, 2019 1 次提交
  8. 22 1月, 2019 1 次提交
  9. 01 12月, 2018 1 次提交
  10. 09 11月, 2018 1 次提交
  11. 20 10月, 2018 1 次提交
  12. 16 10月, 2018 2 次提交
    • R
      Format · 590feb1c
      Ryan Dahl 提交于
      590feb1c
    • A
      Specify deno_dir location with env var DENO_DIR (#970) · 15590a0c
      Amos Lim 提交于
      (Use C:\deno instead of c:\deno in appveyor config because it's cloned to c:\ by clone_folder variable in .appveyor.yml. On the other hand, build directory is pointed to C:\ by $(APPVEYOR_BUILD_FOLDER) so that test targets are placed on separated partitions.)
      15590a0c