Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Moar tests #2664

Merged
merged 21 commits into from
Mar 29, 2018
Merged

Moar tests #2664

merged 21 commits into from
Mar 29, 2018

Conversation

brianlovin
Copy link
Contributor

@brianlovin brianlovin commented Mar 28, 2018

Status

  • WIP
  • Ready for review
  • Needs testing

I'm going to be working on this for a while more today, just wanted to get it on github :)

@spectrum-bot
Copy link

spectrum-bot commented Mar 28, 2018

Warnings
⚠️

These modified files do not have Flow enabled:

  • src/components/buttons/index.js

Generated by 🚫 dangerJS

@brianlovin
Copy link
Contributor Author

Made good progress today, just a bit slow going managing the default data stuff :/

Anyways, this tests a lot of stuff and helped me find some bugs in the app around how we show actions in the thread settings dropdown.

While there are still more thread tests to write, let's go ahead and ship this since it includes the fix + adds a lot of coverage regardless :)

@brianlovin
Copy link
Contributor Author

@mxstbr I was having a lot of trouble getting eslint to run locally; I added .eslintrc.json to the directory, but if nobody else is having trouble with eslint I can gitignore it. Specifically, I couldn't get it to run in the cypress tests for knowing unused defs

@brianlovin
Copy link
Contributor Author

These tests are a nightmare - i cannot figure out how to reliably reset the db between specs because it just fails and tries to start running other tests while the db is still resetting. And if I don't reset, we have collisions in the data when testing migrations.

So we need to figure out how to reliably reset the db or just never test migrations in these end to end tests and only test that certain view elements load...and eventually figure out mutation tests?

@brianlovin
Copy link
Contributor Author

This test will likely fail because of this, but each works individually. Let's ship

@brianlovin brianlovin merged commit fcde75e into alpha Mar 29, 2018
@brianlovin brianlovin deleted the moar-tests branch March 29, 2018 20:27
@mxstbr
Copy link
Contributor

mxstbr commented Mar 30, 2018

Uhh, doesn't that make these tests totally useless? Doesn't seem to worth to ship this, right?

@brianlovin
Copy link
Contributor Author

Uhh, doesn't that make these tests totally useless? Doesn't seem to worth to ship this, right?

Agreed, I'll keep working on this today. Needed to get this out as it fixed a bunch of bugs + improved a ton of coverage on thread views.

@brianlovin brianlovin mentioned this pull request Mar 30, 2018
3 tasks
@mxstbr
Copy link
Contributor

mxstbr commented Mar 30, 2018

Makes sense. I'm trying to fix 'em in CI at #2674

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants