Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component testing #12

Closed
nokome opened this issue Feb 15, 2014 · 0 comments
Closed

Component testing #12

nokome opened this issue Feb 15, 2014 · 0 comments
Assignees

Comments

@nokome
Copy link
Member

nokome commented Feb 15, 2014

Each component should have a test method which searches for tests in the component e.g.:

  • a tests directory
  • tests.* files e.g. tests.R

The tests will get called by a system call from C++ e.g python tests.py. The tests should load the component, run tests and output a standard format output file (probably JUnit XML). The component repo should be tagged with:

  • datetime of test
  • number of tests performed; number passed (parsing of XML can be done in C++)

That allows any updates of a local component to only use the latest version which has passed all tests. Tests will get inherited when a component is forked. Testing is most likely to be useful for stencil because they often contain code.

The might be a specific case of a general type of component methods that execute corresponding scripts in the component's directory e.g.

  • method test() runs test.R dumping stdout and stderr to a unique filename in the tests subdirectory which is parsed by test() for results; method tests() parses all files in the tests subdirectory.
  • method update() runs update.py .... (for updating Tables, Arrays etc)
@nokome nokome added 2 - Doing and removed 1 - Ready labels Feb 1, 2015
@nokome nokome self-assigned this Feb 2, 2015
nokome added a commit that referenced this issue Feb 2, 2015
@nokome nokome removed the 1 - Ready label Jan 12, 2016
@nokome nokome closed this as completed Jul 3, 2017
alex-ketch added a commit that referenced this issue Oct 27, 2021
Generate TS declarations & export theme names
nokome added a commit that referenced this issue Apr 27, 2024
Adding syntax highlighting for basic Markdown syntax.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant