Skip to content

.tests field #49

Description

@jonathanong

since apps are already split up into components, why not tests? i'm not 100% sure how this would work yet, but i want each component to be able to have its own tests:

{
  "name": "router",
  "dependencies": {}
  "development": {
    "dependencies": {}
  },
  "tests": [
    "tests/*.js"
  ]
}

then a test runner could go through each component (in resolution order) and run each file after building the component in development mode. thus, no more test/ folder!

we could add more structure to this like requiring the tests to be of the form:

test.js
test/*.js
tests/*.js

so it could be run easier outside of component (i.e. mocha cli). we can have a shortcut "tests": true for this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions