Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Result Output format for the AST File searcher #64

Open
suchitadoshi1987 opened this issue Sep 20, 2019 · 0 comments
Open

Result Output format for the AST File searcher #64

suchitadoshi1987 opened this issue Sep 20, 2019 · 0 comments

Comments

@suchitadoshi1987
Copy link
Collaborator

For generic result data we could have something like this:

resultData: [
  {
    type: 'unit-test',
    path: 'tests/unit/bar-test.js',
    line: 22,
    value: 'module',
  },
  {
    type: 'unit-test',
    path: 'tests/unit/foo-test.js',
    line: 67,
    value: 'test',
  },
  {
    type: 'unit-test',
    path: 'tests/unit/bar-test.js',
    line: 84,
    value: 'test',
  },  
]

For specific ones eg: test, we could have something similar to above but maybe addition of the description of that test/module too? 🤷‍♀

resultData: [
  {
    type: 'unit-test',
    path: 'tests/unit/bar-test.js',
    line: 22,
    description: 'Unit | Bar Test',
    value: 'module',
  },
  {
    type: 'unit-test',
    path: 'tests/unit/foo-test.js',
    line: 67,
    description: 'it should be an awesome foo test',
    value: 'test',
  },
  {
    type: 'unit-test',
    path: 'tests/unit/bar-test.js',
    line: 84,
    description: 'it should be an awesome bar test',
    value: 'test',
  },  
]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant