Spoke icon indicating copy to clipboard operation
Spoke copied to clipboard

wip: test writing documentation

Open schuyler1d opened this issue 6 years ago • 8 comments

Fixes no full documentation on how to write tests

Description

Let's document testing patterns, gotchas and best practices.

  • [ ] Figure out when we really need mount() vs. shallow() in React components
  • [ ] put a sleep in ./lib or somewhere else appropriate (and document)

and generally need more details. This outline is meant to be fleshed out -- please help expand!

  • [x] My PR is labeled [WIP] if it is in progress

schuyler1d avatar Jan 23 '20 17:01 schuyler1d

This is so helpful!! I can try and help add stuff on too. Do you think we could merge it as is but included that we need more contributions to it? Just to make folks are actually able to find what's already here?

ibrand avatar Jan 28 '20 18:01 ibrand

Does this cover this issue? https://github.com/MoveOnOrg/Spoke/issues/410

Frydafly avatar Mar 05 '21 15:03 Frydafly

Does this cover this issue? #410

No -- worker processes are background 'cron' jobs -- this is for how to run tests, which we would need to update, if we merged this -- e.g. we should at least link to Cypress test documentation I believe we have.

schuyler1d avatar Mar 05 '21 15:03 schuyler1d

@schuyler1d is this the documentation you're referring to? https://github.com/MoveOnOrg/Spoke/blob/ddd32f474461da98d6377b59e8a2f76099370543/docs/HOWTO-run_tests.md#integration-testing

Frydafly avatar Mar 10 '21 18:03 Frydafly

hey @schuyler1d wondering if you might want to add this as a change to this existing document? https://github.com/MoveOnOrg/Spoke/blob/main/docs/HOWTO-run_tests.md

Frydafly avatar Mar 18 '21 20:03 Frydafly

I think we were thinking of it as a separate document just to separate the 'I made a change and want to run the tests' vs. 'I am writing a test' which is more a subset of code guidelines. But agree that either way it would work -- it's more the task of completing this document (and then putting it somewhere)

schuyler1d avatar Mar 18 '21 20:03 schuyler1d

hm! in that case @schuyler1d do you think it would be beneficial to merge as-is, perhaps with a caveat text at the bottom that this document could use more work, so that there is more visibility on this doc and folks might be inspired to add to it?

Frydafly avatar Mar 20 '21 13:03 Frydafly

@schuyler1d I think it would be great to merge as-is and get folks adding to this/contributing more! what do you think?

Frydafly avatar Apr 23 '21 15:04 Frydafly