Comments (6)
I'll try to setup for my project and contribute once I figure it out.
from testing-nestjs.
@jmcdo29 Are we looking at including test coverage for the setup, or we're just looking at able to run the e2e test as starter?
from testing-nestjs.
As a start, just ensuring they run properly. Coverage can be updated later
from testing-nestjs.
Manage to get something working for my project here: https://github.com/malcolm-kee/dine-in/blob/master/.github/workflows/e2e-test.yaml
@jmcdo29 do you have any suggestion for the examples of the container-ized tests? Should we create separate example or we use existing sample by adding more configuration/code?
from testing-nestjs.
@malcolm-kee I kind of like using the existing samples, but if it is easier to create a separate sample, then let's go with that if it will still be extensible.
from testing-nestjs.
Thinking out loud on the E2E Testing example. @jmcdo29 If you have any idea to simplify it, that would be great!
2 Apps Will Be Created
e2e-example-redis-publisher
have a single REST endpoint, which when called will publish an event to redise2e-example-redis-subscriber
will listen to the event from redis and save the data in mongoDB. It also expose a single REST endpoint which can be called to retrieve the saved data.
Dockerfile
on how to build each apps will be available in their respective folder.
A e2e-testing
folder will be added for E2E test scripts
The endpoints of the request will be injected by environment variables.
A single docker-compose.yaml
file in the project root
- The apps and the test scripts will be listed here. We'll let Docker Compose to figure out which apps to bring up when we
docker-compose run
in GitHub Actions.
from testing-nestjs.
Related Issues (20)
- Suggestion: convert testing-nestjs into monorepo with Lerna HOT 3
- [Question] How I mock another service method? HOT 8
- Suggestion: create tests for Prisma (alternative to TypeORM) HOT 7
- [FAILING TEST] Unit testing a NestJS Service that consumes a TypeORM Repository HOT 6
- [NEW TEST] Testing for interceptor failure HOT 3
- [NEW TEST] KnexJs Sample test HOT 1
- Multiple mocked dependencies with the same content HOT 5
- [NEW TEST] Bull HOT 4
- Prisma transactions and rollbacks now available HOT 2
- [NEW TEST] - (Contract Testing) - Incorporate NestJS Consumer Driven Contract testing with nestjs-pact HOT 6
- README refers to non-existing cat.integration.spec.ts HOT 3
- Test against Solidity smart contracts
- [NEW TEST] Tests for mikro-orm
- [NEW TEST] Sequelize transactions HOT 1
- Add code comment for documenting the tests. HOT 1
- Unable to commit the file in file-up-and-down-sample HOT 1
- Can't push to sidebranch for PR - getting permission denied HOT 1
- I can't seem to make the tests fails anywhere so far HOT 3
- npm install doesn't work
- mongodb-transaction-sample/project.json incorrect jest.config reference
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testing-nestjs.