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

Tests #719

Merged
merged 18 commits into from
Oct 6, 2023
Merged

Tests #719

merged 18 commits into from
Oct 6, 2023

Conversation

thesuzerain
Copy link
Contributor

Still in draft for github actions testing alongside actual test writing.
Theoretically in the future, adds an automatic cargo test library to labrinth

@thesuzerain thesuzerain marked this pull request as ready for review September 24, 2023 21:54
@thesuzerain thesuzerain marked this pull request as draft September 24, 2023 21:55
src/database/redis.rs Outdated Show resolved Hide resolved
src/models/pats.rs Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
tests/pats.rs Show resolved Hide resolved
tests/pats.rs Show resolved Hide resolved
Copy link
Contributor

@OmegaJak OmegaJak left a comment

Choose a reason for hiding this comment

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

Love it! Can't wait to use it

src/models/pats.rs Outdated Show resolved Hide resolved
tests/scopes.rs Outdated
Copy link
Member

@Geometrically Geometrically Oct 5, 2023

Choose a reason for hiding this comment

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

The structure here seems a bit weird to me. I think it would be better to just test the scopes as part of other tests and have those in respective files. Since this is testing the routes anyways basically I think that structure would be better. Totally open to both ways though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thats fair- if its all the same I think I'll keep it this way for now given that we dont have files for all the routes yet. As we make rs files ill port them over

tests/files/dummy_data.sql Outdated Show resolved Hide resolved
tests/common/mod.rs Outdated Show resolved Hide resolved
tests/common/environment.rs Outdated Show resolved Hide resolved
@thesuzerain thesuzerain marked this pull request as ready for review October 6, 2023 16:31
@Geometrically Geometrically merged commit 259c5ef into master Oct 6, 2023
7 of 9 checks passed
@Geometrically Geometrically deleted the tests branch October 6, 2023 16:57
thesuzerain added a commit that referenced this pull request Nov 9, 2023
* computer switch

* some fixes; github action

* added pr to master

* sqlx database setup

* switched intial GHA test db

* removed sqlx database setup

* unfinished patch route

* bug fixes + tests

* more tests, more fixes, cargo fmt

* merge fixes

* more tests, full reorganization

* fmt, clippy

* sqlx-data

* revs

* removed comments

* delete revs
thesuzerain added a commit that referenced this pull request Dec 5, 2023
* computer switch

* some fixes; github action

* added pr to master

* sqlx database setup

* switched intial GHA test db

* removed sqlx database setup

* unfinished patch route

* bug fixes + tests

* more tests, more fixes, cargo fmt

* merge fixes

* more tests, full reorganization

* fmt, clippy

* sqlx-data

* revs

* removed comments

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

Successfully merging this pull request may close these issues.

3 participants