Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Any examples of loopback-testing usage? #36

Closed
pulkitsinghal opened this issue Dec 5, 2014 · 5 comments
Closed

Any examples of loopback-testing usage? #36

pulkitsinghal opened this issue Dec 5, 2014 · 5 comments
Labels

Comments

@pulkitsinghal
Copy link
Contributor

Are the examples in "building test data" and "basic usage" meant to be used together or are they completely different concepts? In strongloop/looback itself, I couldn't find any references for TestDataBuilder so here should I be looking to learn by example?

@pulkitsinghal
Copy link
Contributor Author

I don't know how to force github to search within the strongloop repos only so I refined my search with the following keywords: require loopback-testing TestDataBuilder to narrow it down from some 600 odd results to 15 code examples, out of which 6 seem relevant.

@bajtos
Copy link
Contributor

bajtos commented Dec 5, 2014

Are the examples in "building test data" and "basic usage" meant to be used together or are they completely different concepts?

They are completely different concepts.

TestDataBuilders make it easy to build data for you tests. A good example is push-manager.test.js from loppback-component-push.

The rest of the API provides a domain-specific language to write integration tests that run REST requests against your app. A good example is access-control.integration.js in loopback.

@bajtos
Copy link
Contributor

bajtos commented Dec 10, 2014

@crandmck I marked this issue with doc label, as we should consider extending our documentation with the information above. If you agree with me, then please reopen this issue.

@crandmck
Copy link

It might make sense, but not sure where it would fall in priorities, given all the other doc issues.
@altsang Thoughts?

@jrschumacher
Copy link
Contributor

Working on adding tests to strongloop/loopback-example-full-stack see strongloop/loopback-example-offline-sync/pull/53

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

No branches or pull requests

4 participants