Giter VIP home page Giter VIP logo

argus's People

Contributors

ldgit avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

argus's Issues

Modify testRunnerCommand to use same format as runAllTestsCommand

For example, if npm t runs all our unit tests, current test runner command format would be:

module.exports = {
    {
      // ...
      arguments: ['t', '--'],      
      testRunnerCommand: 'npm',
      // ...
    },
  ],
};

New format:

module.exports = {
    {
      // ...
      testRunnerCommand: { command: 'npm', arguments: ['t', '--'] },
      // ...
    },
  ],
};

This would make it consistent with the format of runAllTestsCommand.

Add support for configuration file.

Users should be able to tell argus what files to watch and how to run tests on them if they change.
To support this, user should define special config file.

Current proposal is a javascript module describing different environments, for example:

module.exports = {
  environments: [
    {
      extension: 'php',
      testNameSuffix: 'Test',
      testDir: 'tests/unit',
      sourceDir: 'src',
      arguments: ['--colors'],
      testRunnerCommand: 'vendor/bin/phpunit',
    },
    {
      extension: 'js',
      testNameSuffix: '.test',
      testDir: 'tests/unit',
      sourceDir: 'src',
      arguments: [],
      testRunnerCommand: 'node_modules/.bin/mocha',
    },
  ],
};

This would have following benefits:

  • could watch and run tests for different languages, e. g. javascript and PHP
  • would support watching tests in same language with different configurations, e. g. unit and integration test configuration, all at the same time
  • would solve #3
  • is flexible enough to easily support further expansion in the future, e. g. user could provide a custom locator function for finding source files for a given test file

To mantain BC, if no configuration file is found a special default configuration will be used.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.