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

SFX-95: Testing Setup #4

Merged
merged 22 commits into from
Jul 3, 2019
Merged

SFX-95: Testing Setup #4

merged 22 commits into from
Jul 3, 2019

Conversation

geoffcoutts
Copy link
Contributor

@geoffcoutts geoffcoutts commented Jun 26, 2019

DESCRIPTION:

  • Setup for testing suite
    • Update dependencies
    • Update package scripts for running tests in browser and node
  • Add sample module and test
  • Update README with information for tests

ChantalDesrochers and others added 11 commits June 25, 2019 17:06
- Install nyc, source-map-support, ts-node, nyc-config-typescript.
- Add test and tdd scripts to package level.
- Add "mocha" types to tsconfig
sinon-chai makes assertions using chai expect and sinon less awkward
- Make singleRun = true default.
- Change chrome browser to headless
Copy link
Contributor

@jmbtutor jmbtutor left a comment

Choose a reason for hiding this comment

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

Just a few suggestions and questions, but it otherwise looks good.

.mocharc.json Show resolved Hide resolved
karma.conf.js Outdated Show resolved Hide resolved
tsconfig.json Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
Copy link
Contributor

@jmbtutor jmbtutor left a comment

Choose a reason for hiding this comment

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

If we're not going to move out the files from the test directory into the devtools repo (at least not yet), then this looks good.

@@ -0,0 +1,20 @@
import { expect, stub } from '../../utils';
Copy link
Contributor

@DanielMoniz-GBI DanielMoniz-GBI Jul 2, 2019

Choose a reason for hiding this comment

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

This was a source of great pain for me. I didn't manage to get the same file running in Karma and Mocha. I'm curious if you ran into any issues here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Plenty of issues.... Every time we added a new tool for testing it would break.

test/setup.ts Show resolved Hide resolved
test/utils.ts Show resolved Hide resolved
Copy link
Contributor

@JoeyDeol JoeyDeol left a comment

Choose a reason for hiding this comment

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

Looks good, solid work!

@geoffcoutts geoffcoutts merged commit 7fa8de2 into master Jul 3, 2019
@geoffcoutts geoffcoutts deleted the SFX-95 branch July 3, 2019 14:45
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.

5 participants