Skip to content
No description, website, or topics provided.
Go Dockerfile
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
.vscode Add: コントローラの雛型を作成する Aug 22, 2019
controllers [FIX] Routing of Read User's profile Sep 5, 2019
docker/db
docs [ADD] Add: Get specific user's profile API Aug 27, 2019
models
routers [FIX] Routing of Read User's profile Sep 5, 2019
test
uploads
.env.example
.gitignore
Dockerfile [FIX] Use Go Modules in DockerContainer Aug 29, 2019
Foodmates-server Merge pull request #24 from jigintern/feature/testCreatePostAPI Aug 29, 2019
docker-compose.yaml
go.mod
go.sum
main Merge pull request #24 from jigintern/feature/testCreatePostAPI Aug 29, 2019
main.go
readme.md

readme.md

外部テスト

  1. testディレクトリ以下に、*_test.goを作成する
  2. "testing"パッケージをimportする
  3. テストケースを記述する この際、initializeパッケージのInitServer()を最初に実行する
  4. sudo docker-compose up --build でdockerコンテナを起動
  5. sudo docker exec "foodmates-server_app_1" go test -v ./test/... でテスト実行
You can’t perform that action at this time.