Comments (2)
Update on this:
- I've added a very basic working integration test in 7bb6f78 using httpc-test. The testing crate works fine and is pretty easy to use.
- I have been looking around for crates that provide an out-of-the-box mechanism for handling a database in test runs. If we decide that we want a live database for integration or unit testing we'd need a way to do the following:
- create a new database
- run migrations
- and then seed, run tests, clear database potentially for each test and ideally within a database transaction.
- drop database
No luck as of yet but we may need to build a mechanism for this out ourselves at some point if need be.
Extra resources just to note that I've found that might be useful so that we can deterministically define an order for database dependent tests to run while still maintaining the ability to run other tests in parallel.
https://crates.io/crates/serial_test
from refactor-platform-rs.
@calebbourg and I decided not to do definition of done #1 for this Issue: "Successfully seed a test database".
We decided to use a mock DB since this became a much larger task with the need to build a custom test harness.
from refactor-platform-rs.
Related Issues (13)
- Establish new contributor baseline HOT 1
- Establish basic CI pipeline for builds & tests HOT 1
- Schema setup instructions in README.md are incorrect
- Research options for login and session storage HOT 3
- Create other base Entity schemas HOT 1
- [Bug]: Update Organization endpoint returns a '405' status HOT 2
- [Bug]: Delete Organization endpoint returns a '405' status HOT 2
- Fix ability to run tests
- Complete Login for Coaches and Coachees
- Select Default Organization and Coaching Relationship
- Get a List of a User's Organizations
- Introduce API versioning
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 refactor-platform-rs.