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

3.0 Test and Repo Pretidy #490

Merged
merged 18 commits into from Aug 22, 2016
Merged

3.0 Test and Repo Pretidy #490

merged 18 commits into from Aug 22, 2016

Conversation

mcdonnelldean
Copy link
Contributor

@mcdonnelldean mcdonnelldean commented Aug 16, 2016

This is an effort to tidy the test suite and related structure before 3.0 launches.

Changes

  • Removed remaining legacy logging artefacts. Logging is now complete.
  • Removed all dead code from the test suite,
  • Removed unused stubs from the test suite,
  • Removed code which didn't run from test suite,
  • Removed samples that used features that have been deprecated.
  • Corrected code conventions in the README to use msg/done format.
  • Moved coverage file to /docs
  • Corrected names of various files and examples in /docs
  • Flattened test structure so all *.test.js files are in root test folder
  • options.tests.js is the exception as it needs rework to be moved
  • Moved all stubs being used into stubs folder for readability purposes
  • Added a high value example to the README to show off more features
  • Removed seneca echo tests and dev depencency (since it's not default)
  • Removed unused dependency for eslint
  • Removed Repl tests as they are to be moved to seneca-repl
  • Removed all manual testing files in preperation for auto testing via 'The Rig'

@rjrodger You may want to throw an eye over this. Bear in mind two points. We are going to be testing all SenecaJs plugins via The Rig post 3.0 and we are fixing documentation so are looking to remove all of the out of date examples from the repos.

@coveralls
Copy link

coveralls commented Aug 16, 2016

Coverage Status

Coverage remained the same at 87.548% when pulling 2d27f9e on tests into 354c76d on master.

@coveralls
Copy link

coveralls commented Aug 17, 2016

Coverage Status

Coverage remained the same at 87.566% when pulling 3e57739 on tests into 135dfa5 on master.

@coveralls
Copy link

coveralls commented Aug 17, 2016

Coverage Status

Coverage remained the same at 87.566% when pulling 3e57739 on tests into 135dfa5 on master.

@coveralls
Copy link

coveralls commented Aug 17, 2016

Coverage Status

Coverage decreased (-0.7%) to 86.818% when pulling 37a620b on tests into 135dfa5 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.7%) to 86.818% when pulling 37a620b on tests into 135dfa5 on master.

@coveralls
Copy link

coveralls commented Aug 18, 2016

Coverage Status

Coverage decreased (-0.7%) to 86.818% when pulling 5d11aac on tests into 5f553c6 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.7%) to 86.818% when pulling 5d11aac on tests into 5f553c6 on master.

- already in seneca-repl
- seneca-repl is checked against seneca via travis
- put stubs in stubs folder,
- flattened out *.tests.js files to make it easier to find them
- removed tests that are testing non default plugins
- removed all code from test folder that is not for testing purposes
- various changes to support the above
@coveralls
Copy link

coveralls commented Aug 19, 2016

Coverage Status

Coverage decreased (-0.9%) to 86.672% when pulling 6a51202 on tests into 3da79d7 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.9%) to 86.672% when pulling 6a51202 on tests into 3da79d7 on master.

@coveralls
Copy link

coveralls commented Aug 19, 2016

Coverage Status

Coverage increased (+0.5%) to 88.028% when pulling 2581e26 on tests into 3da79d7 on master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 88.028% when pulling 2581e26 on tests into 3da79d7 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 88.028% when pulling 2581e26 on tests into 3da79d7 on master.

@coveralls
Copy link

coveralls commented Aug 19, 2016

Coverage Status

Coverage increased (+0.3%) to 87.877% when pulling 2581e26 on tests into 3da79d7 on master.

@mcdonnelldean mcdonnelldean changed the title [WIP] Tests 3.0 Test and Repo Pretidy Aug 19, 2016
@coveralls
Copy link

coveralls commented Aug 19, 2016

Coverage Status

Coverage increased (+0.3%) to 87.877% when pulling 621416e on tests into 3da79d7 on master.

@mcdonnelldean
Copy link
Contributor Author

@mihaidma can you throw a quick eye over this before I merge? In case I missed anything?

// Output
// null { tag: 'none' }
// null { tag: 'approver' }
// null { tag: 'rejector' }
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ran the sample and got:

null { tag: 'local' }
null { tag: 'approver' }
null { tag: 'rejector' }

8. Run `npm publish`
9. Run `npm tag seneca@VERSION next`
10. Run `npm tag seneca@VERSION plugin`
11. Update and publish plugins
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one more step needed:
go to https://github.com/senecajs/seneca/releases
Push the Draft a new release button and paste there the Changelog content. Choose the tag version and a title.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mihaidma I actually want to talk about this file today with you. We need to add the above plus steps on running the rig.

@mihaidma
Copy link
Contributor

LGTM

@coveralls
Copy link

coveralls commented Aug 22, 2016

Coverage Status

Coverage increased (+0.5%) to 88.028% when pulling 23c1df7 on tests into 3da79d7 on master.

@coveralls
Copy link

coveralls commented Aug 22, 2016

Coverage Status

Coverage increased (+0.3%) to 87.877% when pulling 23c1df7 on tests into 3da79d7 on master.

@mcdonnelldean mcdonnelldean merged commit 2140c5e into master Aug 22, 2016
@mcdonnelldean mcdonnelldean deleted the tests branch August 22, 2016 09:37
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

Successfully merging this pull request may close these issues.

None yet

3 participants